0.0.5 • Published 7 years ago

dbevolve v0.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
7 years ago

DBEvolve

A basic database source control made for use with PostgreSQL.

How to use

npm install --save-dev dbevolve

After that you'll need to create a JSON file called 'dbevolve.config.json' as the example below:

{
    "url": "postgres://postgres@localhost:5432/test",
    "scripts": [
        { "author": "test", "script": "CREATE TABLE TEST(ID INT PRIMARY KEY NOT NULL, TEST TEXT);"},
        { "author": "test", "script": "CREATE TABLE TESTING(ID INT PRIMARY KEY NOT NULL, TEST TEXT);"}
    ]
}

The name 'url' its a reference to the url of your database and its value is a STRING. The name 'scripts' its a reference to the scripts you want to run in your database, its value is an ARRAY of OBJECT and its OBJECT must contains an 'author' and a 'script'.

Runs:

node ./node_modules/dbevolve

And see the magic happens!

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago