Commit Graph

40 Commits

Author SHA1 Message Date
Muhammad Aaqil 611ee3a6f4 fix: remove readOnly keys from query
Signed-off-by: Muhammad Aaqil <aaqilniz@yahoo.com>
2023-06-19 09:58:37 -04:00
Samarpan Bhattacharya fd0e8d8e0f fix: handle non generated ids in bulk insert
Signed-off-by: Samarpan Bhattacharya <this.is.samy@gmail.com>
2022-12-14 13:12:25 -05:00
Samarpan Bhattacharya 7a02f12194 feat: add capability for insert multiple rows in single query
Signed-off-by: Samarpan Bhattacharya <this.is.samy@gmail.com>
2022-09-22 10:42:26 -04:00
Rifa Achrinza d17b2414f5 fix: support additional values for Connector.isNullable
Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
2022-08-25 22:36:49 +00:00
Raymond Feng 8d8361337d Group clauses for AND/OR conditions
This is required to preserve the order of conditions


Signed-off-by: Raymond Feng <enjoyjava@gmail.com>
2020-11-06 09:47:25 -08:00
Agnes Lin 9d03b8cde8 push column/idcolumn to connector level and renam 2020-04-17 14:28:19 -04:00
Michael DePetrillo 25ce706166 fix: run migrations in series 2020-03-30 14:29:29 -04:00
Agnes Lin aa26562cbe fix the way it gets column name for id property 2020-02-28 13:10:07 -05:00
Diana Lau 32aef14f10 chore: update copyright year 2020-02-10 13:52:06 -05:00
Janny ee6b53618b
test: add tests for isactive (#165) 2020-01-21 11:06:46 -05:00
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
Marvin Irwin ab99062e63
Fix SqlConnector to ignore empty WHERE statements 2019-09-20 17:02:30 +02:00
Dominique Emond 7ab10fb8fb fix: prevent adding listeners past limit
Co-authored-by: Dominique Emond <dremond@ca.ibm.com>
2019-08-13 19:09:48 -04:00
Nora 4c4d05fe87 chore: update deps and fix lint violations 2019-08-02 09:50:51 -04:00
Biniam Admikew d79092aadb chore: add promise support
Add promise support to transaction methods.

Co-Authored-By: Miroslav Bajtoš <mbajtoss@gmail.com>
2019-06-28 09:26:58 -04:00
Samarpan Bhattacharya 998cfba9ae feat: map property name to table column name 2019-05-02 18:53:00 +05:30
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
Miroslav Bajtoš 284e0111b7
Update Mocha and Chai to latest 2018-06-12 16:44:24 +02:00
Miroslav Bajtoš a695cb22e1
Update eslint + config to latest 2018-06-12 16:33:52 +02:00
Jürg Lehni e253d39901 Add support for transactions in count() 2017-08-23 16:35:19 +02:00
Diana Lau 5a00628526 Fix transaction 2017-07-14 11:24:08 -04:00
Raymond Feng e77b300384 Update deps and fix styles 2017-03-06 15:40:47 -08:00
Masu Lin d45aaec5ef Add JSONStringPacker
Add a helper for encoding JavaScript values into JSON String format.

The implementation is based on JSON String format
and preserves JavaScript objects like Buffers
and Dates, as opposed to encoding format.
2016-10-29 00:20:34 +08:00
Miroslav Bajtoš 512ff29aa9 Increase delay in tests to stop intermittent fails 2016-10-24 10:05:25 +02:00
Miroslav Bajtoš 6fd3ac7285 Add BinaryPacker from kv-redis connector
Add a helper for encoding JavaScript values into binary Buffers.

The implemenetation is based on msgpack5 format and preserves JavaScript
objects like Buffers and Dates, as opposed to (binary)JSON.
2016-10-24 09:58:04 +02:00
Miroslav Bajtoš 2cbc1143c1 Add ModelKeyComposer from kv-redis connector
Add two helper methods for composing and parsing key-value keys:
 - in juggler, we use (modelName, key) tuple
 - in backends, there is usually a single string key required
2016-10-24 09:58:04 +02:00
Ryan Graham 958c6619e3
update copyright notices and license 2016-05-05 21:50:59 -07:00
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
Simon Ho 4437b32e4b Add support for RegExp operator 2015-07-27 09:33:10 -07:00
Raymond Feng 98eeab1044 Add a test for nesting and/or 2015-06-24 23:03:13 -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 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 a20fa8ada8 Refactor base and sql connector 2015-05-13 10:14:44 -07: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
Miroslav Bajtoš 96d3332165 fixup: add a stub test 2014-05-23 19:18:11 +02:00