Commit Graph

15 Commits

Author SHA1 Message Date
Miroslav Bajtoš a1fe28a3a4
Fix eslint violations
Run `eslint --fix .` to add trailing commas to function arguments.

Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
2019-11-01 13:45:20 +01:00
Nora 4c4d05fe87 chore: update deps and fix lint violations 2019-08-02 09:50:51 -04:00
Diana Lau 59d7089f7d chore: update copyrights years 2019-04-18 17:42:33 -04:00
biniam 95b907b157 fix: make prop def getter backward-compatible
Return early for non-nested properties as before,
and undefined instead of erroring out when the
property type is undefined.
2019-02-22 22:46:38 -05:00
Piero Maltese 30c32b58d3 feat: retrieve nested property definitions 2019-02-15 14:20:01 -05:00
Rand McKinney d1d24529cc Fix API docs (#80)
* Fix API docs

* Replace some text removed from doc comments

* Fix connector docs

* Fix parameterized sql docs

* Fix sql docs
2017-06-22 13:06:24 -04:00
Tetsuo Seto 6d5745f8b6 Add generateUniqueId prototype 2017-04-06 11:47:52 -07:00
Raymond Feng e77b300384 Update deps and fix styles 2017-03-06 15:40:47 -08:00
Candy d8f303178c Add globalization 2016-07-27 13:19:19 -04:00
Ryan Graham 958c6619e3
update copyright notices and license 2016-05-05 21:50:59 -07:00
Amir Jafarian fc33ced470 Auto-update by eslint --fix 2016-04-09 14:35:52 -04:00
Raymond Feng 8815e9c961 Add transaction support 2015-05-15 10:27:08 -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
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