Skip to content

Commit 88f75fd

Browse files
committedMay 12, 2024
deploy: 9af779f
0 parents  commit 88f75fd

39 files changed

+6909
-0
lines changed
 

‎.buildinfo

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Sphinx build info version 1
2+
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3+
config: 11622a864ae7fcb725782dfc40e218cf
4+
tags: 645f666f9bcd5a90fca523b33c5a78b7

‎.doctrees/README.doctree

19.7 KB
Binary file not shown.

‎.doctrees/environment.pickle

307 KB
Binary file not shown.

‎.doctrees/index.doctree

21.1 KB
Binary file not shown.

‎.doctrees/modules.doctree

2.75 KB
Binary file not shown.

‎.doctrees/mysql_to_sqlite3.doctree

111 KB
Binary file not shown.

‎.nojekyll

Whitespace-only changes.

‎README.html

Lines changed: 209 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,209 @@
1+
<!DOCTYPE html>
2+
3+
<html lang="en" data-content_root="./">
4+
<head>
5+
<meta charset="utf-8" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
7+
8+
<title>Usage &#8212; mysql-to-sqlite3 2.1.12 documentation</title>
9+
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=d1102ebc" />
10+
<link rel="stylesheet" type="text/css" href="_static/alabaster.css?v=12dfc556" />
11+
<script src="_static/documentation_options.js?v=cc8eff36"></script>
12+
<script src="_static/doctools.js?v=9a2dae69"></script>
13+
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
14+
<link rel="index" title="Index" href="genindex.html" />
15+
<link rel="search" title="Search" href="search.html" />
16+
<link rel="next" title="mysql_to_sqlite3" href="modules.html" />
17+
<link rel="prev" title="MySQL to SQLite3" href="index.html" />
18+
19+
<link rel="stylesheet" href="_static/custom.css" type="text/css" />
20+
21+
22+
23+
24+
25+
</head><body>
26+
27+
28+
<div class="document">
29+
<div class="documentwrapper">
30+
<div class="bodywrapper">
31+
32+
33+
<div class="body" role="main">
34+
35+
<section id="usage">
36+
<h1>Usage<a class="headerlink" href="#usage" title="Link to this heading"></a></h1>
37+
<section id="options">
38+
<h2>Options<a class="headerlink" href="#options" title="Link to this heading"></a></h2>
39+
<p>The command line options for the <code class="docutils literal notranslate"><span class="pre">mysql2sqlite</span></code> tool are as follows:</p>
40+
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>mysql2sqlite<span class="w"> </span><span class="o">[</span>OPTIONS<span class="o">]</span>
41+
</pre></div>
42+
</div>
43+
<section id="required-options">
44+
<h3>Required Options<a class="headerlink" href="#required-options" title="Link to this heading"></a></h3>
45+
<ul class="simple">
46+
<li><p><code class="docutils literal notranslate"><span class="pre">-f,</span> <span class="pre">--sqlite-file</span> <span class="pre">PATH</span></code>: SQLite3 database file. This option is required.</p></li>
47+
<li><p><code class="docutils literal notranslate"><span class="pre">-d,</span> <span class="pre">--mysql-database</span> <span class="pre">TEXT</span></code>: MySQL database name. This option is required.</p></li>
48+
<li><p><code class="docutils literal notranslate"><span class="pre">-u,</span> <span class="pre">--mysql-user</span> <span class="pre">TEXT</span></code>: MySQL user. This option is required.</p></li>
49+
</ul>
50+
</section>
51+
<section id="password-options">
52+
<h3>Password Options<a class="headerlink" href="#password-options" title="Link to this heading"></a></h3>
53+
<ul class="simple">
54+
<li><p><code class="docutils literal notranslate"><span class="pre">-p,</span> <span class="pre">--prompt-mysql-password</span></code>: Prompt for MySQL password.</p></li>
55+
<li><p><code class="docutils literal notranslate"><span class="pre">--mysql-password</span> <span class="pre">TEXT</span></code>: MySQL password.</p></li>
56+
</ul>
57+
</section>
58+
<section id="table-options">
59+
<h3>Table Options<a class="headerlink" href="#table-options" title="Link to this heading"></a></h3>
60+
<ul class="simple">
61+
<li><p><code class="docutils literal notranslate"><span class="pre">-t,</span> <span class="pre">--mysql-tables</span> <span class="pre">TUPLE</span></code>: Transfer only these specific tables (space separated table names). Implies –without-foreign-keys which inhibits the transfer of foreign keys. Can not be used together with –exclude-mysql-tables.</p></li>
62+
<li><p><code class="docutils literal notranslate"><span class="pre">-e,</span> <span class="pre">--exclude-mysql-tables</span> <span class="pre">TUPLE</span></code>: Transfer all tables except these specific tables (space separated table names). Implies –without-foreign-keys which inhibits the transfer of foreign keys. Can not be used together with –mysql-tables.</p></li>
63+
</ul>
64+
</section>
65+
<section id="transfer-options">
66+
<h3>Transfer Options<a class="headerlink" href="#transfer-options" title="Link to this heading"></a></h3>
67+
<ul class="simple">
68+
<li><p><code class="docutils literal notranslate"><span class="pre">-L,</span> <span class="pre">--limit-rows</span> <span class="pre">INTEGER</span></code>: Transfer only a limited number of rows from each table.</p></li>
69+
<li><p><code class="docutils literal notranslate"><span class="pre">-C,</span> <span class="pre">--collation</span> <span class="pre">[BINARY|NOCASE|RTRIM]</span></code>: Create datatypes of TEXT affinity using a specified collation sequence. The default is BINARY.</p></li>
70+
<li><p><code class="docutils literal notranslate"><span class="pre">-K,</span> <span class="pre">--prefix-indices</span></code>: Prefix indices with their corresponding tables. This ensures that their names remain unique across the SQLite database.</p></li>
71+
<li><p><code class="docutils literal notranslate"><span class="pre">-X,</span> <span class="pre">--without-foreign-keys</span></code>: Do not transfer foreign keys.</p></li>
72+
<li><p><code class="docutils literal notranslate"><span class="pre">-W,</span> <span class="pre">--without-data</span></code>: Do not transfer table data, DDL only.</p></li>
73+
</ul>
74+
</section>
75+
<section id="connection-options">
76+
<h3>Connection Options<a class="headerlink" href="#connection-options" title="Link to this heading"></a></h3>
77+
<ul class="simple">
78+
<li><p><code class="docutils literal notranslate"><span class="pre">-h,</span> <span class="pre">--mysql-host</span> <span class="pre">TEXT</span></code>: MySQL host. Defaults to localhost.</p></li>
79+
<li><p><code class="docutils literal notranslate"><span class="pre">-P,</span> <span class="pre">--mysql-port</span> <span class="pre">INTEGER</span></code>: MySQL port. Defaults to 3306.</p></li>
80+
<li><p><code class="docutils literal notranslate"><span class="pre">-S,</span> <span class="pre">--skip-ssl</span></code>: Disable MySQL connection encryption.</p></li>
81+
</ul>
82+
</section>
83+
<section id="other-options">
84+
<h3>Other Options<a class="headerlink" href="#other-options" title="Link to this heading"></a></h3>
85+
<ul class="simple">
86+
<li><p><code class="docutils literal notranslate"><span class="pre">-c,</span> <span class="pre">--chunk</span> <span class="pre">INTEGER</span></code>: Chunk reading/writing SQL records.</p></li>
87+
<li><p><code class="docutils literal notranslate"><span class="pre">-l,</span> <span class="pre">--log-file</span> <span class="pre">PATH</span></code>: Log file.</p></li>
88+
<li><p><code class="docutils literal notranslate"><span class="pre">--json-as-text</span></code>: Transfer JSON columns as TEXT.</p></li>
89+
<li><p><code class="docutils literal notranslate"><span class="pre">-V,</span> <span class="pre">--vacuum</span></code>: Use the VACUUM command to rebuild the SQLite database file, repacking it into a minimal amount of disk space.</p></li>
90+
<li><p><code class="docutils literal notranslate"><span class="pre">--use-buffered-cursors</span></code>: Use MySQLCursorBuffered for reading the MySQL database. This can be useful in situations where multiple queries, with small result sets, need to be combined or computed with each other.</p></li>
91+
<li><p><code class="docutils literal notranslate"><span class="pre">-q,</span> <span class="pre">--quiet</span></code>: Quiet. Display only errors.</p></li>
92+
<li><p><code class="docutils literal notranslate"><span class="pre">--debug</span></code>: Debug mode. Will throw exceptions.</p></li>
93+
<li><p><code class="docutils literal notranslate"><span class="pre">--version</span></code>: Show the version and exit.</p></li>
94+
<li><p><code class="docutils literal notranslate"><span class="pre">--help</span></code>: Show this message and exit.</p></li>
95+
</ul>
96+
</section>
97+
</section>
98+
<section id="docker">
99+
<h2>Docker<a class="headerlink" href="#docker" title="Link to this heading"></a></h2>
100+
<p>If you don’t want to install the tool on your system, you can use the
101+
Docker image instead.</p>
102+
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>docker<span class="w"> </span>run<span class="w"> </span>-it<span class="w"> </span><span class="se">\</span>
103+
<span class="w"> </span>--workdir<span class="w"> </span><span class="k">$(</span><span class="nb">pwd</span><span class="k">)</span><span class="w"> </span><span class="se">\</span>
104+
<span class="w"> </span>--volume<span class="w"> </span><span class="k">$(</span><span class="nb">pwd</span><span class="k">)</span>:<span class="k">$(</span><span class="nb">pwd</span><span class="k">)</span><span class="w"> </span><span class="se">\</span>
105+
<span class="w"> </span>--rm<span class="w"> </span>ghcr.io/techouse/mysql-to-sqlite3:latest<span class="w"> </span><span class="se">\</span>
106+
<span class="w"> </span>--sqlite-file<span class="w"> </span>baz.db<span class="w"> </span><span class="se">\</span>
107+
<span class="w"> </span>--mysql-user<span class="w"> </span>foo<span class="w"> </span><span class="se">\</span>
108+
<span class="w"> </span>--mysql-password<span class="w"> </span>bar<span class="w"> </span><span class="se">\</span>
109+
<span class="w"> </span>--mysql-database<span class="w"> </span>baz<span class="w"> </span><span class="se">\</span>
110+
<span class="w"> </span>--mysql-host<span class="w"> </span>host.docker.internal
111+
</pre></div>
112+
</div>
113+
<p>This will mount your host current working directory (pwd) inside the
114+
Docker container as the current working directory. Any files Docker
115+
would write to the current working directory are written to the host
116+
directory where you did docker run. Note that you have to also use a
117+
<a class="reference external" href="https://docs.docker.com/desktop/networking/#use-cases-and-workarounds-for-all-platforms">special
118+
hostname</a>
119+
<code class="docutils literal notranslate"><span class="pre">host.docker.internal</span></code> to access your host machine from inside the
120+
Docker container.</p>
121+
</section>
122+
<section id="homebrew">
123+
<h2>Homebrew<a class="headerlink" href="#homebrew" title="Link to this heading"></a></h2>
124+
<p>If you’re on macOS, you can install the tool using
125+
<a class="reference external" href="https://brew.sh/">Homebrew</a>.</p>
126+
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>brew<span class="w"> </span>tap<span class="w"> </span>techouse/mysql-to-sqlite3
127+
brew<span class="w"> </span>install<span class="w"> </span>mysql-to-sqlite3
128+
mysql2sqlite<span class="w"> </span>--help
129+
</pre></div>
130+
</div>
131+
</section>
132+
</section>
133+
134+
135+
</div>
136+
137+
</div>
138+
</div>
139+
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
140+
<div class="sphinxsidebarwrapper">
141+
<h1 class="logo"><a href="index.html">mysql-to-sqlite3</a></h1>
142+
143+
144+
145+
146+
147+
148+
149+
150+
<h3>Navigation</h3>
151+
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
152+
<ul class="current">
153+
<li class="toctree-l1 current"><a class="current reference internal" href="#">Usage</a><ul>
154+
<li class="toctree-l2"><a class="reference internal" href="#options">Options</a></li>
155+
<li class="toctree-l2"><a class="reference internal" href="#docker">Docker</a></li>
156+
<li class="toctree-l2"><a class="reference internal" href="#homebrew">Homebrew</a></li>
157+
</ul>
158+
</li>
159+
<li class="toctree-l1"><a class="reference internal" href="modules.html">mysql_to_sqlite3</a></li>
160+
</ul>
161+
162+
<div class="relations">
163+
<h3>Related Topics</h3>
164+
<ul>
165+
<li><a href="index.html">Documentation overview</a><ul>
166+
<li>Previous: <a href="index.html" title="previous chapter">MySQL to SQLite3</a></li>
167+
<li>Next: <a href="modules.html" title="next chapter">mysql_to_sqlite3</a></li>
168+
</ul></li>
169+
</ul>
170+
</div>
171+
<search id="searchbox" style="display: none" role="search">
172+
<h3 id="searchlabel">Quick search</h3>
173+
<div class="searchformwrapper">
174+
<form class="search" action="search.html" method="get">
175+
<input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
176+
<input type="submit" value="Go" />
177+
</form>
178+
</div>
179+
</search>
180+
<script>document.getElementById('searchbox').style.display = "block"</script>
181+
182+
183+
184+
185+
186+
187+
188+
189+
</div>
190+
</div>
191+
<div class="clearer"></div>
192+
</div>
193+
<div class="footer">
194+
&#169;2024, Klemen Tusar.
195+
196+
|
197+
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 7.3.7</a>
198+
&amp; <a href="https://alabaster.readthedocs.io">Alabaster 0.7.16</a>
199+
200+
|
201+
<a href="_sources/README.rst.txt"
202+
rel="nofollow">Page source</a>
203+
</div>
204+
205+
206+
207+
208+
</body>
209+
</html>

