From f3458dbbe8851ee041682eefced4db55419e94bd Mon Sep 17 00:00:00 2001 From: Milton Howe Date: Mon, 15 Jan 2018 15:13:28 -0500 Subject: [PATCH] rebase to upstream master --- .idea/codeStyleSettings.xml | 9 + .idea/codeStyles/codeStyleConfig.xml | 5 + .idea/encodings.xml | 6 + .idea/inspectionProfiles/Project_Default.xml | 6 + .idea/jsLinters/tslint.xml | 4 + .idea/modules.xml | 8 + .idea/typeorm-model-generator.iml | 12 + .idea/vcs.xml | 6 + .idea/workspace.xml | 837 +++++++++ .travis.yml | 44 +- README.md | 11 +- docker-compose.yml | 31 +- package-lock.json | 1583 ++++++++++++----- package.json | 57 +- src/Engine.ts | 8 +- src/drivers/AbstractDriver.ts | 22 +- src/drivers/MariaDbDriver.ts | 401 +---- src/drivers/MssqlDriver.ts | 131 +- src/drivers/MysqlDriver.ts | 134 +- src/drivers/PostgresDriver.ts | 214 ++- src/entity.mst | 2 +- src/index.ts | 15 +- src/models/ColumnInfo.ts | 6 +- test/drivers/MssqlDriver.test.ts | 34 +- test/integration/entityTypes.test.ts | 99 ++ .../entityTypes/mariadb/entity/Post.ts | 94 + .../entityTypes/mssql/entity/Post.ts | 121 ++ .../entityTypes/mysql/entity/Post.ts | 93 + .../entityTypes/postgres/entity/Post.ts | 240 +++ .../sample1-simple-entity/entity/Post.ts | 4 +- .../entity/EverythingEntity.ts | 38 +- .../github-issues/12/entity/Post.ts | 16 + .../github-issues/12/entity/PostAuthor.ts | 16 + test/integration/githubIssues.test.ts | 100 ++ test/integration/integration.test.ts | 226 +-- test/utils/EntityFileToJson.ts | 14 + test/utils/GeneralTestUtils.ts | 206 +++ tsconfig.json | 3 +- typings.json | 3 +- 39 files changed, 3553 insertions(+), 1306 deletions(-) create mode 100644 .idea/codeStyleSettings.xml create mode 100644 .idea/codeStyles/codeStyleConfig.xml create mode 100644 .idea/encodings.xml create mode 100644 .idea/inspectionProfiles/Project_Default.xml create mode 100644 .idea/jsLinters/tslint.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/typeorm-model-generator.iml create mode 100644 .idea/vcs.xml create mode 100644 .idea/workspace.xml create mode 100644 test/integration/entityTypes.test.ts create mode 100644 test/integration/entityTypes/mariadb/entity/Post.ts create mode 100644 test/integration/entityTypes/mssql/entity/Post.ts create mode 100644 test/integration/entityTypes/mysql/entity/Post.ts create mode 100644 test/integration/entityTypes/postgres/entity/Post.ts create mode 100644 test/integration/github-issues/12/entity/Post.ts create mode 100644 test/integration/github-issues/12/entity/PostAuthor.ts create mode 100644 test/integration/githubIssues.test.ts create mode 100644 test/utils/GeneralTestUtils.ts diff --git a/.idea/codeStyleSettings.xml b/.idea/codeStyleSettings.xml new file mode 100644 index 0000000..5555dd2 --- /dev/null +++ b/.idea/codeStyleSettings.xml @@ -0,0 +1,9 @@ + + + + + + \ No newline at end of file diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000..a55e7a1 --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..f2f7930 --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..1beadde --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/jsLinters/tslint.xml b/.idea/jsLinters/tslint.xml new file mode 100644 index 0000000..5d68de2 --- /dev/null +++ b/.idea/jsLinters/tslint.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..2070abf --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/typeorm-model-generator.iml b/.idea/typeorm-model-generator.iml new file mode 100644 index 0000000..24643cc --- /dev/null +++ b/.idea/typeorm-model-generator.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..05d6099 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,837 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + char_max_lenght + .mst + EntityName + lower + relationimports + relatedTable + imports + relations + ownertable + Handlebars + toLowerCase + changeCase + changeCase.param + relationImports + char + argv + engineoptions + convertCase + camelcase + sample1-s + integration.test + "boolean" + "bool" + bool + + + + + + + + + + + + + true + DEFINITION_ORDER + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +