Commit Graph

195 Commits

Author SHA1 Message Date
Renovate Bot 4376833ccc chore: update dependency loopback-datasource-juggler to v4
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-04-04 17:25:30 +00:00
Renovate Bot 9a8d698f0b chore: update dependency msgpack5 to ^4.5.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-03-30 00:36:32 +00:00
Renovate Bot 36325f7f03 chore: update dependency uuid to ^8.3.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-03-30 00:24:05 +00:00
Renovate Bot f8e0c280c8 chore: update dependency strong-globalize to ^6.0.5
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-03-29 23:29:58 +00:00
Renovate Bot b8fa00b00b chore: update commitlint monorepo
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-03-29 23:06:07 +00:00
Renovate Bot a1ca7e596e chore: update dependency mocha to ^9.2.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-03-29 17:06:37 +00:00
Renovate Bot ac127d2277 chore: update dependency loopback-datasource-juggler to ^3.36.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-03-29 16:54:24 +00:00
Renovate Bot a1887eebc8 chore: update dependency eslint to ^7.32.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-03-29 16:41:09 +00:00
Rifa Achrinza bfed6a0257 ci: update envirnoment
see: https://github.com/loopbackio/cicd/issues/2
see: https://github.com/loopbackio/cicd/issues/6
see: https://github.com/loopbackio/cicd/issues/4

Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
2022-03-29 16:11:22 +00:00
Renovate Bot 24654b5016 chore: update dependency debug to ^4.3.4
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-03-29 16:10:16 +00:00
Renovate Bot b87431fb2c chore: update dependency nanoid to 3.1.31 [security]
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-03-29 13:52:59 +00:00
Renovate Bot 6765187eac chore: update dependency chai to ^4.3.6
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-03-29 13:44:04 +00:00
Renovate Bot 17db979f12 chore: update dependency async to ^3.2.3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-03-29 13:43:40 +00:00
Rifa Achrinza af3d05478e ci: update ci
Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
2021-09-26 20:53:45 +08:00
Raymond Feng 94280aaff6 5.0.1
* Group clauses for AND/OR conditions (Raymond Feng)
2020-11-09 07:26:24 -08:00
Miroslav Bajtoš 576e956dc1
5.0.0
* chore: update dependencies to latest (Miroslav Bajtoš)
 * chore: update devDependencies to latest (Miroslav Bajtoš)
 * travis: add Node.js 14.x (Miroslav Bajtoš)
 * [SEMVER-MAJOR] Drop support for Node.js 8.x (Miroslav Bajtoš)
 * chore: switch to DCO (Diana Lau)
2020-08-28 08:22:13 +02:00
Miroslav Bajtoš 1ff7e377bb
chore: update dependencies to latest
- strong-globalize: ^6.0.4 (requires Node.js >=10)
- uuid: ^8.3.0

Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
2020-08-27 17:22:57 +02:00
Miroslav Bajtoš a1f4c2cb0c
chore: update devDependencies to latest
- eslint: ^7.7.0
- mocha: ^8.1.1

Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
2020-08-27 17:22:56 +02:00
Miroslav Bajtoš aeace9b7e6
[SEMVER-MAJOR] Drop support for Node.js 8.x
Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
2020-08-27 17:07:08 +02:00
Miroslav Bajtoš bce6fa8c1f
4.11.1
* Improve assertion in ParameterizedSQL builder (ewrayjohnson)
2020-07-31 17:03:33 +02:00
Raymond Feng 7d43b461d1 4.11.0
* chore: update dependencies (Raymond Feng)
 * push column/idcolumn to connector level and renam (Agnes Lin)
 * fix: run migrations in series (Michael DePetrillo)
