Commit Graph

615 Commits

Author SHA1 Message Date
Kononnable
5e4777318c disallow generation of relationId fields with lazy relations 2020-01-05 18:16:45 +01:00
Kononnable
51ac139ad7 proper fix for shadowed names 2020-01-05 01:29:14 +01:00
Kononnable
b34555a1f1 Merge branch 'master' into next 2020-01-03 13:38:47 +01:00
Kononnable
7de3216c82 update docker mssql image - consume less resources 2019-12-30 11:03:52 +01:00
Kononnable
68427b8ea1 removed nodejs verion reaching EOL 2019-12-30 09:51:19 +01:00
Pawe Kotarski
30e72cfed7 change tsconfig to fix issue with yarn(#203) 2019-12-30 09:24:33 +01:00
Kononnable
48a2dfcbae
Null in TS types (for "next") (#227)
Null in TS types (for "next")
2019-12-29 23:23:44 +01:00
Kononnable
f0a6f67429 code changes, test for nullable columns 2019-12-29 22:54:30 +01:00
Kononnable
18b1bd6824
Merge pull request #233 from arimus/next
Provide main entrypoint and generated typings to use the core as a li…
2019-12-28 12:23:40 +01:00
Kononnable
986ae97410 Merge branch 'next' into pr/arimus/233 2019-12-28 12:16:26 +01:00
Kononnable
0e3d766e73 avoid name colisions in tomg exports 2019-12-28 12:01:52 +01:00
Kononnable
88d3947d32 ability to generate models with default exports
(instead of name exports)
2019-12-25 20:35:38 +01:00
Kononnable
dc4208ad0f Option to generate index file (#174) 2019-12-24 10:40:36 +01:00
Kononnable
57c6c307b0 Run eslint on models generated by tests 2019-12-24 09:53:53 +01:00
Kononnable
f52ba8f4c4 Ignore tables parameter (#120) 2019-12-22 16:58:13 +01:00
David Castro
018200e78d ignore generated type definitions from lint'ng 2019-12-21 22:03:19 -08:00
David Castro
0d16f0e6fc adjustment for entrypoint to import classes as different names to avoid collisions on export names 2019-12-21 21:40:51 -08:00
David Castro
53da13e043 Provide main entrypoint and generated typings to use the core as a library 2019-12-20 16:51:24 -08:00
Kononnable
ff637721ed Option to disable column name pluralization (#142) 2019-12-20 19:24:15 +01:00
Kononnable
7679ef2b77 support for mysql set type (#91) 2019-12-19 17:43:03 +01:00
Kononnable
57cec40afb update dependencies 2019-12-18 22:24:42 +01:00
Kononnable
10fddf1b66
Geography type added in postgres driver. (#232)
Geography type added in postgres driver.
2019-12-15 22:56:29 +01:00
Kononnable
f5a9da2880 ignore PostGIS table on schema generation 2019-12-15 22:39:09 +01:00
Kononnable
d8448fd5ed test for postgres geography column type 2019-12-15 21:41:44 +01:00
Kononnable
ddfc9f52d9 support for old oracle versions (#195) 2019-12-15 16:39:56 +01:00
Kononnable
f720f34bc7 remove sleep parameter
sql query execution timeout now set to 1hr
2019-12-15 12:57:19 +01:00
Kononnable
3c274e8361 Option to save .tomg-config file without connection details 2019-12-15 10:09:29 +01:00
Kononnable
47b98a8d8e change passing parameters to CLI 2019-12-12 20:31:38 +01:00
Gabriel Arias
4e800df27d Geography type added in postgres driver. Solving error when this type appear. 2019-12-01 18:06:54 -03:00
Kononnable
9e931025b9 fix naming strategy with relative path(#171) 2019-11-17 19:23:06 +01:00
Kononnable
3496c0647b naming strategy use functions instead class 2019-11-17 16:43:52 +01:00
Kononnable
20f3e24dc8 naming strategy test 2019-11-17 15:19:33 +01:00
Kononnable
3da7cf22cd
Import regression fix (in "next") (#224)
Import regression fix (in "next")
2019-11-17 15:05:38 +01:00
Kononnable
e15e194078 change travis config 2019-11-16 21:10:17 +01:00
Vasil Rangelov
3bbabd127b Nullable columns now also add "| null" to the type declaration.
Unknown DB types now generate properties with type "NonNullable<unknown>" that also adds "| null" if the column is nullable.
2019-11-14 15:22:13 +02:00
Kononnable
c2d1e038a5
Typeroots (in "next") (#223)
Typeroots (in "next")
2019-11-12 22:55:37 +01:00
Vasil Rangelov
bcb2d8700c Fixed imports for relations to the same table. 2019-11-12 11:32:55 +02:00
Vasil Rangelov
91f9f11b44 Moved the import fetching to occur after the naming strategy is applied, to ensure correct imports. 2019-11-12 11:04:59 +02:00
Vasil Rangelov
2ae07a7dbe Added explicit copy of package.json into dist/package.json. 2019-11-11 19:21:42 +02:00
Vasil Rangelov
35987a98f9 Added typeRoot to tsconfig.json to ensure successful compilation when running as a dependency. 2019-11-11 18:17:47 +02:00
Kononnable
d7ec232c75
Merge pull request #219 from Maia-Everett/master
Add joinColumn and inverseJoinColumn to @JoinTable properties (fixes #183)
2019-11-11 12:35:59 +01:00
Kononnable
1037769bfa
Merge pull request #221 from 0xflotus/patch-1
fixed small error
2019-11-11 09:40:19 +01:00
Kononnable
ecf9f51806 tests: compare join table options
fix removal of primary key index
tests for #183
2019-11-11 01:23:04 +01:00
Kononnable
61c98f7592 tests: compare join column options 2019-11-10 23:57:04 +01:00
0xflotus
7af1a9eefe
fixed small error 2019-11-10 21:26:47 +01:00
Kononnable
da8fe038c1 fix tslint issue 2019-11-10 20:56:48 +01:00
Kononnable
e6de5fc195 Merge branch 'master' into code-restructuring 2019-11-10 20:02:27 +01:00
Kononnable
0bc4d74f44 fixbroken tests 2019-11-10 19:48:13 +01:00
Kononnable
a5f2a403eb mssql no longer is default sql engine 2019-11-10 19:03:50 +01:00
Kononnable
314c0675f1 fix removal of unused typeorm imports 2019-11-10 18:48:38 +01:00