Commit Graph

262 Commits

Author SHA1 Message Date
Kononnable
13eda51860 fixes #157 2019-04-11 21:11:12 +02:00
Kononnable
b6df77debe fixes #139 2019-04-01 22:04:20 +02:00
Kononnable
721ae93214 fixes after merge to latest master, added tests 2019-04-01 12:00:21 +02:00
Kononnable
727e8059e6 Merge branch 'master' into pr/rmachado/79 2019-04-01 11:35:11 +02:00
Kononnable
672a08b4dd mariadb default value comatibility changes
closes #153
2019-03-15 13:28:24 +01:00
Kononnable
87690d0547 fixed generated columns order 2019-03-15 12:33:45 +01:00
Kononnable
abf666d0e7 fixed shadowed variables tslint errors closes #141 2019-03-12 22:01:11 +01:00
Kononnable
f8e39c3304 more fixes on mysql8 2019-03-09 22:22:07 +01:00
Kononnable
fde4cefa45
Merge branch 'master' into mysql-enum 2019-03-09 19:21:50 +01:00
Kononnable
5591a7bc77 generation of models based on multiple databases
closes #144
2019-03-08 23:24:00 +01:00
Jason Lycke
74896657d4 #147: Fix case-sensitive column names 2019-03-06 14:25:11 -05:00
Kononnable
aba47cc9b8 fixes #151 - generation of ManyToMany relation with custom table names 2019-02-25 23:23:07 +01:00
Kononnable
fd07a1879b fixing postgres generation of duplicate relations 2019-02-09 01:29:58 +01:00
Chlorine
c23256a626
Current case-conv for class name in @RelationId
In @RelationId decorator generation class name must be case-converted according to current settings

