Skip to main content

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

dbcopy-0.1.6.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

dbcopy-0.1.6-py2.py3-none-any.whl (6.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file dbcopy-0.1.6.tar.gz.

File metadata

  • Download URL: dbcopy-0.1.6.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

File hashes

Hashes for dbcopy-0.1.6.tar.gz
Algorithm Hash digest
SHA256 fc3c18ea5ea7deaa5b90c923a49915ac44011d5715938e5e8129ffd5e4cbc2f8
MD5 95a2a675e2b2104bb0d43842e8c6f58e
BLAKE2b-256 9a44acbe34e4dde64ac577e2bdfa49e245f40f91d381e9dbc6c2c7295027325a

See more details on using hashes here.

File details

Details for the file dbcopy-0.1.6-py2.py3-none-any.whl.

File metadata

  • Download URL: dbcopy-0.1.6-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

File hashes

Hashes for dbcopy-0.1.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9a3ab89f02deb786cd499b0f47f308cc56967b8e4b0b138f149b7bb7f5d39f8f
MD5 5465c76d2da49226ff8f80d72a0d3159
BLAKE2b-256 71f712fb8bcdfc6b88c0744527c4476e84bfd47c0cf496e4328f061fea934704

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page