-
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
f909ff4
commit cd233de
Showing
43 changed files
with
1,257 additions
and
1,277 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: 78dd931ab72ab9cfa9d2e437788cfbdd | ||
config: 114f6a952f236339816e16ef46d30008 | ||
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 |
---|---|---|
@@ -1,24 +1,22 @@ | ||
|
||
|
||
<!DOCTYPE html> | ||
<html class="writer-html5" lang="en" data-content_root="../../"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>apsw.bestpractice — APSW 3.46.0.1 documentation</title> | ||
<title>apsw.bestpractice — APSW 3.46.1.0 documentation</title> | ||
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=72bcf2f2" /> | ||
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" /> | ||
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=66b59bf7" /> | ||
<link rel="stylesheet" type="text/css" href="../../_static/apsw.css?v=3c7e2631" /> | ||
|
||
|
||
<link rel="shortcut icon" href="../../_static/favicon.ico"/> | ||
<!--[if lt IE 9]> | ||
<script src="../../_static/js/html5shiv.min.js"></script> | ||
<![endif]--> | ||
|
||
<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=d98f5d2b"></script> | ||
<script src="../../_static/doctools.js?v=9a2dae69"></script> | ||
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script> | ||
<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=0c22936b"></script> | ||
<script src="../../_static/doctools.js?v=9a2dae69"></script> | ||
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script> | ||
<script src="../../_static/js/theme.js"></script> | ||
<link rel="author" title="About these documents" href="../../about.html" /> | ||
<link rel="index" title="Index" href="../../genindex.html" /> | ||
|
@@ -39,7 +37,7 @@ | |
<img src="../../_static/apswlogo.png" class="logo" alt="Logo"/> | ||
</a> | ||
<div class="version"> | ||
3.46.0.1 | ||
3.46.1.0 | ||
</div> | ||
<div role="search"> | ||
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get"> | ||
|
@@ -219,7 +217,7 @@ <h1>Source code for apsw.bestpractice</h1><div class="highlight"><pre> | |
|
||
<div role="contentinfo"> | ||
<p>© <a href="../../copyright.html">Copyright</a> 2004-2024, Roger Binns <[email protected]>. | ||
<span class="lastupdated">Last updated on Jun 16, 2024. | ||
<span class="lastupdated">Last updated on Aug 13, 2024. | ||
</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 |
---|---|---|
@@ -1,24 +1,22 @@ | ||
|
||
|
||
<!DOCTYPE html> | ||
<html class="writer-html5" lang="en" data-content_root="../../"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>apsw.ext — APSW 3.46.0.1 documentation</title> | ||
<title>apsw.ext — APSW 3.46.1.0 documentation</title> | ||
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=72bcf2f2" /> | ||
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" /> | ||
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=66b59bf7" /> | ||
<link rel="stylesheet" type="text/css" href="../../_static/apsw.css?v=3c7e2631" /> | ||
|
||
|
||
<link rel="shortcut icon" href="../../_static/favicon.ico"/> | ||
<!--[if lt IE 9]> | ||
<script src="../../_static/js/html5shiv.min.js"></script> | ||
<![endif]--> | ||
|
||
<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=d98f5d2b"></script> | ||
<script src="../../_static/doctools.js?v=9a2dae69"></script> | ||
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script> | ||
<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=0c22936b"></script> | ||
<script src="../../_static/doctools.js?v=9a2dae69"></script> | ||
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script> | ||
<script src="../../_static/js/theme.js"></script> | ||
<link rel="author" title="About these documents" href="../../about.html" /> | ||
<link rel="index" title="Index" href="../../genindex.html" /> | ||
|
@@ -39,7 +37,7 @@ | |
<img src="../../_static/apswlogo.png" class="logo" alt="Logo"/> | ||
</a> | ||
<div class="version"> | ||
3.46.0.1 | ||
3.46.1.0 | ||
</div> | ||
<div role="search"> | ||
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get"> | ||
|
@@ -1923,7 +1921,7 @@ <h1>Source code for apsw.ext</h1><div class="highlight"><pre> | |
|
||
<div role="contentinfo"> | ||
<p>© <a href="../../copyright.html">Copyright</a> 2004-2024, Roger Binns <[email protected]>. | ||
<span class="lastupdated">Last updated on Jun 16, 2024. | ||
<span class="lastupdated">Last updated on Aug 13, 2024. | ||
</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 |
---|---|---|
@@ -1,24 +1,22 @@ | ||
|
||
|
||
<!DOCTYPE html> | ||
<html class="writer-html5" lang="en" data-content_root="../../"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>apsw.shell — APSW 3.46.0.1 documentation</title> | ||
<title>apsw.shell — APSW 3.46.1.0 documentation</title> | ||
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=72bcf2f2" /> | ||
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" /> | ||
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=66b59bf7" /> | ||
<link rel="stylesheet" type="text/css" href="../../_static/apsw.css?v=3c7e2631" /> | ||
|
||
|
||
<link rel="shortcut icon" href="../../_static/favicon.ico"/> | ||
<!--[if lt IE 9]> | ||
<script src="../../_static/js/html5shiv.min.js"></script> | ||
<![endif]--> | ||
|
||
<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=d98f5d2b"></script> | ||
<script src="../../_static/doctools.js?v=9a2dae69"></script> | ||
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script> | ||
<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=0c22936b"></script> | ||
<script src="../../_static/doctools.js?v=9a2dae69"></script> | ||
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script> | ||
<script src="../../_static/js/theme.js"></script> | ||
<link rel="author" title="About these documents" href="../../about.html" /> | ||
<link rel="index" title="Index" href="../../genindex.html" /> | ||
|
@@ -39,7 +37,7 @@ | |
<img src="../../_static/apswlogo.png" class="logo" alt="Logo"/> | ||
</a> | ||
<div class="version"> | ||
3.46.0.1 | ||
3.46.1.0 | ||
</div> | ||
<div role="search"> | ||
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get"> | ||
|
@@ -1607,13 +1605,16 @@ <h1>Source code for apsw.shell</h1><div class="highlight"><pre> | |
<span class="bp">self</span><span class="o">.</span><span class="n">write</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">stdout</span><span class="p">,</span> <span class="s2">"ANALYZE "</span> <span class="o">+</span> <span class="bp">self</span><span class="o">.</span><span class="n">_fmt_sql_identifier</span><span class="p">(</span><span class="n">n</span><span class="p">)</span> <span class="o">+</span> <span class="s2">";</span><span class="se">\n</span><span class="s2">"</span><span class="p">)</span> | ||
<span class="n">blank</span><span class="p">()</span> | ||
|
||
<span class="c1"># user version pragma</span> | ||
<span class="n">uv</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">db</span><span class="o">.</span><span class="n">pragma</span><span class="p">(</span><span class="s2">"user_version"</span><span class="p">)</span> | ||
<span class="k">if</span> <span class="n">uv</span><span class="p">:</span> | ||
<span class="n">comment</span><span class="p">(</span> | ||
<span class="s2">"Your database may need this. It is sometimes used to keep track of the schema version."</span> | ||
<span class="p">)</span> | ||
<span class="bp">self</span><span class="o">.</span><span class="n">write</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">stdout</span><span class="p">,</span> <span class="s2">"pragma user_version=</span><span class="si">%d</span><span class="s2">;"</span> <span class="o">%</span> <span class="p">(</span><span class="n">uv</span><span class="p">,</span> <span class="p">))</span> | ||
<span class="c1"># header fields</span> | ||
<span class="n">count</span> <span class="o">=</span> <span class="mi">0</span> | ||
<span class="k">for</span> <span class="n">name</span> <span class="ow">in</span> <span class="p">(</span><span class="s2">"user_version"</span><span class="p">,</span> <span class="s2">"application_id"</span><span class="p">):</span> | ||
<span class="n">val</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">db</span><span class="o">.</span><span class="n">pragma</span><span class="p">(</span><span class="n">name</span><span class="p">)</span> | ||
<span class="k">if</span> <span class="n">val</span><span class="p">:</span> | ||
<span class="k">if</span> <span class="n">count</span> <span class="o">==</span> <span class="mi">0</span><span class="p">:</span> | ||
<span class="n">comment</span><span class="p">(</span><span class="s2">"Database header"</span><span class="p">)</span> | ||
<span class="bp">self</span><span class="o">.</span><span class="n">write</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">stdout</span><span class="p">,</span> <span class="sa">f</span><span class="s2">"pragma </span><span class="si">{</span><span class="n">name</span><span class="si">}</span><span class="s2">=</span><span class="si">{</span><span class="n">val</span><span class="si">}</span><span class="s2">;</span><span class="se">\n</span><span class="s2">"</span><span class="p">)</span> | ||
<span class="n">count</span> <span class="o">+=</span> <span class="mi">1</span> | ||
<span class="k">if</span> <span class="n">count</span><span class="p">:</span> | ||
<span class="n">blank</span><span class="p">()</span> | ||
|
||
<span class="c1"># Save it all</span> | ||
|
@@ -2254,12 +2255,13 @@ <h1>Source code for apsw.shell</h1><div class="highlight"><pre> | |
<span class="k">def</span> <span class="nf">command_mode</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">cmd</span><span class="p">):</span> | ||
<span class="w"> </span><span class="sd">"""mode MODE ?OPTIONS?: Sets output mode to one of"""</span> | ||
<span class="k">if</span> <span class="ow">not</span> <span class="n">cmd</span><span class="p">:</span> | ||
<span class="k">raise</span> <span class="bp">self</span><span class="o">.</span><span class="n">Error</span><span class="p">(</span><span class="s2">"Specify an output mode"</span><span class="p">)</span> | ||
<span class="k">raise</span> <span class="bp">self</span><span class="o">.</span><span class="n">Error</span><span class="p">(</span><span class="s2">"Specify an output mode - use .help mode for detailed list"</span><span class="p">)</span> | ||
<span class="n">w</span> <span class="o">=</span> <span class="n">cmd</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> | ||
<span class="k">if</span> <span class="n">w</span> <span class="o">==</span> <span class="s2">"tabs"</span><span class="p">:</span> | ||
<span class="n">w</span> <span class="o">=</span> <span class="s2">"list"</span> | ||
<span class="k">if</span> <span class="ow">not</span> <span class="nb">hasattr</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="s2">"output_"</span> <span class="o">+</span> <span class="n">w</span><span class="p">):</span> | ||
<span class="k">raise</span> <span class="bp">self</span><span class="o">.</span><span class="n">Error</span><span class="p">(</span><span class="s2">"Expected a valid output mode: "</span> <span class="o">+</span> <span class="s2">", "</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_output_modes</span><span class="p">))</span> | ||
<span class="k">raise</span> <span class="bp">self</span><span class="o">.</span><span class="n">Error</span><span class="p">(</span><span class="s2">"Expected a valid output mode: "</span> <span class="o">+</span> <span class="s2">", "</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_output_modes</span><span class="p">)</span> <span class="o">+</span> | ||
<span class="s2">"</span><span class="se">\n</span><span class="s2">Use .help mode for a detailed list"</span><span class="p">)</span> | ||
|
||
<span class="n">m</span> <span class="o">=</span> <span class="nb">getattr</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="s2">"output_"</span> <span class="o">+</span> <span class="n">w</span><span class="p">)</span> | ||
|
||
|
@@ -3708,7 +3710,7 @@ <h1>Source code for apsw.shell</h1><div class="highlight"><pre> | |
|
||
<div role="contentinfo"> | ||
<p>© <a href="../../copyright.html">Copyright</a> 2004-2024, Roger Binns <[email protected]>. | ||
<span class="lastupdated">Last updated on Jun 16, 2024. | ||
<span class="lastupdated">Last updated on Aug 13, 2024. | ||
</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 |
---|---|---|
@@ -1,24 +1,22 @@ | ||
|
||
|
||
<!DOCTYPE html> | ||
<html class="writer-html5" lang="en" data-content_root="../"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Overview: module code — APSW 3.46.0.1 documentation</title> | ||
<title>Overview: module code — APSW 3.46.1.0 documentation</title> | ||
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=72bcf2f2" /> | ||
<link rel="stylesheet" type="text/css" href="../_static/css/theme.css?v=19f00094" /> | ||
<link rel="stylesheet" type="text/css" href="../_static/css/theme.css?v=66b59bf7" /> | ||
<link rel="stylesheet" type="text/css" href="../_static/apsw.css?v=3c7e2631" /> | ||
|
||
|
||
<link rel="shortcut icon" href="../_static/favicon.ico"/> | ||
<!--[if lt IE 9]> | ||
<script src="../_static/js/html5shiv.min.js"></script> | ||
<![endif]--> | ||
|
||
<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=d98f5d2b"></script> | ||
<script src="../_static/doctools.js?v=9a2dae69"></script> | ||
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script> | ||
<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=0c22936b"></script> | ||
<script src="../_static/doctools.js?v=9a2dae69"></script> | ||
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script> | ||
<script src="../_static/js/theme.js"></script> | ||
<link rel="author" title="About these documents" href="../about.html" /> | ||
<link rel="index" title="Index" href="../genindex.html" /> | ||
|
@@ -39,7 +37,7 @@ | |
<img src="../_static/apswlogo.png" class="logo" alt="Logo"/> | ||
</a> | ||
<div class="version"> | ||
3.46.0.1 | ||
3.46.1.0 | ||
</div> | ||
<div role="search"> | ||
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get"> | ||
|
@@ -114,7 +112,7 @@ <h1>All modules for which code is available</h1> | |
|
||
<div role="contentinfo"> | ||
<p>© <a href="../copyright.html">Copyright</a> 2004-2024, Roger Binns <[email protected]>. | ||
<span class="lastupdated">Last updated on Jun 16, 2024. | ||
<span class="lastupdated">Last updated on Aug 13, 2024. | ||
</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
Oops, something went wrong.