Commit Graph

130 Commits

Author SHA1 Message Date
Samarpan Bhattacharya 07173b6bde feat: add mysql8 support, update to mysql2 client and drop nodejs v14 and mysql5.7 support
BREAKING CHANGE
drop mysql5.7 support

Signed-off-by: Samarpan Bhattacharya <this.is.samy@gmail.com>
2023-06-30 15:28:47 +05:30
dhmlau 8176f5850c 6.2.0
* feat: add support for multiple insert in one query (Samarpan  Bhattacharya)
 * feat: Avoid 'USING ' on FULLTEXT index (FORNO)
 * fix: remove redundant debug (Rifa Achrinza)
 * docs: add SECURITY.md (#465) (Diana Lau)
 * docs: update coc (#464) (Diana Lau)
 * docs: add code of conduct (#463) (Diana Lau)
 * chore: remove .travis.yml (Diana Lau)
 * chore: add @marioestradarosa as codeowners (Diana Lau)
2023-01-09 14:47:14 -05:00
Samarpan Bhattacharya a3b354b7f4 feat: add support for multiple insert in one query
BREAKING CHANGE
drop nodejs v12 support and juggler v3 support

Signed-off-by: Samarpan Bhattacharya <this.is.samy@gmail.com>
2023-01-06 08:25:20 -08:00
Diana Lau f09bc95b5d 6.1.0
* feat(operators): add match against operator (Akshat  Dubey)
2021-10-20 19:56:45 -04:00
Diana Lau 76e09eaeaf 6.0.2
* chore: move this repo to loopbackio org (Diana Lau)
 * ci: add GitHub Actions (Diana Lau)
2021-07-12 12:52:36 -04:00
Diana Lau 7697ed2b41 chore: move this repo to loopbackio org
Signed-off-by: Diana Lau <dhmlau@ca.ibm.com>
2021-07-12 11:57:16 -04:00
Diana Lau 584f0c50b0 ci: add GitHub Actions
Co-authored-by: Agnes Lin <agneslin.lin@ibm.com>
Signed-off-by: Diana Lau <dhmlau@ca.ibm.com>
2021-07-09 21:24:47 -04:00
Diana Lau 5d72993d2d 6.0.1
* fix (core) accepts boolean type (yongzhi-chen)
 * fix(docs): Specify table creation order method (Roderik van Heijst)
 * fix(docs): update enum type (Diana Lau)
2021-06-10 15:53:04 -04:00
Miroslav Bajtoš 68e671a50b
6.0.0
* remove bluebird from devDependencies (Miroslav Bajtoš)
 * update eslint + config to latest (Miroslav Bajtoš)
 * update mocha to 8.x (Miroslav Bajtoš)
 * chore: update dependencies to latest (Miroslav Bajtoš)
 * [SEMVER-MAJOR] Drop support for Node.js 8.x (Miroslav Bajtoš)
 * chore: switch to DCO (Diana Lau)
 * docs: update default value setup section (Agnes Lin)
 * chore: add Node.js 14 to travis (Diana Lau)
 * chore: update CODEOWNERS (Diana Lau)
 * fixed typo on readme (filipef101)
2020-09-01 15:02:11 +02:00
Miroslav Bajtoš 848f1ca230
remove bluebird from devDependencies
We were using bluebird as a Promise implementation for Node.js versions
that did not provide a native Promise (i.e. Node.js 0.10 & 0.12). There
is no need for that anymore, since Node.js have been shipping native
Promise implementation for years by now.

Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
2020-08-28 08:49:05 +02:00
Miroslav Bajtoš 7ce66b5b81
update eslint + config to latest
Also fix linting errors, most notably get rid of `var` keyword.

Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
2020-08-28 08:43:09 +02:00
Miroslav Bajtoš 40ce105e57
update mocha to 8.x
Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
2020-08-28 08:37:39 +02:00
Miroslav Bajtoš eadcc57972
chore: update dependencies to latest
regular deps:
- `async` to `^3.2.0`
- `debug` to `^4.1.1`
- `loopback-connector` to `^5.0.0`
- `strong-globalize` to `^6.0.4`

dev deps:

- `should` to `^13.2.3`
- `sinon` to `^9.0.3`

Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
2020-08-28 08:35:49 +02:00
Miroslav Bajtoš 54baf60b2d
[SEMVER-MAJOR] Drop support for Node.js 8.x
Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
2020-08-28 08:24:02 +02:00
Diana Lau 60c3017cc2 5.4.4
* docs: update README with lb4 style (Agnes Lin)
 * chore: update strong-globalize (Diana Lau)
 * fix MySQL README layout (Agnes Lin)
2020-07-10 16:23:11 -04:00
Diana Lau 3384251118 chore: update strong-globalize 2020-03-19 21:00:39 -04:00
Dominique Emond c23bed33eb 5.4.3
* Exclude 'deps' and '.github' from npm publish (Dominique Emond)
 * fix README display on the site (Agnes Lin)
 * chore: update copyrights year (Diana Lau)
 * chore: improve issue and PR templates (Nora)
 * chore: move mocha flag to opts (jannyHou)
 * fix: tests for datatypes (jannyHou)
 * fix: force exit (jannyHou)
 * update tests (jannyHou)
 * upgrade dependencies (jannyHou)
2020-03-19 13:36:13 -04:00
Dominique Emond d182f04f00 Exclude 'deps' and '.github' from npm publish 2020-03-16 11:42:53 -04:00
jannyHou f44e8f5594 chore: move mocha flag to opts 2019-11-07 09:58:22 -05:00
jannyHou 71df0be70b fix: force exit 2019-11-06 16:21:26 -05:00
jannyHou b46dbff5b1 upgrade dependencies 2019-11-06 16:21:26 -05:00
Diana Lau dfad0c6699 5.4.2
* chore: add node 12 (jannyHou)
 * feat: run shared tests (jannyHou)
2019-07-25 13:39:43 -04:00
jannyHou 01c94b6a60 feat: run shared tests 2019-07-09 11:35:59 -04:00
Diana Lau 869061c6f2 5.4.1
* fix: allow DataSource to reconnect properly (Antonio Trapani)
 * update Travis MySQL config (Agnes Lin)
 * fix: update lodash (jannyHou)
 * chore: update copyrights years (Agnes Lin)
2019-05-28 10:37:31 -04:00
jannyHou b1ec4211a7 fix: update lodash 2019-05-22 09:45:09 -04:00
Agnes Lin a12558e8a4 chore: update copyrights years 2019-05-07 13:37:19 -04:00
Diana Lau 26b76a4eeb 5.4.0
* Fix bug property declared index being recreate (HugoPoi)
 * Add onDelete onUpdate foreign key config options (HugoPoi)
 * Fix bug foreign key index being delete wrongly (HugoPoi)
 * chore: update travis and CODEOWNERS (Diana Lau)
2019-05-07 13:28:24 -04:00
Diana Lau b10557356c 5.3.1
* update strong-globalize version (Diana Lau)
2018-09-12 10:45:35 -04:00
Diana Lau dec129eec1 update strong-globalize version 2018-09-12 09:18:42 -04:00
Raymond Feng 76bcec0bf7 5.3.0
* upgrade deps (Raymond Feng)
 * pin mysql image to 5.7 (Raymond Feng)
 * use "owner" for discovered results (Raymond Feng)
 * chore: update license (Diana Lau)
2018-07-12 11:43:31 -07:00
Raymond Feng ea93cc8735 upgrade deps 2018-07-12 11:08:51 -07:00
Diana Lau 4f8b6a0a4d 5.2.0
* revert mocha version change (Diana Lau)
 * update dependencies (Diana Lau)
 * update globalize string (Diana Lau)
 * Add stalebot configuration (Kevin Delisle)
2017-10-17 14:04:17 -04:00
Diana Lau 26dc626ae8 revert mocha version change 2017-10-17 10:51:13 -04:00
Diana Lau e8aa62f52b update dependencies 2017-10-17 08:45:09 -04:00
Kevin Delisle 3b76a72453 5.1.0
* Create Issue and PR Templates (#322) (Sakib Hasan)
 * Use MySQL DEFAULT Clause/Constant (#319) (Eric Dowell)
 * Remove unnecessary line causing validation fail (ssh24)
 * isNewInstance undefined for after save hook (biniam)
 * Add datatype flags to README (biniam)
 * upgrade eslint deps (biniam)
 * Add CODEOWNER file (Diana Lau)
2017-08-21 14:12:56 -04:00
biniam 7a7a34e77f upgrade eslint deps 2017-07-25 15:41:11 -04:00
Kevin Delisle 380eadeaf5 5.0.0
* Add DECIMAL to Number prop type (Tetsuo Seto)
 * Fix fk docs to avoid constraint errors (ssh24)
 * Document GeoPoint migration (biniam)
 * Honor user specified datatype on PKs (ssh24)
 * Require init on mocha args (ssh24)
 * Add docs on FK integrity (ssh24)
 * Create database on the docker script (ssh24)
 * Handle null vals properly (biniam)
 * Allow case sensitive regex operation (ssh24)
 * switch long and lat for geopoint type (biniam)
 * discovery.test: fix discoverModels tests (Kevin Delisle)
2017-07-10 09:58:38 -04:00
ssh24 5d9f69285d Require init on mocha args 2017-06-16 11:45:39 -04:00
Kevin Delisle 2397141544 4.1.1
* Add http status code translations for errors (Kevin Delisle)
 * Allow explicit data types (ssh24)
 * Revert "switch long and lat for geopoint type" (biniam)
 * switch long and lat for geopoint type (biniam)
 * Escape index names (#280) (Sakib Hasan)
 * Fix docker setup (#279) (Sakib Hasan)
 * Add docker setup (#278) (Sakib Hasan)
 * Adding support for fractional seconds. (Joost de Bruijn)
 * fix compare of foreign keys for autoupdate (#272) (Sergey Nosenko)
 * Update README.md (Antoine LA)
2017-06-01 11:34:54 -04:00
ssh24 44083e43c1 Allow explicit data types
Override columnDataType function

Add test cases

Apply feedback

Use date type as explicit datatype
2017-05-31 14:42:53 -04:00
Kevin Delisle 57e76e6fc9 4.1.0
* Tests for datetime types (Kevin Delisle)
 * Add new type DateString to fromColumnValue (Buck Bito)
 * Remove String manipulations of Date objects (Buck Bito)
 * Properties with mysql custom "columnName" don't get autoupdated (#273) (Sergey Nosenko)
 * Revert PR #257 (#266) (Sakib Hasan)
 * Fix async.each in migration (#262) (Benjamin Schuster-Boeckler)
 * refactor date, timestamp and datetime data types handling (#257) (Sergey Nosenko)
 * Fix too many connection error (#261) (Sakib Hasan)
2017-05-02 18:35:55 -04:00
Kevin Delisle f9ab75c1d9 4.0.0
* Replicate new issue_template from loopback (Siddhi Pai)
 * Replicate issue_template from loopback repo (Siddhi Pai)
 * fix linting problems (juanra)
 * Extract functions to base connector (ssh24)
 * Refactor alter table (ssh24)
 * Typo on README (#236) (Ctibor Laky)
 * Return if column is generated or not (#198) (Christiaan Westerbeek)
 * Upgrade to loopback-connector@4.x (Loay)
 * Refactor migration methods (ssh24)
 * Refactor Discovery Methods (Loay)
 * Remove old TODO and commented out code (Matthew Dickinson)
 * Fix autoupdate to create foreign keys after tables (Matthew Dickinson)
 * Add logging for errors encountered in discovery (Matthew Dickinson)
 * Update signature for alterTable (Matthew Dickinson)
 * Limit foreign key creation current connector (Matthew Dickinson)
 * Fix linting error (Matthew Dickinson)
 * Added test to validate foreign key handling (Matthew Dickinson)
 * Update foreign key creation table name handling (Matthew Dickinson)
 * Update alterTable to actually drop constraints (Matthew Dickinson)
 * Add rough handling for automatic foreign keys (Matthew Dickinson)
 * remove line not needed (#237) (ivy ho)
 * Update LB-connector version (Loay)
2017-03-31 17:36:48 -04:00
Loay 44bc9a99cb Upgrade to loopback-connector@4.x 2017-03-06 19:09:42 -05:00
Loay da0807faf6 Update LB-connector version 2017-01-26 10:48:36 -05:00
Miroslav Bajtoš 0fe22653e3 3.0.0
* Follow mysql recommendations for handling booleans (Carl Fürstenberg)
 * Fix readme glitch (#231) (Rand McKinney)
 * Update readme w info from docs (#229) (Rand McKinney)
 * Fix expected column name when autoupdate (muhammad hasan)
 * Update paid support URL (Siddhi Pai)
 * Fix CI Failures (Loay Gewily)
 * Drop support for Node v0.10 and v0.12 (Siddhi Pai)
 * Start the development of the next major version (Siddhi Pai)
 * Update README with correct doc links, etc (Amir Jafarian)
2017-01-13 15:46:04 +01:00
Loay Gewily fce2207da3 Fix CI Failures 2016-12-07 23:53:46 -05:00
Siddhi Pai 0acd9ef15a Drop support for Node v0.10 and v0.12 2016-11-19 01:02:44 -08:00
Siddhi Pai 1a6e51a4a6 Start the development of the next major version 2016-11-19 00:55:50 -08:00
Miroslav Bajtoš 746ee48601 2.4.0
* Add connectorCapabilities global object (#201) (Nicholas Duffy)
 * Remove unused prefix for test env vars (#203) (Simon Ho)
 * Update translation files - round#2 (#199) (Candy)
 * Add CI fixes (#197) (Loay)
 * Add translated files (gunjpan)
 * Update deps to loopback 3.0.0 RC (Miroslav Bajtoš)
 * Remove Makefile in favour of NPM test scripts (Simon Ho)
 * Fixing lint errors (Ron Lloyd)
 * Autoupdate mysql.columnName bug fix (Ron Lloyd)
 * Tests for autoupdate mysql.columnName bug fix (Ron Lloyd)
 * Use juggler@3 for running the tests (Miroslav Bajtoš)
 * Explictly set forceId:false in test model (Miroslav Bajtoš)
 * Fix pretest and init test configs (Simon Ho)
 * Fix to configure model index in keys field (deepakrkris)
 * Update eslint infrastructure (Loay)
 * test: use dump of original test DB as seed (Ryan Graham)
 * test: skip cardinality, update sub_part (Ryan Graham)
 * test: accept alternate test db credentials (Ryan Graham)
 * test: use should for easier debugging (Ryan Graham)
 * test: account for mysql version differences (Ryan Graham)
 * test: match case with example/table.sql (Ryan Graham)
 * test: separate assertions from test flow control (Ryan Graham)
 * test: update tests to use example DB (Ryan Graham)
 * test: seed test DB with example (Ryan Graham)
 * test: fix undefined password (Ryan Graham)
 * Add special handling of zero date/time entries (Carl Fürstenberg)
 * Add globalization (Candy)
 * Update URLs in CONTRIBUTING.md (#176) (Ryan Graham)
2016-10-17 13:20:42 +02:00
Loay 6100a62461 Add CI fixes (#197) 2016-09-28 13:32:38 -07:00