You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
back before being given back to the connection pool.</p>
397
398
</section>
398
399
</section>
400
+
<sectionid="advanced-usage">
401
+
<h2>Advanced Usage</h2>
402
+
<p>Sometimes you may want to prepare connections before they are used by
403
+
DBUtils, in ways that are not possible by just using the right parameters.
404
+
For instance, <spanclass="docutils literal">pyodbc</span> may require to configure connections by calling
405
+
the <spanclass="docutils literal">setencoding()</span> method of the connection. You can do this by passing
406
+
a modified <spanclass="docutils literal">connect()</span> function to <spanclass="docutils literal">PersistentDB</span> or <spanclass="docutils literal">PooledDB</span> as
407
+
<spanclass="docutils literal">creator</span> (the first argument), like this:</p>
0 commit comments