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.4.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

dbcopy-0.1.4-py2.py3-none-any.whl (5.9 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: dbcopy-0.1.4.tar.gz
  • Upload date:
  • Size: 4.1 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

Hashes for dbcopy-0.1.4.tar.gz
Algorithm Hash digest
SHA256 b3b7aac5dbd65e362c2e013b572d86946f33af9bc1300e98d305c64cdd4708a9
MD5 f62e76524c1a875326cc78cea5bdcada
BLAKE2b-256 d0e546e060ade65a2426bb2046d6d23e9b8541ea2359cbb6c3686877c6b07244

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dbcopy-0.1.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.9 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

Hashes for dbcopy-0.1.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 17ac93f246ce9ceb495d02c8dcbb65142e1a168dcae08acc1907a908d305f3b4
MD5 bd076518aebaefb106141b0c40a665af
BLAKE2b-256 a0de96e2b5c56a194dd7016d90fba55faeb9bde9575feb192607db9e5c91a7ff

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