Skip to content

Commit 7b81cfe

Browse files
author
Pavel Romanov
committed
New version, readme fix
1 parent bce2060 commit 7b81cfe

File tree

4 files changed

+9
-169
lines changed

4 files changed

+9
-169
lines changed

README.MD

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ npm install multi-data-source
1313

1414
* Multiple data sources support
1515
* Multiple RDBMS support (only PostgreSQL for now, but you feel free to contribute your own connector to favorite RDBMS)
16-
* Single interface to pass query parameters to multiple RDBMS with param escaping module
16+
* Single interface to pass query parameters to multiple RDBMS with [param wrapping module](https://github.com/shikyaro/node-query-template)
1717

1818

1919
## Dependencies
@@ -53,15 +53,15 @@ const getUsersByScore = {
5353
`,
5454
addons: {
5555
noGlobalJoin: {
56-
additionOptions: {propertyName: 'global', propertyValue: false},
56+
options: {propertyName: 'global', propertyValue: false},
5757
sql: 'INNER JOIN mega_jackpot_halls AS mjh USING(hall_id)',
5858
},
5959
nickname: {
60-
additionOptions: {propertyName: 'needNickname', propertyValue: true},
60+
options: {propertyName: 'needNickname', propertyValue: true},
6161
sql: ', nickname',
6262
},
6363
balance: {
64-
additionOptions: {propertyName: 'balanceCondition', propertyValue: true},
64+
options: {propertyName: 'balanceCondition', propertyValue: true},
6565
sql: 'AND balance >= :balance',
6666
},
6767
},
@@ -111,7 +111,7 @@ const query = {
111111
addons: { // Object with named additions
112112
addonName: { // Addition object
113113
sql: 'AND field1 = :field1', // String with addition SQL
114-
additionOptions: { // Object with addition config
114+
options: { // Object with addition config
115115
propertyName: 'field1', // Name of templating property
116116
propertyValue: true, // Value of templating property
117117
}

package-lock.json

Lines changed: 1 addition & 162 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
"url": "git://github.com/Shikyaro/multi-data-source.git"
77
},
88
"license": "MIT",
9-
"version": "0.0.2",
9+
"version": "0.0.3",
1010
"scripts": {
11-
"autofix": "eslint --fix ."
11+
"autofix": "eslint --fix .",
12+
"test": "./node_modules/.bin/jest ./test"
1213
},
1314
"dependencies": {
1415
"pg": "^7.4.1",

test/multi-data-source.test.js

Whitespace-only changes.

0 commit comments

Comments
 (0)