-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ce5596f
commit 0671911
Showing
43 changed files
with
1,012 additions
and
849 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: daf38c62d83e33b356b109b3d72affc7 | ||
config: 22e5b5a366d8c091154229ef6a20f2e9 | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>apsw.bestpractice — APSW 3.43.0.0 documentation</title> | ||
<title>apsw.bestpractice — APSW 3.43.1.0 documentation</title> | ||
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" /> | ||
<link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" /> | ||
<link rel="shortcut icon" href="../../_static/favicon.ico"/> | ||
|
@@ -13,7 +13,7 @@ | |
|
||
<script src="../../_static/jquery.js?v=5d32c60e"></script> | ||
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script> | ||
<script src="../../_static/documentation_options.js?v=c3a517ee"></script> | ||
<script src="../../_static/documentation_options.js?v=b2705db7"></script> | ||
<script src="../../_static/doctools.js?v=888ff710"></script> | ||
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script> | ||
<script src="../../_static/js/theme.js"></script> | ||
|
@@ -36,7 +36,7 @@ | |
<img src="../../_static/apswlogo.png" class="logo" alt="Logo"/> | ||
</a> | ||
<div class="version"> | ||
3.43.0.0 | ||
3.43.1.0 | ||
</div> | ||
<div role="search"> | ||
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get"> | ||
|
@@ -195,14 +195,14 @@ <h1>Source code for apsw.bestpractice</h1><div class="highlight"><pre> | |
<a class="viewcode-back" href="../../bestpractice.html#apsw.bestpractice.apply">[docs]</a> | ||
<span class="k">def</span> <span class="nf">apply</span><span class="p">(</span><span class="n">which</span><span class="p">:</span> <span class="nb">tuple</span><span class="p">[</span><span class="n">Callable</span><span class="p">,</span> <span class="o">...</span><span class="p">])</span> <span class="o">-></span> <span class="kc">None</span><span class="p">:</span> | ||
<span class="s2">"Applies library immediately and connection to new connections"</span> | ||
<span class="n">hooks</span> <span class="o">=</span> <span class="p">[]</span> | ||
<span class="n">hooks</span> <span class="p">:</span> <span class="nb">list</span><span class="p">[</span><span class="n">Callable</span><span class="p">]</span> <span class="o">=</span> <span class="p">[]</span> | ||
<span class="k">for</span> <span class="n">func</span> <span class="ow">in</span> <span class="n">which</span><span class="p">:</span> | ||
<span class="k">if</span> <span class="n">func</span><span class="o">.</span><span class="vm">__name__</span><span class="o">.</span><span class="n">startswith</span><span class="p">(</span><span class="s2">"connection_"</span><span class="p">):</span> | ||
<span class="n">hooks</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">func</span><span class="p">)</span> | ||
<span class="k">else</span><span class="p">:</span> | ||
<span class="n">func</span><span class="p">()</span> | ||
|
||
<span class="k">def</span> <span class="nf">best_practise_connection_apply</span><span class="p">(</span><span class="n">connection</span><span class="p">:</span> <span class="n">apsw</span><span class="o">.</span><span class="n">Connection</span><span class="p">):</span> | ||
<span class="k">def</span> <span class="nf">best_practise_connection_apply</span><span class="p">(</span><span class="n">connection</span><span class="p">:</span> <span class="n">apsw</span><span class="o">.</span><span class="n">Connection</span><span class="p">)</span> <span class="o">-></span> <span class="kc">None</span><span class="p">:</span> | ||
<span class="k">for</span> <span class="n">func</span> <span class="ow">in</span> <span class="n">hooks</span><span class="p">:</span> | ||
<span class="n">func</span><span class="p">(</span><span class="n">connection</span><span class="p">)</span> | ||
|
||
|
@@ -218,7 +218,7 @@ <h1>Source code for apsw.bestpractice</h1><div class="highlight"><pre> | |
|
||
<div role="contentinfo"> | ||
<p>© <a href="../../copyright.html">Copyright</a> 2004-2023, Roger Binns <[email protected]>. | ||
<span class="lastupdated">Last updated on Aug 25, 2023. | ||
<span class="lastupdated">Last updated on Sep 13, 2023. | ||
</span></p> | ||
</div> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>apsw.ext — APSW 3.43.0.0 documentation</title> | ||
<title>apsw.ext — APSW 3.43.1.0 documentation</title> | ||
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" /> | ||
<link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" /> | ||
<link rel="shortcut icon" href="../../_static/favicon.ico"/> | ||
|
@@ -13,7 +13,7 @@ | |
|
||
<script src="../../_static/jquery.js?v=5d32c60e"></script> | ||
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script> | ||
<script src="../../_static/documentation_options.js?v=c3a517ee"></script> | ||
<script src="../../_static/documentation_options.js?v=b2705db7"></script> | ||
<script src="../../_static/doctools.js?v=888ff710"></script> | ||
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script> | ||
<script src="../../_static/js/theme.js"></script> | ||
|
@@ -36,7 +36,7 @@ | |
<img src="../../_static/apswlogo.png" class="logo" alt="Logo"/> | ||
</a> | ||
<div class="version"> | ||
3.43.0.0 | ||
3.43.1.0 | ||
</div> | ||
<div role="search"> | ||
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get"> | ||
|
@@ -480,6 +480,13 @@ <h1>Source code for apsw.ext</h1><div class="highlight"><pre> | |
<span class="sd"> :param exc_value: The exception value</span> | ||
<span class="sd"> :param exc_traceback: Traceback for the exception</span> | ||
<span class="sd"> :param file: (default ``sys.stderr``) Where the print goes</span> | ||
|
||
<span class="sd"> .. code::</span> | ||
|
||
<span class="sd"> try:</span> | ||
<span class="sd"> ....</span> | ||
<span class="sd"> except Exception as exc:</span> | ||
<span class="sd"> apsw.ext.print_augmented_traceback(*sys.exc_info())</span> | ||
<span class="sd"> """</span> | ||
|
||
<span class="n">file</span> <span class="o">=</span> <span class="n">file</span> <span class="ow">or</span> <span class="n">sys</span><span class="o">.</span><span class="n">stderr</span> | ||
|
@@ -1876,7 +1883,7 @@ <h1>Source code for apsw.ext</h1><div class="highlight"><pre> | |
|
||
<div role="contentinfo"> | ||
<p>© <a href="../../copyright.html">Copyright</a> 2004-2023, Roger Binns <[email protected]>. | ||
<span class="lastupdated">Last updated on Aug 25, 2023. | ||
<span class="lastupdated">Last updated on Sep 13, 2023. | ||
</span></p> | ||
</div> | ||
|
||
|
Oops, something went wrong.