Skip to main content

dbtrolls - A simple tool to make Dev's life happy.

Project description

https://raw.githubusercontent.com/caputomarcos/dbtrolls/master/dbtrolls.png

dbtrolls

A simple tool to make Dev’s life happy.

License

Licensed under the GNU General Public License (GPL).

Install

Follow the steps below to get everything up and running.

pip

Package Index > dbtrolls > 1.1 pip.

  1. Create project folder:

    $ mkdir dbtrolls && cd dbtrolls
  2. Create virtualenv in the normal way:

    $ virtualenv env --python=python
  3. Active your new virtualenv:

    $ source env/bin/activate
  4. Install dbtrolls:

    $ pip install dbtrolls

Git

  1. Clone repository:

    $ git clone git@github.com:caputomarcos/dbtrolls.git
  2. Go to dbtrolls source folder:

    $ cd dbtrolls/
  3. Create virtualenv in the normal way:

    $ virtualenv env --python=python
  4. Active your new virtualenv:

    $ source env/bin/activate
  5. Create dev environment:

    $ make develop

Usage

  1. Create config file:

    $ dbtrolls -c --database_source=<DATABASE_SOURCE> --database_target=<DATABASE_TARGET>
  2. Execute a single SQL file:

    $ dbtrolls -s <SQL_FILE> --fix --preload
  3. Execute a collection of SQL files:

    $ dbtrolls -m

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

dbtrolls-1.3.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distributions

dbtrolls-1.3-py3.4.egg (7.7 kB view hashes)

Uploaded Source

dbtrolls-1.3-py3-none-any.whl (6.1 kB view hashes)

Uploaded Python 3

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