Amir Jafarian
70277da109
Fix linting errors
2016-04-11 13:06:33 -04:00
Amir Jafarian
fc33ced470
Auto-update by eslint --fix
2016-04-09 14:35:52 -04:00
Amir-61
505d219129
Merge pull request #35 from strongloop/replace
...
Implement replace
2016-03-28 17:06:11 -04:00
Maor Hayun
eba7e68059
fixed build of where statement when filter contains non-existing column
2016-02-06 19:07:49 +02:00
Amir Jafarian
9c7fef5789
change replace to replaceById
2016-01-27 09:46:35 -05:00
Amir Jafarian
b16f9e0169
Remove underscore from _buildReplaceFields
...
*Remove underscore from _buildReplaceFields because it is a protected method subject to override by subclasses.
2016-01-14 12:46:14 -05:00
Amir Jafarian
48931922c3
Change _buildReplace to buildReplace
2016-01-12 17:27:55 -05:00
Amir Jafarian
98795213fc
Change _buildUpdate to buildUpdate
2016-01-12 13:22:37 -05:00
Amir Jafarian
97c972e3ea
Apply feedback
2016-01-09 03:23:49 -05:00
Amir Jafarian
1e5c7dbfc4
call execute directly for _replace
2016-01-07 22:03:10 -05:00
Amir Jafarian
3a92328fc3
Implement replaceAttributes
2016-01-07 18:12:45 -05:00
Raymond Feng
26712a7014
Merge pull request #34 from eugene-frb/master
...
1. Error logging. 2. Options argument of model's include function to …
2015-11-23 15:08:19 -08:00
eugene-frb
0cb12f085b
Removed filterWhere option
...
The correct place to set this option that triggers injection of
PARTITION BY clause is includeHasMany() in juggler.js.
2015-11-19 11:18:17 -08:00
eugene-frb
ac52394746
1. Error logging. 2. Options argument of model's include function to pass filter.where object.
2015-11-10 14:48:52 -08:00
Matteo Padovano
89939cff52
Fixed typo.
2015-10-13 12:59:17 +02:00
Simon Ho
8d01d3e8e2
Fix RegExp coercion
...
- Do not coerce RegExp literal/objects into a string
2015-07-28 11:58:14 -07:00
Simon Ho
4437b32e4b
Add support for RegExp operator
2015-07-27 09:33:10 -07:00
Frank Steegmans
8762196028
Enable Inversion of Control in connector hooks through modifications of the context object.
2015-06-21 17:54:21 +02:00
Raymond Feng
39cb95579a
Fix the callback
2015-05-27 13:40:03 -07:00
Raymond Feng
50ac48c5f7
Add hooks to sql based connectors
2015-05-22 09:03:27 -07:00
Raymond Feng
a5f11ac5f5
Fix for https://github.com/strongloop/loopback-connector-mssql/issues/45
2015-05-22 08:52:40 -07:00
Raymond Feng
d930972d3e
Fix the jsdoc for applyPagination
2015-05-20 17:20:55 -07:00
Raymond Feng
a62e06d367
Fix for https://github.com/strongloop/loopback-connector-postgresql/issues/80
2015-05-20 09:20:35 -07:00
Raymond Feng
97c9d54c43
Add tests for propagating a transaction over relations
2015-05-15 16:59:59 -07:00
Raymond Feng
8815e9c961
Add transaction support
2015-05-15 10:27:08 -07:00
Raymond Feng
2cb0f5280a
Make sure invalid fields are filtered out
2015-05-13 15:03:49 -07:00
Raymond Feng
a20fa8ada8
Refactor base and sql connector
2015-05-13 10:14:44 -07:00
Miroslav Bajtoš
1eb6d79b97
Fix crash in `id(model, property)`
...
Before this change, an attempt to save a model instance with a dynamic
property to a MySQL datasource crashed the application.
This commit fixes the implementation of `id(model, property)` to
correctly handle the case when the property is not described in the
model definition.
2015-01-28 11:38:11 +01:00
Raymond Feng
0889ae40dc
Make sure callback happens if a model is not attached to the data source
2014-10-13 09:47:11 -07:00
Raymond Feng
0a62bffafb
Fix updateAttributes impl
...
See https://github.com/strongloop/loopback-connector-mysql/issues/40
2014-06-20 21:13:10 -07:00
Raymond Feng
614ac2b419
Fix style to pass jlint
2014-06-18 22:35:52 -07:00
Raymond Feng
b4a45603cb
Add space
2014-06-18 22:29:34 -07:00
Raymond Feng
7d6f0f5ab9
Add bulk update support
2014-06-18 22:24:55 -07:00
Raymond Feng
1553452346
Fix the count() impl to use buildWhere() from the subclass
2014-06-03 07:59:27 -07:00
Miroslav Bajtoš
48884f7b79
Initial implementation.
...
Add `lib/connector.js` and `lib/sql.js` from
strongloop/loopback-datasource-juggler@5937f0c .
Export both classes from `index.js`
Rename `BaseSQL` to `SqlConnector`.
Fix jshint errors.
2014-05-23 15:44:41 +02:00