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

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: dbcopy-0.1.7.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for dbcopy-0.1.7.tar.gz
Algorithm Hash digest
SHA256 39a59c1130125d030aeeb623abc5402f4297f37ed384a6ff7be17bae19b8cc7b
MD5 b598c0588aff9ca54b499e986bb3d90b
BLAKE2b-256 8572723b8630cd9fefd21737de0e983cc2eff2f922408e3c9166194f5a240f57

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dbcopy-0.1.7-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for dbcopy-0.1.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 bf67246686f6988ddd2930d8225d33893f64e4059b50d3fbf8a790eb9347f3e0
MD5 ad988e444974e435dfdf0f07f4aa0656
BLAKE2b-256 d4a47f1531c64134d2fe28ee01819f5fb67b988ac740491aa967cf0b9110c8fc

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