@@ -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 }
0 commit comments