Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (11 sloc) 482 Bytes

Usage

sqlrun -dir "" -p comma,separated,prefixes

Description

Recursively search "dir" for sql files and run them against the database pointed to by the connection string in config.json

config.json

{ "connectionString": "connection string" }

Notes

For instance, if you wanted to make sure all table definition files run first, specify -p tbl Multiple priorities can be set, otherwise it will order them by how it finds them in the directory structure.

Enjoy!