<spanid="cpl-database-context-database-context"></span><h2>cpl.database.context.database_context<aclass="headerlink"href="#module-cpl.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.database.context.database_context.</span></code><codeclass="sig-name descname"><spanclass="pre">DatabaseContext</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.database.html#cpl.database.database_settings.DatabaseSettings"title="cpl.database.database_settings.DatabaseSettings"><spanclass="pre">cpl.database.database_settings.DatabaseSettings</span></a></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#cpl.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">connection_string</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#cpl.database.context.database_context.DatabaseContext.connect"title="Permalink to this definition">¶</a></dt>
<dd><p>Connects to a database with connection string
<emclass="property"><spanclass="pre">property</span></em><codeclass="sig-name descname"><spanclass="pre">engine</span></code><aclass="headerlink"href="#cpl.database.context.database_context.DatabaseContext.engine"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.database.context.database_context.DatabaseContext.save_changes"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">property</span></em><codeclass="sig-name descname"><spanclass="pre">session</span></code><aclass="headerlink"href="#cpl.database.context.database_context.DatabaseContext.session"title="Permalink to this definition">¶</a></dt>
<spanid="cpl-database-context-database-context-abc"></span><h2>cpl.database.context.database_context_abc<aclass="headerlink"href="#module-cpl.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.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.database.context.database_context_abc.DatabaseContextABC"title="Permalink to this definition">¶</a></dt>
<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">connection_string</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#cpl.database.context.database_context_abc.DatabaseContextABC.connect"title="Permalink to this definition">¶</a></dt>
<dd><p>Connects to a database with connection string
<emclass="property"><spanclass="pre">abstract</span><spanclass="pre">property</span></em><codeclass="sig-name descname"><spanclass="pre">engine</span></code><aclass="headerlink"href="#cpl.database.context.database_context_abc.DatabaseContextABC.engine"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.database.context.database_context_abc.DatabaseContextABC.save_changes"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">abstract</span><spanclass="pre">property</span></em><codeclass="sig-name descname"><spanclass="pre">session</span></code><aclass="headerlink"href="#cpl.database.context.database_context_abc.DatabaseContextABC.session"title="Permalink to this definition">¶</a></dt>