<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 headline">¶</a></h2>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">cpl_core.database.context.database_context.</span></code><codeclass="sig-name descname"><spanclass="pre">DatabaseContext</span></code><aclass="headerlink"href="#cpl_core.database.context.database_context.DatabaseContext"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">connect</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">database_settings</span></span><spanclass="p"><spanclass="pre">:</span></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">cpl_core.database.database_settings.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>
<dd><p>Connects to a database by connection settings</p>
<emclass="property"><spanclass="pre">property</span></em><codeclass="sig-name descname"><spanclass="pre">cursor</span></code><aclass="headerlink"href="#cpl_core.database.context.database_context.DatabaseContext.cursor"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">save_changes</span></code><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>
<codeclass="sig-name descname"><spanclass="pre">select</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">statement</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">list</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 headline">¶</a></h2>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">cpl_core.database.context.database_context_abc.</span></code><codeclass="sig-name descname"><spanclass="pre">DatabaseContextABC</span></code><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></em><codeclass="sig-name descname"><spanclass="pre">connect</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">database_settings</span></span><spanclass="p"><spanclass="pre">:</span></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">cpl_core.database.database_settings.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>
<dd><p>Connects to a database by connection settings</p>
<emclass="property"><spanclass="pre">property</span></em><codeclass="sig-name descname"><spanclass="pre">cursor</span></code><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></em><codeclass="sig-name descname"><spanclass="pre">save_changes</span></code><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></em><codeclass="sig-name descname"><spanclass="pre">select</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">statement</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">list</span><aclass="headerlink"href="#cpl_core.database.context.database_context_abc.DatabaseContextABC.select"title="Permalink to this definition">¶</a></dt>