2020-04-26 19:43:26 -07:00
Raymond Feng f96c58a33b chore: update dependencies 2020-04-26 16:34:21 -07:00
Diana Lau 569f966613 4.10.2
* fix the way it gets column name for id property (Agnes Lin)
 * chore: update copyright year (Diana Lau)
 * test: add tests for isactive (#165) (Janny)
 * feat: add isactive check for transaction (#164) (Janny)
 * Remove "good first issue" from stalebot (Miroslav Bajtoš)
2020-03-04 12:41:19 -05:00
jannyHou cf43a0de9e 4.10.1
* feat: add isactive check for transaction (#164) (Janny)
 * Remove "good first issue" from stalebot (Miroslav Bajtoš)
2020-01-20 15:57:46 -05:00
Diana Lau 118da384e7 4.10.0
* chore: disable security issue reporting (Nora)
 * Remove loopback-connector-ibmi from downstream (Miroslav Bajtoš)
 * Remove unstable connectors from downstream list (Miroslav Bajtoš)
 * Introduce issue templates for bugs, features, etc. (Miroslav Bajtoš)
 * Improve PULL_REQUEST_TEMPLATE (Miroslav Bajtoš)
 * Fix eslint violations (Miroslav Bajtoš)
 * Remove Biniam from CODEOWNERS (Miroslav Bajtoš)
 * Fix SqlConnector to ignore empty WHERE statements (Marvin Irwin)
2019-12-17 11:51:46 -05:00
Miroslav Bajtoš 6535723d73
Remove loopback-connector-ibmi from downstream
Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
2019-11-05 17:23:35 +01:00
Miroslav Bajtoš a3e1a08fa6
Remove unstable connectors from downstream list
Configure cis-jenkins CI build to ignore the following repositories
when deciding which downstream projects to build:

 - loopback-connector-db2z
 - loopback-connector-informix
 - loopback-connector-mqlight
 - loopback-connector-kv-extreme-scale

The list is the same as we have in loopback-datasource-juggler now.

Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
2019-11-05 17:23:25 +01:00
Diana Lau c27e21fb4f 4.9.0
* fix: prevent adding listeners past limit (Dominique Emond)
 * chore: update deps and fix lint violations (Nora)
 * drop support for node.js 6 (Nora)
 * chore: add node 12 (Nora)
2019-09-19 10:13:17 -04: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
Nora 19ca0dbc26 drop support for node.js 6 2019-07-26 08:27:32 -04:00
Biniam Admikew 7e9a4463ab 4.8.0
* chore: add promise support (Biniam Admikew)
2019-06-28 12:50:49 -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
Diana Lau 417d6467b0 4.7.0
* feat: map property name to table column name (Samarpan Bhattacharya)
 * chore: update copyrights years (Diana Lau)
2019-05-03 16:29:09 -04:00
Diana Lau 59d7089f7d chore: update copyrights years 2019-04-18 17:42:33 -04:00
biniam d36d059a8e 4.6.2 2019-03-22 12:55:34 -04:00
Diana Lau d0e6d36a1a 4.5.2
* fix: make prop def getter backward-compatible (biniam)
 * chore: update CODEOWNERS (Diana Lau)
 * Revert "4.6.0" (biniam)
 * feat: retrieve nested property definitions (Piero Maltese)
2019-03-22 09:21:13 -04:00
biniam 34c669b96a Revert "4.6.0"
This reverts commit 560629c1d2.
It was accidentally released as a semver minor when it should
have been released as a semver major. The patch included breaking
changes for the APIs it modified.
2019-02-20 10:40:30 -05:00
biniam 560629c1d2 4.6.0
* feat: retrieve nested property definitions (Piero Maltese)
2019-02-19 10:07:58 -05:00
Raymond Feng dbfebb845b 4.5.1
* allow schema or owner (Raymond Feng)
 * [WebFM] cs/pl/ru translation (candytangnb)
2018-07-16 14:40:45 -07:00
Miroslav Bajtoš f3f4c61c15
4.5.0
* Update msgpack5 to 4.x (Miroslav Bajtoš)
 * Update strong-globalize to 4.x (Miroslav Bajtoš)
 * Update Mocha and Chai to latest (Miroslav Bajtoš)
 * Update eslint + config to latest (Miroslav Bajtoš)
 * Disable package-lock feature of npm (Miroslav Bajtoš)
 * Travis: add Node.js 8.x + 10.x to the build matrix (Miroslav Bajtoš)
 * Drop support for Node 4.x (Miroslav Bajtoš)
 * chore:update license (Diana Lau)
2018-06-14 09:33:51 +02:00
Miroslav Bajtoš 9435ba5071
Update msgpack5 to 4.x
This adds support for Timestamp extension type:
https://github.com/msgpack/msgpack/blob/master/spec.md#timestamp-extension-type
2018-06-12 16:49:36 +02:00
Miroslav Bajtoš 9c44ec59c3
Update strong-globalize to 4.x 2018-06-12 16:44:59 +02: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
Miroslav Bajtoš 5231b0cb27
Drop support for Node 4.x
Node 4.x is no longer maintained by Node.js project.
2018-06-12 16:30:15 +02:00
Diana Lau 32794834ce 4.4.0
* update depdencies (Diana Lau)
 * package: use loopback-datasource-juggler@3.12 (Kevin Delisle)
2017-10-17 08:37:46 -04:00
Diana Lau 89330cdbef update depdencies 2017-10-16 18:46:27 -04:00
Kevin Delisle 4803b0cff9 package: use loopback-datasource-juggler@3.12 2017-09-07 11:12:54 -04:00
Kevin Delisle f2cbdedee5 4.3.0
* Transaction: Support moving timeout to connector (Jürg Lehni)
 * Add support for transactions in count() (Jürg Lehni)
 * Add stalebot configuration (Kevin Delisle)
 * Create Issue and PR Templates (#113) (Sakib Hasan)
 * Update translated strings Q3 2017 (Allen Boone)
 * update messages.json (Diana Lau)
 * Add CODEOWNER file (Diana Lau)
2017-09-01 12:51:28 -04:00
Jürg Lehni b6670f5d6c Transaction: Support moving timeout to connector 2017-08-31 16:43:51 +02:00
Kevin Delisle a22d8cb827 4.2.2
* Fix transaction (Diana Lau)
 * Fix comment lines (Quentin Presley)
 * Fix API docs (#80) (Rand McKinney)
2017-07-17 10:40:28 -04:00
Kevin Delisle e50644a922 4.2.1
* Updated Italian translated strings Q2 2017 (Allen Boone)
 * Update translated strings Q2 2017 (Allen Boone)
 * Fix update bug when id not found (Loay Gewily)
2017-06-22 10:46:02 -04:00
Kevin Delisle 6bb07257d3 4.2.0
* Add generateUniqueId prototype (Tetsuo Seto)
 * Add travis for CI (#91) (Sakib Hasan)
2017-04-10 15:08:51 -04:00
Kevin Delisle 34cd86901a 4.1.0
* Extract getAddModifyColumns into base (#90) (Sakib Hasan)
2017-03-31 10:35:25 -04:00
Raymond Feng 8f2cb3ae7a 4.0.0
* Update deps and fix styles (Raymond Feng)
 * Add checkFieldAndIndex (#87) (Janny)
 * Refactor SQL migration methods (ssh24)
 * Fix replaceById for Oracle (Loay Gewily)
 * Refactor SQL discovery methods (Loay)
 * Fix replaceById unfound id bug (Loay Gewily)
2017-03-06 15:57:01 -08:00
Raymond Feng e77b300384 Update deps and fix styles 2017-03-06 15:40:47 -08:00
Miroslav Bajtoš e384aa53ee 3.0.0
* Update paid support URL (Siddhi Pai)
 * Start 3.x + drop support for Node v0.10/v0.12 (siddhipai)
 * Drop support for Node v0.10 and v0.12 (Siddhi Pai)
 * Dev of the next major version (Siddhi Pai)
2016-12-21 12:50:08 +01:00
Siddhi Pai 8b11a3d5c7 Drop support for Node v0.10 and v0.12 2016-11-18 12:47:19 -08:00
Siddhi Pai adc9087c62 Dev of the next major version 2016-11-18 12:46:18 -08:00
Miroslav Bajtoš bdf8dd4e89 2.7.1
* Export JSONStringPacker (Masu Lin)
2016-11-10 10:01:52 +01:00
Miroslav Bajtoš 3ad313aed6 2.7.0
* Add JSONStringPacker (Masu Lin)
2016-11-08 14:49:56 +01:00
Miroslav Bajtoš b698b82ce7 2.6.0
* Increase delay in tests to stop intermittent fails (Miroslav Bajtoš)
 * Add BinaryPacker from kv-redis connector (Miroslav Bajtoš)
 * Add ModelKeyComposer from kv-redis connector (Miroslav Bajtoš)
2016-10-24 10:18:58 +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
Candy 782a68e914 2.5.0
* Update translation files - round#2 (#62) (Candy)
 * Add translated files (Amir Jafarian)
 * Update deps to LB 3.0.0 RC (Miroslav Bajtoš)
 * Run CI with juggler3 (Loay)
 * Add globalization (Candy)
 * Update URLs in CONTRIBUTING.md (#53) (Ryan Graham)
2016-10-12 17:30:01 -04:00
Miroslav Bajtoš 93f4f0a5d9 Update deps to LB 3.0.0 RC 2016-09-22 12:52:35 +02:00
Loay 3089248447 Run CI with juggler3 2016-09-15 16:17:23 -04:00
Candy d8f303178c Add globalization 2016-07-27 13:19:19 -04:00
Raymond Feng 17fc349cf4 2.4.0
* update copyright notices and license (Ryan Graham)
 * Fix linting errors (Amir Jafarian)
 * Auto-update by eslint --fix (Amir Jafarian)
 * Add eslint infrastructure (Amir Jafarian)
 * fixed build of where statement when filter contains non-existing column (Maor Hayun)
 * change replace to replaceById (Amir Jafarian)
 * Remove underscore from _buildReplaceFields (Amir Jafarian)
 * Change _buildReplace  to buildReplace (Amir Jafarian)
 * Change _buildUpdate to buildUpdate (Amir Jafarian)
 * Apply feedback (Amir Jafarian)
 * call execute directly for _replace (Amir Jafarian)
 * Implement replaceAttributes (Amir Jafarian)
 * Removed filterWhere option (eugene-frb)
 * 1. Error logging. 2. Options argument of model's include function to pass filter.where object. (eugene-frb)
 * Refer to licenses with a link (Sam Roberts)
 * Fixed typo. (Matteo Padovano)
 * Use strongloop conventions for licensing (Sam Roberts)
2016-06-29 16:45:12 -04:00
Amir Jafarian 70277da109 Fix linting errors 2016-04-11 13:06:33 -04:00
Amir Jafarian 9061026027 Add eslint infrastructure 2016-04-09 14:31:22 -04:00
Sam Roberts 3ba31d9c18 Use strongloop conventions for licensing 2015-09-21 16:42:54 -07:00
Raymond Feng 12aa7d6485 2.3.0
* Fix RegExp coercion (Simon Ho)

 * Add support for RegExp operator (Simon Ho)

 * Add a test for nesting and/or (Raymond Feng)
2015-07-29 07:52:36 -07:00
Raymond Feng 6989cfc5fb 2.2.2
* Enable Inversion of Control in connector hooks through modifications of the context object. (Frank Steegmans)
2015-06-23 14:36:02 -07:00
Raymond Feng 1996c83d95 2.2.1
* Fix the callback (Raymond Feng)
2015-05-27 13:40:15 -07:00
Raymond Feng 455774e666 2.2.0
* Update deps (Raymond Feng)

 * Add hooks to sql based connectors (Raymond Feng)
2015-05-27 11:19:48 -07:00
Raymond Feng 2fc9258d67 Update deps 2015-05-27 11:19:24 -07:00
Raymond Feng ceea61e93c 2.1.2
* Fix for https://github.com/strongloop/loopback-connector-mssql/issues/45 (Raymond Feng)

 * Fix the jsdoc for applyPagination (Raymond Feng)
2015-05-22 08:53:18 -07:00
Raymond Feng 09fd0ea54f 2.1.1
* Fix for https://github.com/strongloop/loopback-connector-postgresql/issues/80 (Raymond Feng)
2015-05-20 09:21:04 -07:00
Raymond Feng 5815e79395 2.1.0
* Update sql-connector.md (Rand McKinney)

 * Add tests for propagating a transaction over relations (Raymond Feng)

 * Add transaction support (Raymond Feng)
2015-05-18 14:28:42 -07:00
Raymond Feng e33378b5b7 2.0.1
* Replace with link to Confluence (Rand McKinney)

 * Update sql-connector.md (Rand McKinney)
2015-05-18 09:51:49 -07:00
Raymond Feng 772132497d 2.0.0
* Upgrade deps (Raymond Feng)

 * Make sure invalid fields are filtered out (Raymond Feng)

 * Refactor base and sql connector (Raymond Feng)

 * Update README.md (Paulo McNally)
2015-05-13 16:16:11 -07:00
Raymond Feng 7244cf87cb Upgrade deps 2015-05-13 16:15:47 -07:00
Raymond Feng a20fa8ada8 Refactor base and sql connector 2015-05-13 10:14:44 -07:00
Miroslav Bajtoš d519a360d8 v1.2.1 2015-01-28 19:57:57 +01:00
Miroslav Bajtoš e9b3e2d55c package: add jshint to devDependencies 2015-01-28 19:57:37 +01:00
Raymond Feng d9adf3e365 Bump version 2014-10-13 09:48:52 -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
Raymond Feng 4913b868c5 Bump version 2014-07-20 13:54:25 -07:00
Raymond Feng 2fadea3f42 Bump version 2014-06-18 22:52:47 -07:00
Miroslav Bajtoš 2efe31d763 1.0.0 2014-06-03 08:40:17 +02:00
Miroslav Bajtoš 96d3332165 fixup: add a stub test 2014-05-23 19:18:11 +02: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
Miroslav Bajtoš 2a2d11db0a Initial commit. 2014-05-23 15:44:15 +02:00