Skip to content

Commit

Permalink
Adding to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
it0a committed Jun 2, 2015
1 parent 538831a commit bf26413
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,26 @@ Will output a binary at target/seql (Add this to your PATH)

## Configuration

seql currently expects the following heiarchy:
seql currently runs under the following heirarchy:
```
./seql
./migrations/migrations.clj
./migrations/databases.clj
seql
migrations/migrations.clj
migrations/databases.clj
```

Sample migrations.clj:
*migrations/migrations.clj*:
```clojure
{"0.0.1" ["1.sql"
"2.sql"]
"0.0.2" ["1.sql"]}
```

Sample databases.clj:
*migrations/databases.clj*:
```clojure
{"default" {:classname "com.mysql.jdbc.Driver"
:subprotocol "mysql"
:user "root"
:password "sriq@"
:password "rootpass"
:host "0.0.0.0"
:port "3306"
:databases [{:schema "example"}
Expand All @@ -44,7 +44,7 @@ Sample databases.clj:
"another" {:classname "com.mysql.jdbc.Driver"
:subprotocol "mysql"
:user "root"
:password "sriq@"
:password "rootpass"
:host "0.0.0.0"
:port "3306"
:databases [{:schema "example6"
Expand All @@ -56,6 +56,10 @@ Sample databases.clj:
{:schema "example10"}]}}
```

Note that any properties specified in a `:databases` cell take precedence over the base properties.

In other words, schema "example6" will connect with user "anotheruser" and password "anotherpassword" whereas schemas "example7", "example8", "example9", "example10" will all connect with user "root" and password "rootpass".


## Usage

Expand Down

0 comments on commit bf26413

Please sign in to comment.