Skip to content

Commit 4cc652f

Browse files
committed
deploy: b9df6c7
0 parents  commit 4cc652f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+10584
-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 records the configuration used when building these files. When it is not found, a full rebuild will be done.
3+
config: 1b1dc9d71f6542836fe50f40c06079f8
4+
tags: 645f666f9bcd5a90fca523b33c5a78b7

.doctrees/README.doctree

22.3 KB
Binary file not shown.

.doctrees/environment.pickle

261 KB
Binary file not shown.

.doctrees/index.doctree

22.6 KB
Binary file not shown.

.doctrees/modules.doctree

2.75 KB
Binary file not shown.

.doctrees/sqlite3_to_mysql.doctree

186 KB
Binary file not shown.

.nojekyll

Whitespace-only changes.

README.html

Lines changed: 210 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,210 @@
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; sqlite3-to-mysql 2.5.5 documentation</title>
9+
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=5ecbeea2" />
10+
<link rel="stylesheet" type="text/css" href="_static/basic.css?v=b08954a9" />
11+
<link rel="stylesheet" type="text/css" href="_static/alabaster.css?v=27fed22d" />
12+
<script src="_static/documentation_options.js?v=644f8b71"></script>
13+
<script src="_static/doctools.js?v=9bcbadda"></script>
14+
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
15+
<link rel="index" title="Index" href="genindex.html" />
16+
<link rel="search" title="Search" href="search.html" />
17+
<link rel="next" title="sqlite3_to_mysql" href="modules.html" />
18+
<link rel="prev" title="SQLite3 to MySQL" href="index.html" />
19+
20+
<link rel="stylesheet" href="_static/custom.css" type="text/css" />
21+
22+
23+
24+
25+
26+
</head><body>
27+
28+
29+
<div class="document">
30+
<div class="documentwrapper">
31+
<div class="bodywrapper">
32+
33+
34+
<div class="body" role="main">
35+
36+
<section id="usage">
37+
<h1>Usage<a class="headerlink" href="#usage" title="Link to this heading"></a></h1>
38+
<section id="options">
39+
<h2>Options<a class="headerlink" href="#options" title="Link to this heading"></a></h2>
40+
<p>The command line options for the <code class="docutils literal notranslate"><span class="pre">sqlite3mysql</span></code> tool are as follows:</p>
41+
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>sqlite3mysql<span class="w"> </span><span class="o">[</span>OPTIONS<span class="o">]</span>
42+
</pre></div>
43+
</div>
44+
<section id="required-options">
45+
<h3>Required Options<a class="headerlink" href="#required-options" title="Link to this heading"></a></h3>
46+
<ul class="simple">
47+
<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 [required]</p></li>
48+
<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 [required]</p></li>
49+
<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 [required]</p></li>
50+
</ul>
51+
</section>
52+
<section id="password-options">
53+
<h3>Password Options<a class="headerlink" href="#password-options" title="Link to this heading"></a></h3>
54+
<ul class="simple">
55+
<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>
56+
<li><p><code class="docutils literal notranslate"><span class="pre">--mysql-password</span> <span class="pre">TEXT</span></code>: MySQL password</p></li>
57+
</ul>
58+
</section>
59+
<section id="connection-options">
60+
<h3>Connection Options<a class="headerlink" href="#connection-options" title="Link to this heading"></a></h3>
61+
<ul class="simple">
62+
<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>
63+
<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>
64+
<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>
65+
<li><p><code class="docutils literal notranslate"><span class="pre">--mysql-socket</span> <span class="pre">TEXT</span></code>: Path to MySQL unix socket file.</p></li>
66+
</ul>
67+
</section>
68+
<section id="transfer-options">
69+
<h3>Transfer Options<a class="headerlink" href="#transfer-options" title="Link to this heading"></a></h3>
70+
<ul class="simple">
71+
<li><p><code class="docutils literal notranslate"><span class="pre">-t,</span> <span class="pre">--sqlite-tables</span> <span class="pre">TUPLE</span></code>: Transfer only these specific tables (space separated table names). Implies <code class="docutils literal notranslate"><span class="pre">--without-foreign-keys</span></code> which inhibits the transfer of foreign keys. Can not be used together with <code class="docutils literal notranslate"><span class="pre">--exclude-sqlite-tables</span></code>.</p></li>
72+
<li><p><code class="docutils literal notranslate"><span class="pre">-e,</span> <span class="pre">--exclude-sqlite-tables</span> <span class="pre">TUPLE</span></code>: Exclude these specific tables (space separated table names). Implies <code class="docutils literal notranslate"><span class="pre">--without-foreign-keys</span></code> which inhibits the transfer of foreign keys. Can not be used together with <code class="docutils literal notranslate"><span class="pre">--sqlite-tables</span></code>.</p></li>
73+
<li><p><code class="docutils literal notranslate"><span class="pre">-A,</span> <span class="pre">--sqlite-views-as-tables</span></code>: Materialize SQLite views as tables in MySQL instead of creating matching MySQL views (legacy behavior).</p></li>
74+
<li><p><code class="docutils literal notranslate"><span class="pre">-E,</span> <span class="pre">--mysql-truncate-tables</span></code>: Truncates existing tables before inserting data.</p></li>
75+
<li><p><code class="docutils literal notranslate"><span class="pre">-K,</span> <span class="pre">--mysql-skip-create-tables</span></code>: Skip creating tables in MySQL.</p></li>
76+
<li><p><code class="docutils literal notranslate"><span class="pre">-i,</span> <span class="pre">--mysql-insert-method</span> <span class="pre">[UPDATE|IGNORE|DEFAULT]</span></code>: MySQL insert method. DEFAULT will throw errors when encountering duplicate records; UPDATE will update existing rows; IGNORE will ignore insert errors. Defaults to IGNORE.</p></li>
77+
<li><p><code class="docutils literal notranslate"><span class="pre">-J,</span> <span class="pre">--mysql-skip-transfer-data</span></code>: Skip transferring data to MySQL.</p></li>
78+
<li><p><code class="docutils literal notranslate"><span class="pre">--mysql-integer-type</span> <span class="pre">TEXT</span></code>: MySQL default integer field type. Defaults to INT(11).</p></li>
79+
<li><p><code class="docutils literal notranslate"><span class="pre">--mysql-string-type</span> <span class="pre">TEXT</span></code>: MySQL default string field type. Defaults to VARCHAR(255).</p></li>
80+
<li><p><code class="docutils literal notranslate"><span class="pre">--mysql-text-type</span> <span class="pre">[LONGTEXT|MEDIUMTEXT|TEXT|TINYTEXT]</span></code>: MySQL default text field type. Defaults to TEXT.</p></li>
81+
<li><p><code class="docutils literal notranslate"><span class="pre">--mysql-charset</span> <span class="pre">TEXT</span></code>: MySQL database and table character set. Defaults to utf8mb4.</p></li>
82+
</ul>
83+
<p>` <code class="docutils literal notranslate"><span class="pre">--mysql-collation</span> <span class="pre">TEXT</span></code>: MySQL database and table collation
84+
- <code class="docutils literal notranslate"><span class="pre">-T,</span> <span class="pre">--use-fulltext</span></code>: Use FULLTEXT indexes on TEXT columns. Will throw an error if your MySQL version does not support InnoDB FULLTEXT indexes!
85+
- <code class="docutils literal notranslate"><span class="pre">-X,</span> <span class="pre">--without-foreign-keys</span></code>: Do not transfer foreign keys.
86+
- <code class="docutils literal notranslate"><span class="pre">-W,</span> <span class="pre">--ignore-duplicate-keys</span></code>: Ignore duplicate keys. The default behavior is to create new ones with a numerical suffix, e.g. ‘existing_key’ -&gt; ‘existing_key_1’
87+
- <code class="docutils literal notranslate"><span class="pre">--with-rowid</span></code>: Transfer rowid columns.
88+
- <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>
89+
</section>
90+
<section id="other-options">
91+
<h3>Other Options<a class="headerlink" href="#other-options" title="Link to this heading"></a></h3>
92+
<ul class="simple">
93+
<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>
94+
<li><p><code class="docutils literal notranslate"><span class="pre">-q,</span> <span class="pre">--quiet</span></code>: Quiet. Display only errors.</p></li>
95+
<li><p><code class="docutils literal notranslate"><span class="pre">--debug</span></code>: Debug mode. Will throw exceptions.</p></li>
96+
<li><p><code class="docutils literal notranslate"><span class="pre">--version</span></code>: Show the version and exit.</p></li>
97+
<li><p><code class="docutils literal notranslate"><span class="pre">--help</span></code>: Show help message and exit.</p></li>
98+
</ul>
99+
</section>
100+
</section>
101+
<section id="docker">
102+
<h2>Docker<a class="headerlink" href="#docker" title="Link to this heading"></a></h2>
103+
<p>If you don’t want to install the tool on your system, you can use the
104+
Docker image instead.</p>
105+
<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>
106+
<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>
107+
<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>
108+
<span class="w"> </span>--rm<span class="w"> </span>ghcr.io/techouse/sqlite3-to-mysql:latest<span class="w"> </span><span class="se">\</span>
109+
<span class="w"> </span>--sqlite-file<span class="w"> </span>baz.db<span class="w"> </span><span class="se">\</span>
110+
<span class="w"> </span>--mysql-user<span class="w"> </span>foo<span class="w"> </span><span class="se">\</span>
111+
<span class="w"> </span>--mysql-password<span class="w"> </span>bar<span class="w"> </span><span class="se">\</span>
112+
<span class="w"> </span>--mysql-database<span class="w"> </span>baz<span class="w"> </span><span class="se">\</span>
113+
<span class="w"> </span>--mysql-host<span class="w"> </span>host.docker.internal
114+
</pre></div>
115+
</div>
116+
<p>This will mount your host current working directory (pwd) inside the
117+
Docker container as the current working directory. Any files Docker
118+
would write to the current working directory are written to the host
119+
directory where you did docker run. Note that you have to also use a
120+
<a class="reference external" href="https://docs.docker.com/desktop/networking/#use-cases-and-workarounds-for-all-platforms">special
121+
hostname</a>
122+
<code class="docutils literal notranslate"><span class="pre">host.docker.internal</span></code> to access your host machine from inside the
123+
Docker container.</p>
124+
</section>
125+
<section id="homebrew">
126+
<h2>Homebrew<a class="headerlink" href="#homebrew" title="Link to this heading"></a></h2>
127+
<p>If you’re on macOS, you can install the tool using
128+
<a class="reference external" href="https://brew.sh/">Homebrew</a>.</p>
129+
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>brew<span class="w"> </span>install<span class="w"> </span>sqlite3-to-mysql
130+
sqlite3mysql<span class="w"> </span>--help
131+
</pre></div>
132+
</div>
133+
</section>
134+
</section>
135+
136+
137+
</div>
138+
139+
</div>
140+
</div>
141+
<div class="sphinxsidebar" role="navigation" aria-label="Main">
142+
<div class="sphinxsidebarwrapper">
143+
<h1 class="logo"><a href="index.html">sqlite3-to-mysql</a></h1>
144+
145+
146+
147+
148+
149+
150+
151+
152+
153+
<search id="searchbox" style="display: none" role="search">
154+
<div class="searchformwrapper">
155+
<form class="search" action="search.html" method="get">
156+
<input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" placeholder="Search"/>
157+
<input type="submit" value="Go" />
158+
</form>
159+
</div>
160+
</search>
161+
<script>document.getElementById('searchbox').style.display = "block"</script><h3>Navigation</h3>
162+
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
163+
<ul class="current">
164+
<li class="toctree-l1 current"><a class="current reference internal" href="#">Usage</a><ul>
165+
<li class="toctree-l2"><a class="reference internal" href="#options">Options</a></li>
166+
<li class="toctree-l2"><a class="reference internal" href="#docker">Docker</a></li>
167+
<li class="toctree-l2"><a class="reference internal" href="#homebrew">Homebrew</a></li>
168+
</ul>
169+
</li>
170+
<li class="toctree-l1"><a class="reference internal" href="modules.html">sqlite3_to_mysql</a></li>
171+
</ul>
172+
173+
<div class="relations">
174+
<h3>Related Topics</h3>
175+
<ul>
176+
<li><a href="index.html">Documentation overview</a><ul>
177+
<li>Previous: <a href="index.html" title="previous chapter">SQLite3 to MySQL</a></li>
178+
<li>Next: <a href="modules.html" title="next chapter">sqlite3_to_mysql</a></li>
179+
</ul></li>
180+
</ul>
181+
</div>
182+
183+
184+
185+
186+
187+
188+
189+
190+
</div>
191+
</div>
192+
<div class="clearer"></div>
193+
</div>
194+
<div class="footer">
195+
&#169;2025, Klemen Tusar.
196+
197+
|
198+
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 8.2.3</a>
199+
&amp; <a href="https://alabaster.readthedocs.io">Alabaster 1.0.0</a>
200+
201+
|
202+
<a href="_sources/README.rst.txt"
203+
rel="nofollow">Page source</a>
204+
</div>
205+
206+
207+
208+
209+
</body>
210+
</html>

0 commit comments

Comments
 (0)