Skip to content

Commit 09288fb

Browse files
committed
deploy: 729a315
0 parents  commit 09288fb

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

+9616
-0
lines changed

.buildinfo

+4
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: deaa45b9f83d1f83dcacf78e649e33be
4+
tags: 645f666f9bcd5a90fca523b33c5a78b7

.doctrees/README.doctree

20.2 KB
Binary file not shown.

.doctrees/environment.pickle

211 KB
Binary file not shown.

.doctrees/index.doctree

22.2 KB
Binary file not shown.

.doctrees/modules.doctree

2.75 KB
Binary file not shown.

.doctrees/sqlite3_to_mysql.doctree

146 KB
Binary file not shown.

.nojekyll

Whitespace-only changes.

README.html

+208
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,208 @@
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.3.2 documentation</title>
9+
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=d1102ebc" />
10+
<link rel="stylesheet" type="text/css" href="_static/basic.css?v=686e5160" />
11+
<link rel="stylesheet" type="text/css" href="_static/alabaster.css?v=27fed22d" />
12+
<script src="_static/documentation_options.js?v=5048a02b"></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+
</ul>
66+
</section>
67+
<section id="transfer-options">
68+
<h3>Transfer Options<a class="headerlink" href="#transfer-options" title="Link to this heading"></a></h3>
69+
<ul class="simple">
70+
<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.</p></li>
71+
<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>
72+
<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>
73+
<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>
74+
<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>
75+
<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>
76+
<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>
77+
<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>
78+
<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>
79+
</ul>
80+
<p>` <code class="docutils literal notranslate"><span class="pre">--mysql-collation</span> <span class="pre">TEXT</span></code>: MySQL database and table collation
81+
- <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!
82+
- <code class="docutils literal notranslate"><span class="pre">-X,</span> <span class="pre">--without-foreign-keys</span></code>: Do not transfer foreign keys.
83+
- <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’
84+
- <code class="docutils literal notranslate"><span class="pre">--with-rowid</span></code>: Transfer rowid columns.
85+
- <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>
86+
</section>
87+
<section id="other-options">
88+
<h3>Other Options<a class="headerlink" href="#other-options" title="Link to this heading"></a></h3>
89+
<ul class="simple">
90+
<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>
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 help 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/sqlite3-to-mysql: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/sqlite3-to-mysql
127+
brew<span class="w"> </span>install<span class="w"> </span>sqlite3-to-mysql
128+
sqlite3mysql<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">
140+
<div class="sphinxsidebarwrapper">
141+
<h1 class="logo"><a href="index.html">sqlite3-to-mysql</a></h1>
142+
143+
144+
145+
146+
147+
148+
149+
150+
151+
<search id="searchbox" style="display: none" role="search">
152+
<div class="searchformwrapper">
153+
<form class="search" action="search.html" method="get">
154+
<input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" placeholder="Search"/>
155+
<input type="submit" value="Go" />
156+
</form>
157+
</div>
158+
</search>
159+
<script>document.getElementById('searchbox').style.display = "block"</script><h3>Navigation</h3>
160+
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
161+
<ul class="current">
162+
<li class="toctree-l1 current"><a class="current reference internal" href="#">Usage</a><ul>
163+
<li class="toctree-l2"><a class="reference internal" href="#options">Options</a></li>
164+
<li class="toctree-l2"><a class="reference internal" href="#docker">Docker</a></li>
165+
<li class="toctree-l2"><a class="reference internal" href="#homebrew">Homebrew</a></li>
166+
</ul>
167+
</li>
168+
<li class="toctree-l1"><a class="reference internal" href="modules.html">sqlite3_to_mysql</a></li>
169+
</ul>
170+
171+
<div class="relations">
172+
<h3>Related Topics</h3>
173+
<ul>
174+
<li><a href="index.html">Documentation overview</a><ul>
175+
<li>Previous: <a href="index.html" title="previous chapter">SQLite3 to MySQL</a></li>
176+
<li>Next: <a href="modules.html" title="next chapter">sqlite3_to_mysql</a></li>
177+
</ul></li>
178+
</ul>
179+
</div>
180+
181+
182+
183+
184+
185+
186+
187+
188+
</div>
189+
</div>
190+
<div class="clearer"></div>
191+
</div>
192+
<div class="footer">
193+
&#169;2024, Klemen Tusar.
194+
195+
|
196+
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 8.1.3</a>
197+
&amp; <a href="https://alabaster.readthedocs.io">Alabaster 1.0.0</a>
198+
199+
|
200+
<a href="_sources/README.rst.txt"
201+
rel="nofollow">Page source</a>
202+
</div>
203+
204+
205+
206+
207+
</body>
208+
</html>

0 commit comments

Comments
 (0)