<spanid="cpl-core-database-context-database-context"></span><h2>cpl_core.database.context.database_context<aclass="headerlink"href="#module-cpl_core.database.context.database_context"title="Permalink to this heading"></a></h2>
<emclass="property"><spanclass="pre">class</span><spanclass="w"></span></em><spanclass="sig-prename descclassname"><spanclass="pre">cpl_core.database.context.database_context.</span></span><spanclass="sig-name descname"><spanclass="pre">DatabaseContext</span></span><aclass="headerlink"href="#cpl_core.database.context.database_context.DatabaseContext"title="Permalink to this definition"></a></dt>
<spanclass="sig-name descname"><spanclass="pre">connect</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">database_settings</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><aclass="reference internal"href="cpl_core.database.html#cpl_core.database.database_settings.DatabaseSettings"title="cpl_core.database.database_settings.DatabaseSettings"><spanclass="pre">DatabaseSettings</span></a></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#cpl_core.database.context.database_context.DatabaseContext.connect"title="Permalink to this definition"></a></dt>
<emclass="property"><spanclass="pre">property</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">cursor</span></span><emclass="property"><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="pre">MySQLCursorBuffered</span></em><aclass="headerlink"href="#cpl_core.database.context.database_context.DatabaseContext.cursor"title="Permalink to this definition"></a></dt>
<spanclass="sig-name descname"><spanclass="pre">save_changes</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#cpl_core.database.context.database_context.DatabaseContext.save_changes"title="Permalink to this definition"></a></dt>
<spanclass="sig-name descname"><spanclass="pre">select</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">statement</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">list</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">tuple</span><spanclass="p"><spanclass="pre">]</span></span></span></span><aclass="headerlink"href="#cpl_core.database.context.database_context.DatabaseContext.select"title="Permalink to this definition"></a></dt>
<spanid="cpl-core-database-context-database-context-abc"></span><h2>cpl_core.database.context.database_context_abc<aclass="headerlink"href="#module-cpl_core.database.context.database_context_abc"title="Permalink to this heading"></a></h2>
<emclass="property"><spanclass="pre">class</span><spanclass="w"></span></em><spanclass="sig-prename descclassname"><spanclass="pre">cpl_core.database.context.database_context_abc.</span></span><spanclass="sig-name descname"><spanclass="pre">DatabaseContextABC</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="o"><spanclass="pre">*</span></span><spanclass="n"><spanclass="pre">args</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#cpl_core.database.context.database_context_abc.DatabaseContextABC"title="Permalink to this definition"></a></dt>
<p>ABC for the <aclass="reference internal"href="#cpl_core.database.context.database_context.DatabaseContext"title="cpl_core.database.context.database_context.DatabaseContext"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">cpl_core.database.context.database_context.DatabaseContext</span></code></a></p>
<emclass="property"><spanclass="pre">abstract</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">connect</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">database_settings</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><aclass="reference internal"href="cpl_core.database.html#cpl_core.database.database_settings.DatabaseSettings"title="cpl_core.database.database_settings.DatabaseSettings"><spanclass="pre">DatabaseSettings</span></a></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#cpl_core.database.context.database_context_abc.DatabaseContextABC.connect"title="Permalink to this definition"></a></dt>
<emclass="property"><spanclass="pre">abstract</span><spanclass="w"></span><spanclass="pre">property</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">cursor</span></span><emclass="property"><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="pre">MySQLCursorBuffered</span></em><aclass="headerlink"href="#cpl_core.database.context.database_context_abc.DatabaseContextABC.cursor"title="Permalink to this definition"></a></dt>
<emclass="property"><spanclass="pre">abstract</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">save_changes</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#cpl_core.database.context.database_context_abc.DatabaseContextABC.save_changes"title="Permalink to this definition"></a></dt>
<emclass="property"><spanclass="pre">abstract</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">select</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">statement</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">list</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">tuple</span><spanclass="p"><spanclass="pre">]</span></span></span></span><aclass="headerlink"href="#cpl_core.database.context.database_context_abc.DatabaseContextABC.select"title="Permalink to this definition"></a></dt>