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
File details
Details for the file dbcopy-0.1.5.tar.gz
.
File metadata
- Download URL: dbcopy-0.1.5.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d37baa7b5f734ddd4e6657116eca61f0297f4a02cad8ffd0c1050c2db8ae0d3 |
|
MD5 | d7467e174fdfda4e48825a7fb1402826 |
|
BLAKE2b-256 | c98f64544bbf1c56fd7df225257f9f2ab6a89a7a4dc441af3ff9803a9e1d5772 |
File details
Details for the file dbcopy-0.1.5-py2.py3-none-any.whl
.
File metadata
- Download URL: dbcopy-0.1.5-py2.py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5a16e74aa6004e36fd67fd5841bd1bcb566e71b65f66468ed64baf6cce72b85 |
|
MD5 | 7416418bfc6cb8c5eb118258a9038e61 |
|
BLAKE2b-256 | b2244422bc1edc58d396029fd0f27a8e3c13536560acdf8db4229d943e00f32b |