-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Naturhistoriska/develop
Add command-line option "--table-type"
- Loading branch information
Showing
3 changed files
with
56 additions
and
10 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Change Log | ||
========== | ||
|
||
All notable changes to this project will be documented in this file. | ||
This project adheres to `Semantic Versioning <http://semver.org/>`_. | ||
|
||
|
||
v0.2.0 - 2019-09-02 | ||
------------------- | ||
|
||
* Added option `--table-type` to select a specific table type to export. | ||
Available options are: "BASE TABLE", "VIEW" and "SYSTEM VIEW". | ||
|
||
`View commits <https://github.com/naturhistoriska/extract_mysql_tables.py/compare/v0.1.0...v0.2.0>`_ | ||
|
||
|
||
v0.1.0 - 2019-03-11 | ||
------------------- | ||
|
||
Initial release. |
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 |
---|---|---|
|
@@ -42,10 +42,10 @@ Usage | |
----- | ||
|
||
.. code-block:: | ||
./extract_mysql_tables.py --help | ||
usage: extract_mysql_tables.py [-h] [-V] [-u USER] [-p PASSWORD] [--host HOST] | ||
[-o DIR] | ||
[--table-type {1,2,3}] [-o DIR] | ||
database [table-file] | ||
Command-line utility for exporting tables from a MySQL database to files in | ||
|
@@ -63,6 +63,10 @@ Usage | |
-p PASSWORD, --password PASSWORD | ||
MySQL password | ||
--host HOST database host (default: "localhost") | ||
--table-type {1,2,3} Table type to include in export: 1=BASE TABLE; 2=VIEW; | ||
3=SYSTEM VIEW (i.e. INFORMATION_SCHEMA table). The | ||
table type will be ignored if there is a file provided | ||
with table names. | ||
-o DIR, --output-dir DIR | ||
path to the output directory (default: current | ||
directory) | ||
|
@@ -88,7 +92,7 @@ License | |
`MIT license <https://opensource.org/licenses/MIT>`_. | ||
|
||
|
||
Author | ||
------ | ||
Author and maintainer | ||
--------------------- | ||
|
||
Markus Englund, [email protected] |
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