Muhammad Aaqil
8812d51862
fix: change condition to treat tinyint as boolean
...
Signed-off-by: Muhammad Aaqil <aaqilcs102@gmail.com>
2024-09-01 20:31:07 +05:00
Muhammad Aaqil
77b2c401f8
fix: discover properties with json type
...
Signed-off-by: Muhammad Aaqil <aaqilcs102@gmail.com>
2024-05-22 21:21:22 -04:00
Muhammad Aaqil
8b94368ed4
fix: add order by ordinal position for query columns
...
Signed-off-by: Muhammad Aaqil <aaqilcs102@gmail.com>
2024-01-21 07:18:51 +05:00
Muhammad Aaqil
23a1b0c9cc
fix: return enum type
...
Signed-off-by: Muhammad Aaqil <aaqilcs102@gmail.com>
2023-11-17 15:33:29 +05:00
Muhammad Aaqil
ab28f74fb4
fix: parse some options to boolean
...
Signed-off-by: Muhammad Aaqil <aaqilniz@yahoo.com>
2023-06-19 09:55:38 -04: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
Diana Lau
2bb2f8d51f
chore: update copyrights year
2020-02-08 17:23:33 -05:00
Agnes Lin
a12558e8a4
chore: update copyrights years
2019-05-07 13:37:19 -04:00
Raymond Feng
be599b9347
use "owner" for discovered results
2018-07-12 10:53:20 -07:00
biniam
7a7a34e77f
upgrade eslint deps
2017-07-25 15:41:11 -04:00
Tetsuo Seto
b0ac2509f1
Add DECIMAL to Number prop type
2017-06-26 21:21:50 -07:00
Christiaan Westerbeek
b67b57970f
Return if column is generated or not ( #198 )
...
* Return if column is generated or not
Related to
https://github.com/strongloop/loopback-datasource-juggler/issues/899
* add pk for testgen table
* Fixe the double quotes around generated
as requested by @loay
* Fix commit linter
Block must not be padded by blank lines padded-blocks
* Code fixes to follow guide
* Should fix the tests failing
Test failing on the tableName (incorrect case)
2017-03-08 18:56:27 -05:00
Loay
820bf03400
Refactor Discovery Methods
2017-02-28 16:06:51 -05:00
Carl Fürstenberg
5383c4c0ff
Follow mysql recommendations for handling booleans
...
Per http://dev.mysql.com/doc/refman/5.7/en/numeric-type-overview.html
`BOOL` and `BOOLEAN` is alias for `TINYINT(1)` thus we should make
sure discover can handle as such.
Introducing three flags:
* treatCHAR1AsString
default false - treats CHAR(1) as a String instead of a Boolean
* treatBIT1AsBit
default true - treats BIT(1) as a Boolean instead of a Binary
* treatTINYINT1AsTinyInt
default true - treats TINYINT(1) as a Boolean instead of a Number
The default handling for CHAR(1) is legacy backward compability due to
custom to use a CHAR(1) to store 'Y', 'N', '0', '1', etc...
2017-01-11 19:44:50 -08:00
Loay
9c9b61e7dc
Update eslint infrastructure
2016-08-10 20:04:26 -04:00
Candy
b55ae36e79
Add globalization
2016-07-28 17:20:03 -04:00
Ryan Graham
340a4eb0f6
insert/update copyright notices
2016-05-03 16:52:03 -07:00
Raymond Feng
c5d3b67bfe
Fix the typo
2015-05-14 08:39:36 -07:00
Raymond Feng
be54c1a407
Refactor the code to use base SqlConnector
2015-05-13 10:17:15 -07:00
Partap Davis
0964a2634a
replace dataLength instead of adding length property
2015-03-07 20:09:10 -07:00
Partap Davis
1ee0c2f3bb
Query string length for schema in characters in addition to bytes
2015-03-02 15:10:19 -07:00
Raymond Feng
de299aed9f
Merge pull request #60 from serkanserttop/fix-inherit-schema-from-datasource
...
Inherit Schema From DataSource if not defined
2015-01-14 14:48:22 -08:00
Raymond Feng
f9caaafe37
Better handle discovery of nullable columns
2014-12-03 14:09:52 -08:00
Serkan Serttop
78476b5a9a
Inherit Schema From DataSource if not defined
...
If owner is not set via json in the discovery process, use the database
schema defined in the dataSource setting.
2014-11-30 02:40:41 +02:00
Raymond Feng
33b86b51b2
Fix object/json type mapping
2014-05-25 09:46:55 -07:00
Raymond Feng
b0f636a4c4
Fix the query for discovery with current user
...
See https://github.com/strongloop/loopback-connector-mysql/issues/22
2014-04-08 08:35:39 -07:00
Raymond Feng
1e73a4b496
Fix merge issue
2014-02-13 08:35:52 -08:00
Raymond Feng
e54aa56cee
Reformat code
2014-02-12 16:57:06 -08:00
Samer Aldefai
3a06e0eae1
Update discovery.js
...
The issue is with the Discovery of Models. MYSQL Fields of Type 'POINT' are being discovered but loopback LDL model field provided by discovery functions is being of type 'String'.
missing code: case 'POINT': return 'GeoPoint';
for further information:
https://github.com/strongloop/loopback-connector-mysql/issues/17
2014-02-07 18:12:07 +01:00
Raymond Feng
20b9147970
Remove synchronous versions of the discovery APIs
...
Node.js mysql driver doesn't support sync query
2013-10-28 13:11:22 -07:00
Raymond Feng
839d7b4563
Fix the table_schema name
2013-10-22 11:45:31 -07:00
Raymond Feng
721e680bc3
Remove console.log
2013-10-08 14:03:19 -07:00
Raymond Feng
869348df09
Fix discovery of exported keys
2013-10-08 13:44:37 -07:00
Raymond Feng
6b6e9144ed
Add docs for README and js code
2013-10-03 14:50:38 -07:00
Raymond Feng
24922bc98b
Add precision/scale
2013-07-25 15:03:03 -07:00
Raymond Feng
4bedf2200c
Add discovery test cases
2013-07-21 22:57:19 -07:00
Raymond Feng
fb375fdcc8
Enable discovery
2013-07-21 10:36:26 -07:00
Raymond Feng
1329b40073
Start to add discovery
2013-07-20 23:38:40 -07:00