P.S. Thanks for a great work!
2019-01-30 13:18:20 +03:00
Kononnable
0767128866 fixed column names for joins 2019-01-27 01:58:18 +01:00
Kononnable
c4bc0c007f added naming strategy to config file 2019-01-27 01:12:07 +01:00
Kononnable
21ec046139 stroring config settings in a file 2019-01-26 13:48:12 +01:00
Kononnable
a4fda55e2d added wizard mode 2019-01-26 11:08:46 +01:00
Kononnable
bbcd7fb875 removing column options with default values from generated model 2019-01-24 13:05:13 +01:00
Kononnable
341632e62e changes in columnInfo model 2019-01-23 01:48:45 +01:00
Kononnable
99f3bfe3a3 tests optimization 2019-01-22 22:35:51 +01:00
Kononnable
a27c336056 updating some dependencies 2019-01-22 17:37:59 +01:00
Kononnable
dd59fd3eca more refactorings 2019-01-22 15:58:57 +01:00
Kononnable
c34f2912e0 refactorings 2019-01-21 23:51:25 +01:00
Kononnable
c62010c079 refactorings 2019-01-21 21:32:42 +01:00
Livan
b7b0f2b587
Add support for VARBINARY in MySQL 2019-01-12 07:00:27 +03:00
Kononnable
270461a193 fixed naming strategy changing entity name in db 2019-01-06 15:37:52 +01:00
Kononnable
31ff9c8bf5 fix #135 proper relation generation when unique index have more columns 2019-01-06 14:40:38 +01:00
Kononnable
82f5ae43aa fix for #122 - default values 2018-12-30 12:34:23 +01:00
Kononnable
e769696e58 closing #130 duplicate relations on mysql 2018-12-29 20:50:20 +01:00
Kononnable
1eacddf6bb fixing tests 2018-12-23 20:46:00 +01:00
Jared Malcolm
f66ee271b5 Add flag to models that use the ActiveRecord syntax.
Closes #131
2018-12-19 10:25:49 -06:00
Kononnable
2c37ff9a4d
Merge branch 'master' into issue-123 2018-12-13 20:00:11 +01:00
Kononnable
d5faa8b9c3 more cleaning up 2018-12-08 18:58:16 +01:00
Kononnable
721a85a0b9 more code cleaning 2018-12-08 12:49:57 +01:00
Kononnable
a4592ffb4d code cleanup, introducing tslint 2018-12-08 10:46:18 +01:00
Kononnable
69a2362890 code cleanup 2018-12-06 22:23:30 +01:00
Kevin Guanche Darias
17110d669c Fix problem reported in issue #123 with MySQL driver, in servers running MySQL server 5.7 and having complex schemas 2018-11-06 18:52:10 +00:00
Kononnable
f1e61e8bf7 fixing printPropertyVisibility spaces 2018-11-01 20:59:32 +01:00
Kononnable
0484b1254a changes to property visibility functionality 2018-11-01 19:05:53 +01:00
Kevin Guanche Darias
8fc25aeb5e Fix: Visibility Not been applied to relations 2018-10-31 09:35:35 +00:00
Kevin Guanche Darias
4e1d785b8a Allow to define property visibility, by using --pv 2018-10-31 09:22:55 +00:00
Kononnable
da84c16475 added column type to generated @PrimaryGeneratedColumn decorator 2018-10-21 22:00:48 +02:00
Kononnable
d1c02b0605 fixing naming strategy #99 2018-10-01 22:19:59 +02:00
Kononnable
c72ea59bc4 fixing index column names if property names being case converted #103 2018-09-30 23:41:19 +02:00
Kononnable
200417d350 #96 using PrimaryGeneratedColumn decorator in generated entities 2018-09-02 15:35:34 +02:00
Kononnable
f10242f57d #56 Postgres Array Column Type 2018-08-26 16:31:50 +02:00
Kononnable
ea62f0c686 #85 postgres geometry type 2018-08-26 12:48:24 +02:00
Kononnable
76065733f7 #81 postgress support for citext, hstore column types 2018-08-26 12:37:02 +02:00
Kononnable
d7ee4990c1 #94 RelationInfo.isManyToOne 2018-08-26 01:51:09 +02:00
Kononnable
f3a79c2e38 #71 relation onUpdate 2018-08-26 01:19:28 +02:00
Kononnable
b0678e6474 fixing naming strategy bug - naming of related column in owner relation 2018-07-31 22:18:14 +02:00
pii
5c34bac4a9 fix namingStrategy for entity name 2018-07-12 17:14:07 -03:00
Kononnable
36ed40e679 fixing oracle output format 2018-06-19 23:45:06 +02:00
Kononnable
14ef1e7ddb relationId #65 2018-06-17 20:46:50 +02:00
Kononnable
8bb80c13a6 parameter for custom naming strategy 2018-06-17 11:01:47 +02:00
Kononnable
6b3c0bf9de naming strategy 2018-06-17 02:34:45 +02:00
Kononnable
893162b881 generating constructor fixed 2018-06-16 11:40:04 +02:00
Kononnable
0530e1357b formatting 2018-06-14 20:17:06 +02:00
Kononnable
d88ca1975d basic naming strategy #65 #75 2018-06-11 01:07:54 +02:00
Kononnable
87502eab19 #66 added union type with null for nullable columns 2018-06-10 16:12:55 +02:00
Rodrigo Machado
a6cbd14baf MySQL bit support 2018-06-03 14:49:22 -04:00
Kononnable
eab2582ece code cleanup 2018-05-13 15:27:02 +02:00
Kononnable
5db68e1548 composite primary keys support for many to many tables #30 2018-05-05 23:57:18 +02:00
Kononnable
5abfafe519 SQLite column recognition fix 2018-05-05 22:26:52 +02:00
Kononnable
3b0778b35e console parameters changes for sqlite 2018-05-05 22:09:03 +02:00
Kononnable
2a7c1453cc Add option to include partial constructor #67 2018-05-05 21:14:06 +02:00
Kononnable
120894be64 sqlite support #49 2018-04-30 22:47:40 +02:00
Kononnable
426c6272fe added onUpdate to relation options 2018-04-22 22:03:09 +02:00
Kononnable
8d18027adf added lazy relations 2018-04-22 20:26:59 +02:00
Kononnable
2782efb694 Relational Integrity support #47 2018-04-22 15:03:26 +02:00
Kononnable
6e15eb08d1 #58 primary keys on join columns 2018-04-18 22:14:35 +02:00
Kononnable
a1b5e68ea8 recognition of unique column #57 2018-04-15 20:14:16 +02:00
Kononnable
d0fe49b9b8 OracleDB support #9 2018-04-15 18:13:33 +02:00
Kononnable
4c6cfe58cf correct recognition of types with width, length,precision 2018-04-14 16:08:30 +02:00
Kononnable
b34afb9586 upgraded supported types to types supported by typeorm@0.2.0 2018-04-14 14:23:18 +02:00
Kononnable
c2371465b1 upgrading to typeorm@0.2.0-alpha.44 2018-04-11 21:03:02 +02:00
Kononnable
7c65907f21 Logging error will no longer exit node program 2018-03-27 23:29:14 +02:00
Kononnable
7ebc0450b6 postgres fix on finding indexes when multiple constraints 2018-03-27 22:04:21 +02:00
Kononnable
f7e7cdd649 many to many relations 2018-03-26 22:41:50 +02:00
Kononnable
d46738e932 code cleaning 2018-03-25 01:13:16 +01:00
Kononnable
cf108fe638 prettier on src 2018-03-18 20:26:48 +01:00
Kononnable
abdd81efde removing unnesesary console.log 2018-03-13 23:39:10 +01:00
Kononnable
0355fb73e1 #43 2018-03-13 21:34:22 +01:00
Kononnable
78c0b9cf14 forcing CLI parameters to be parsed as strings closes #43 2018-03-10 01:37:04 +01:00
Kononnable
a19d82609c addedsupport for multiple schemas on postgres,mssql
closes #39
2018-03-04 23:39:15 +01:00
Kononnable
1533c34944
Merge pull request #37 from kjaenicke/mssql-timestamp-cols
Adds handling for mssql timestamp cols
2018-02-18 23:37:27 +01:00
Kononnable
9b4d2d3ce1 support for boolean pseudotype on mysql/mariadb, closes #34 2018-02-18 21:50:08 +01:00
Keenan Jaenicke
22ebb24e82 adds handling for mssql timestamp cols 2018-02-15 14:41:39 -05:00
Kononnable
5543648dbd no need to specify custom sql column type for each column
from typeorm 0.1
2018-02-11 01:56:34 +01:00
Kononnable
14d064e631 added prettier 2018-02-04 23:38:43 +01:00
Kononnable
984238db02 Adding type enum for mysql/mariadb; fixes #28 2018-01-30 00:32:24 +01:00
Kononnable
d689121875 Fixing fatal error handler - added printing custom error text 2018-01-29 21:55:43 +01:00
Kononnable
4d1a52a28a fixing generated ormconfig.json(updating to newer typeorm) 2018-01-20 01:24:15 +01:00
Kononnable
02d4182e66 added more case options 2018-01-20 00:56:22 +01:00
Kononnable
0069797e92 Fixing conflicts 2018-01-18 23:21:19 +01:00
Kononnable
cd6c61bc5a added option to skip generating config files closes #17 2018-01-16 23:07:35 +01:00
Kononnable
daf22e3cbe dissabling oracle - no db columns<->typescript mapings, no tests 2018-01-16 22:38:28 +01:00
Kononnable
5cfd596ea1 adding schema information to generated ormconfig #8 #16 2018-01-16 22:35:53 +01:00
Milton Howe
f3458dbbe8 rebase to upstream master 2018-01-15 15:13:28 -05:00
Kononnable
871eb94df9 changed postgres timestamp without time zone recognition #16 2018-01-14 16:54:43 +01:00
Kononnable
1e3b7455b3 merge from master 2018-01-11 18:34:32 +01:00
Kononnable
775a398ed9 fixing #13 2018-01-05 22:34:10 +01:00
Timon van Spronsen
5534919123 Don't require password to be set 2018-01-04 12:00:19 +01:00
Kononnable
fe17e484ce Formatting existing code 2017-12-31 17:28:41 +01:00
Kononnable
a07f347e4b better handling fatal errors, codecov treshold set 2017-12-31 01:20:53 +01:00
Kononnable
d31897f80a adding greenkeeper to branch 2017-12-30 13:31:53 +01:00
Kononnable
11a8615518 updating dependencies and adding greenkeper 2017-12-30 10:31:26 +01:00
Kononnable
3680cf61a6 Removed dependency on Oracle Client Library when not using Oracle Driver 2017-12-25 20:25:35 +01:00
Kononnable
7f2d577b5e oracle - all sql queries, no defined column types, changes needed in connection string generating 2017-12-24 00:58:10 +01:00
Kononnable
49a11b5ec9 oracle - getting all tables 2017-12-18 22:34:31 +01:00
Kononnable
5d3dac6be7 adding oracle support - part 1 2017-12-17 11:38:25 +01:00
Kononnable
50967864bb fixes #15 2017-12-11 23:58:09 +01:00
Kononnable
9c05f24575 #12 2017-12-04 22:03:07 +01:00
Kononnable
7cfe6fa721 support for more(all?) column types in MySQL, MariaDB 2017-11-26 21:32:17 +01:00
Kononnable
2b23d16be5 merging MySQL and MariaDB drivers 2017-11-26 19:52:19 +01:00
Kononnable
a30eb86c83 #12 fixing multiple relations between two tables 2017-11-25 02:23:19 +01:00
Kononnable
b60414792e fixing tests 2017-11-20 22:35:21 +01:00
Kononnable
4e5393d00e support for more(all?) column types in Postgres 2017-11-20 22:23:00 +01:00
Kononnable
298c3bc415 support for more(all?) column types in MSSQL 2017-11-19 22:38:04 +01:00
Rich Adams
868a4458f4 Adding some postgres specific types to the postgres driver 2017-11-06 19:45:23 -08:00
Kononnable
ddec66a863 #3 Support for connecting over SSL 2017-10-15 18:58:17 +02:00
Kononnable
9205cee926 #8 schemas support for postgres and mssql 2017-10-15 18:11:08 +02:00
Kononnable
54fc6317d5 basic support for typeorm 0.1.0-alpha.50; package updates 2017-10-08 21:48:21 +02:00
Milton Howe
7dc9126ab3 add option to generate entities cased for Angular style guide (Pascal Entities, camel propertis, kebab files) 2017-09-12 15:19:55 -04:00
Kononnable
694025ceca added support for MariaDB; formating in some files 2017-08-14 19:07:13 +02:00
Kononnable
4bb989e8a9 fixing travis CI build 2017-08-14 16:45:10 +02:00
Kononnable
83308b1716 added MySQL support 2017-08-14 16:38:18 +02:00
Kononnable
a0b38623b3 added creating test db if it doesn't already exist 2017-08-13 17:55:53 +02:00
Kononnable
36d66ae483 readme, preparation to npm publish 2017-07-20 23:16:55 +02:00
Kononnable
56d5f66e2e #1 postgres support, working tests 2017-07-03 21:52:23 +02:00
Kononnable
8196db67e0 postgres column types, PK finding; not working relations 2017-07-03 02:36:55 +02:00
Kononnable
d60470a7f5 postgres support, not working column types, finding PK 2017-07-02 20:23:54 +02:00
Kononnable
9434426e42 added compilation of generated model in integration tests 2017-06-17 17:11:06 +02:00
Kononnable
7afd9f792c Added indicies to tests 2017-06-16 01:41:25 +02:00
Kononnable
52884da881 added column types tests 2017-06-05 16:01:35 +02:00
Kononnable
d870654fc8 better handling of OneToMany/OneToOne relations 2017-06-05 15:33:34 +02:00
Kononnable
9a2076b3f1 recognision of OneTwoMany relations 2017-06-05 13:39:27 +02:00
Kononnable
06158a50ec typescript version update; nicer fix of possible typescript error 2017-05-29 16:35:10 +02:00
Kononnable
642e57bf74 added relation tests - problems with distinguishing OneTwoMany from OneToOne without indexes 2017-05-27 00:55:10 +02:00
Kononnable
3ca6707a80 changed from mustache.js to handlebars.js 2017-05-24 21:06:50 +02:00
Kononnable
126d9ce185 integration tests column options comparision, added generated column option to creating model from db 2017-05-22 22:46:33 +02:00
Kononnable
c567ee0546 integration test step 2 - not completed yet 2017-05-13 00:33:39 +02:00
Kononnable
6c8342d799 travis CI fix3 2017-05-03 20:20:59 +02:00
Kononnable
d68b2cf3ed first tests created 2017-05-03 19:12:25 +02:00
Kononnable
18918a01d1 better connection error handling 2017-05-01 01:05:19 +02:00
Kononnable
e9e9ed8805 fixing code //TODO issues 2017-04-29 15:56:54 +02:00
Kononnable
9762f37ab5 default value fix 2017-04-26 20:35:09 +02:00
Kononnable
dd2399f4fe disabled mustache char escaping; couple fixes in mustache template 2017-04-26 19:23:22 +02:00
Kononnable
7ef9bb109c added self referencing tables support 2017-04-26 19:05:12 +02:00