Copy contents of a SQL database to another
Project description
dbcopy
Copy tables from a source database to a destination database, with both databases using different SQL engines. This can be used, for example, to copy the contents from a MySQL or MSSQL database to Postgres. While less civilized, the opposite operation might also work :-P
Installation
Please install dbcopy
using the Python pip command:
pip install -U dbcopy
Depending on the database backend, you may need to also install a connection adapter. Recommended adapters can be installed as extras with the package:
pip install -U dbcopy[postgres,mssql]
Usage
You must always specify a source database connection URI and a target database URI:
dbcopy --drop postgresql://localhost/demo sqlite:///demo.sqlite3
There are additional parameters to skip individual tables or normalize tables and column names to the common snake_case form. For these options, please see:
dbcopy --help
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for dbcopy-0.1.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c60db61d8fb5ec1521843995a6e85429832f20a5f36f9ef7bf711e064384cb01 |
|
MD5 | 906b6d7e9b881a753c4f547872e4a8ee |
|
BLAKE2b-256 | 6941419f1ee3ee21df69b4cd985aa8142e851f26cf5b9059948fa740e0586005 |