‎_modules/index.html

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
<!DOCTYPE html>
2+
3+
<html lang="en" data-content_root="../">
4+
<head>
5+
<meta charset="utf-8" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Overview: module code &#8212; mysql-to-sqlite3 2.1.12 documentation</title>
8+
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=d1102ebc" />
9+
<link rel="stylesheet" type="text/css" href="../_static/alabaster.css?v=12dfc556" />
10+
<script src="../_static/documentation_options.js?v=cc8eff36"></script>
11+
<script src="../_static/doctools.js?v=9a2dae69"></script>
12+
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
13+
<link rel="index" title="Index" href="../genindex.html" />
14+
<link rel="search" title="Search" href="../search.html" />
15+
16+
<link rel="stylesheet" href="../_static/custom.css" type="text/css" />
17+
18+
19+
20+
21+
22+
</head><body>
23+
24+
25+
<div class="document">
26+
<div class="documentwrapper">
27+
<div class="bodywrapper">
28+
29+
30+
<div class="body" role="main">
31+
32+
<h1>All modules for which code is available</h1>
33+
<ul><li><a href="mysql_to_sqlite3/click_utils.html">mysql_to_sqlite3.click_utils</a></li>
34+
<li><a href="mysql_to_sqlite3/debug_info.html">mysql_to_sqlite3.debug_info</a></li>
35+
<li><a href="mysql_to_sqlite3/sqlite_utils.html">mysql_to_sqlite3.sqlite_utils</a></li>
36+
<li><a href="mysql_to_sqlite3/transporter.html">mysql_to_sqlite3.transporter</a></li>
37+
<li><a href="mysql_to_sqlite3/types.html">mysql_to_sqlite3.types</a></li>
38+
<li><a href="re.html">re</a></li>
39+
</ul>
40+
41+
</div>
42+
43+
</div>
44+
</div>
45+
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
46+
<div class="sphinxsidebarwrapper">
47+
<h1 class="logo"><a href="../index.html">mysql-to-sqlite3</a></h1>
48+
49+
50+
51+
52+
53+
54+
55+
56+
<h3>Navigation</h3>
57+
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
58+
<ul>
59+
<li class="toctree-l1"><a class="reference internal" href="../README.html">Usage</a></li>
60+
<li class="toctree-l1"><a class="reference internal" href="../modules.html">mysql_to_sqlite3</a></li>
61+
</ul>
62+
63+
<div class="relations">
64+
<h3>Related Topics</h3>
65+
<ul>
66+
<li><a href="../index.html">Documentation overview</a><ul>
67+
</ul></li>
68+
</ul>
69+
</div>
70+
<search id="searchbox" style="display: none" role="search">
71+
<h3 id="searchlabel">Quick search</h3>
72+
<div class="searchformwrapper">
73+
<form class="search" action="../search.html" method="get">
74+
<input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
75+
<input type="submit" value="Go" />
76+
</form>
77+
</div>
78+
</search>
79+
<script>document.getElementById('searchbox').style.display = "block"</script>
80+
81+
82+
83+
84+
85+
86+
87+
88+
</div>
89+
</div>
90+
<div class="clearer"></div>
91+
</div>
92+
<div class="footer">
93+
&#169;2024, Klemen Tusar.
94+
95+
|
96+
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 7.3.7</a>
97+
&amp; <a href="https://alabaster.readthedocs.io">Alabaster 0.7.16</a>
98+
99+
</div>
100+
101+
102+
103+
104+
</body>
105+
</html>

0 commit comments

Comments
 (0)