Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerbinns committed Aug 13, 2024
1 parent f909ff4 commit cd233de
Show file tree
Hide file tree
Showing 43 changed files with 1,257 additions and 1,277 deletions.
2 changes: 1 addition & 1 deletion .buildinfo
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
24 changes: 11 additions & 13 deletions _modules/apsw/bestpractice.html
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 &mdash; APSW 3.46.0.1 documentation</title>
<title>apsw.bestpractice &mdash; 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" />
Expand All @@ -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">
Expand Down Expand Up @@ -219,7 +217,7 @@ <h1>Source code for apsw.bestpractice</h1><div class="highlight"><pre>

<div role="contentinfo">
<p>&#169; <a href="../../copyright.html">Copyright</a> 2004-2024, Roger Binns &lt;[email protected]&gt;.
<span class="lastupdated">Last updated on Jun 16, 2024.
<span class="lastupdated">Last updated on Aug 13, 2024.
</span></p>
</div>

Expand Down
24 changes: 11 additions & 13 deletions _modules/apsw/ext.html
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 &mdash; APSW 3.46.0.1 documentation</title>
<title>apsw.ext &mdash; 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" />
Expand All @@ -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">
Expand Down Expand Up @@ -1923,7 +1921,7 @@ <h1>Source code for apsw.ext</h1><div class="highlight"><pre>

<div role="contentinfo">
<p>&#169; <a href="../../copyright.html">Copyright</a> 2004-2024, Roger Binns &lt;[email protected]&gt;.
<span class="lastupdated">Last updated on Jun 16, 2024.
<span class="lastupdated">Last updated on Aug 13, 2024.
</span></p>
</div>

Expand Down
46 changes: 24 additions & 22 deletions _modules/apsw/shell.html
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 &mdash; APSW 3.46.0.1 documentation</title>
<title>apsw.shell &mdash; 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" />
Expand All @@ -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">
Expand Down Expand Up @@ -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">&quot;ANALYZE &quot;</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">&quot;;</span><span class="se">\n</span><span class="s2">&quot;</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">&quot;user_version&quot;</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">&quot;Your database may need this. It is sometimes used to keep track of the schema version.&quot;</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">&quot;pragma user_version=</span><span class="si">%d</span><span class="s2">;&quot;</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">&quot;user_version&quot;</span><span class="p">,</span> <span class="s2">&quot;application_id&quot;</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">&quot;Database header&quot;</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">&quot;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">&quot;</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>
Expand Down Expand Up @@ -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">&quot;&quot;&quot;mode MODE ?OPTIONS?: Sets output mode to one of&quot;&quot;&quot;</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">&quot;Specify an output mode&quot;</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">&quot;Specify an output mode - use .help mode for detailed list&quot;</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">&quot;tabs&quot;</span><span class="p">:</span>
<span class="n">w</span> <span class="o">=</span> <span class="s2">&quot;list&quot;</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">&quot;output_&quot;</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">&quot;Expected a valid output mode: &quot;</span> <span class="o">+</span> <span class="s2">&quot;, &quot;</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">&quot;Expected a valid output mode: &quot;</span> <span class="o">+</span> <span class="s2">&quot;, &quot;</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">&quot;</span><span class="se">\n</span><span class="s2">Use .help mode for a detailed list&quot;</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">&quot;output_&quot;</span> <span class="o">+</span> <span class="n">w</span><span class="p">)</span>

Expand Down Expand Up @@ -3708,7 +3710,7 @@ <h1>Source code for apsw.shell</h1><div class="highlight"><pre>

<div role="contentinfo">
<p>&#169; <a href="../../copyright.html">Copyright</a> 2004-2024, Roger Binns &lt;[email protected]&gt;.
<span class="lastupdated">Last updated on Jun 16, 2024.
<span class="lastupdated">Last updated on Aug 13, 2024.
</span></p>
</div>

Expand Down
24 changes: 11 additions & 13 deletions _modules/index.html
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 &mdash; APSW 3.46.0.1 documentation</title>
<title>Overview: module code &mdash; 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" />
Expand All @@ -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">
Expand Down Expand Up @@ -114,7 +112,7 @@ <h1>All modules for which code is available</h1>

<div role="contentinfo">
<p>&#169; <a href="../copyright.html">Copyright</a> 2004-2024, Roger Binns &lt;[email protected]&gt;.
<span class="lastupdated">Last updated on Jun 16, 2024.
<span class="lastupdated">Last updated on Aug 13, 2024.
</span></p>
</div>

Expand Down
15 changes: 15 additions & 0 deletions _sources/changes.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,21 @@ history <https://devguide.python.org/versions/>`__.
APSW changes by version
-----------------------

3.46.1.0
========

The shell :ref:`dump <shell-cmd-dump>` command outputs the
`application_id
<https://www.sqlite.org/pragma.html#pragma_application_id>`__ in
addition to the `user_version
<https://www.sqlite.org/pragma.html#pragma_user_version>`__.

`PyPI <https://pypi.org/project/apsw/>`__ binary builds for `Python
3.13 now available
<https://github.com/pypa/cibuildwheel/releases/tag/v2.20.0>`__, as
well as `older Python ARM64
<https://github.com/rogerbinns/apsw/pull/530>`__ are available.

3.46.0.1
========

Expand Down
Loading

0 comments on commit cd233de

Please sign in to comment.