Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
feat: add support for multiple connections
Browse files Browse the repository at this point in the history
  • Loading branch information
justinlettau committed Jun 9, 2017
1 parent 0fd1aa4 commit 2319658
Show file tree
Hide file tree
Showing 19 changed files with 1,113 additions and 165 deletions.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,12 @@ the output root directory and SQL scripts will be organized into subdirectories
file).

```bash
ssc pull
ssc pull dev
```

Where `dev` is the optional name of the connection to use. If omitted, the first available connection
is used.

Example output:

```
Expand All @@ -75,17 +78,18 @@ Configuration options are stored in a `ssc.json` file.

```js
{
// SQL server connection options ...
"connection": {
// SQL server connections ...
"connections": [{
"name": "dev",
"server": "dev.example.com\\development",
"database": "awesome-db",
"port": 1433,
"user": "example",
"password": "qwerty"
},
}],

// ... OR, path to Web.config file with connectionStrings
"connection": "../Web.config",
"connections": "../Web.config",

// the following options are optional (default values shown) ...

Expand Down
44 changes: 25 additions & 19 deletions dist/commands/init.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/commands/init.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/commands/pull.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2319658

Please sign in to comment.