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 3 4

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

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page