Dmitry Guketlev
f045536f24
fix: entity manager remove using entity schemas ( #9221 )
...
Currently the entity manager remove method does not recognize the first param if it is an entity schema.
2022-08-24 21:47:19 +05:00
Mihai Crisan
8dcd61e0a3
docs: query-runner.md typos ( #9228 )
2022-08-24 21:44:52 +05:00
Mohamed Akram
d8e5f3b086
docs: correct mssql encrypt default value ( #9232 )
2022-08-24 21:42:50 +05:00
Zach Tindall
72a0147f31
fix: update date utils to parse year correctly for years 1-999 ( #9236 )
...
* fix: update date utils to parse year correctly for years 1-999
Closes : #9230
* fix: commit change to date utils
* fix: default total length to 2
2022-08-24 21:42:00 +05:00
Brice Miclo
bb07244b61
fix: allow space and no-space syntaxes for SQLite constraints ( #9238 )
...
Closes #9237
Co-authored-by: Brice Miclo <brice.miclo@socomec.com>
2022-08-24 21:39:12 +05:00
Kevin KONRAD
14dfadbde9
fix: handle inherited relations insert order ( #9242 )
...
Take inheritance into consideration when sorting insert commands
Closes : #9241
Co-authored-by: Kevin KONRAD <ext.kevin.konrad@reseau.sncf.fr>
2022-08-24 21:38:01 +05:00
MURAKAMI Masahiko
e51991076d
fix: don't use temporary table name to create foreign key, unique, check constraint with SQLite ( #9185 )
...
* fix: don't use temporary table name to create foreign key, unique, check constraint with SQLite
In migration steps, finally temporary table name is renamed to original table name. these constraints name should be created from original table name not temporary table name.
Closes : #9176
* style: remove unnecessary comment
2022-08-24 21:37:45 +05:00
wirekang
77866d85d2
feat: add array parameter on groupBy ( #9243 )
...
* feat: add array parameter on groupBy
* docs: add groupBy(string[])
2022-08-24 21:36:24 +05:00
Lucas Rangel
a98ca8bf97
docs: text on data-source setup section ( #9244 )
...
On line 73 have 'three options' to setup, but is actually only two as you can see.
2022-08-24 21:35:13 +05:00
Hyunji Song
e49d0c8740
fix: find query mongodb properly with @DeleteDateColumn() ( #9262 )
...
* fix: use existing query and filter deleted data
* test: add mongo-repository query test with DeleteDateColumn
* style: lint MongoEntityManager
* fix: not override $or with query.$or
* test: not override query.$or
2022-08-24 21:11:07 +05:00
Dmitry Zotov
90ce28591b
fixed failing test
2022-08-24 21:09:16 +05:00
Erwin Kraan
de8aaac54c
fix: dropIndex now works when providing a tableIndex without name ( #8937 )
2022-08-24 20:31:06 +05:00
Bogdan Crisan
64674e60a2
docs: fix wrong function used in entity documentation ( #9280 )
...
Previously, the documentation said that it's using the `findOne`
function, but it used the `findBy` and `findOneBy` functions. In order
to be coherent, this commit changes all those to `findOneBy`.
2022-08-24 20:15:35 +05:00
Umed Khudoiberdiev
48e64e6973
removed logging
2022-08-24 20:01:37 +05:00
Umed Khudoiberdiev
46d0021a99
fixing failing test
2022-08-24 19:39:55 +05:00
Dmitry Zotov
fd7ae9741e
added mysql v8 to docker-compose;
2022-08-24 18:29:01 +05:00
David Slutsky
5ebc626d29
fix: resolve issues with new synonymous for GeometryCollection type in MySQL 8 ( #8927 )
...
As of mysql v8.0, new synonymous was introduced for "GeometryCollection" - "GeomCollection".
The preferred type name is "GeomCollection".
2022-08-24 18:12:09 +05:00
Pavel Petrik
9f7fc14be2
docs: fix DEVELOPER.md typo ( #9306 )
...
Co-authored-by: Pavel <pavel@loanbase.com>
2022-08-24 17:33:39 +05:00
Leyla Jähnig
3a533a4223
docs: migration replace Connection with DataSource option ( #9315 )
...
* docs: migration replace Connection with DataSource option
* Apply suggestions from code review
Co-authored-by: Leyla Jähnig <leyla.jaehnig@gmx.de>
Co-authored-by: Umed Khudoiberdiev <pleerock.me@gmail.com>
2022-08-24 17:06:04 +05:00
Umed Khudoiberdiev
bd96e27409
removed "only" from the test.
2022-08-24 16:46:51 +05:00
Anton Pavlov
15f90e0be8
fix: support async import for DataSource in CLI #8914 ( #8917 )
...
* Fix: await DataSource from export file to support async loading
* fix: prettier errors
* updated code style
Co-authored-by: Umed Khudoiberdiev <pleerock.me@gmail.com>
2022-08-22 22:52:46 +05:00
MURAKAMI Masahiko
bb33cd0f23
docs: update test template in DEVELOPER.md ( #9192 )
...
change to use DataSource instead of Connection
2022-07-11 18:59:50 +05:00
Umed Khudoiberdiev
d285fd0a2b
fixes #8939 , #9061 , closes #9168 ( #9180 )
...
* fixes #8939 , #9061 , closes #9168
* fixes
* fixing mssql error
2022-07-06 16:44:17 +05:00
Han Moe Htet
0b542225cc
docs: fix method example in EntityManager API ( #9170 )
...
Replace manager.getCustomRepository(UserRepository) with manager.withRepository(UserRepository)
2022-07-05 17:06:57 +05:00
Mohamed Akram
2e671386f4
docs: correct useUTC default value ( #9161 )
...
Closes : #7047
2022-06-30 15:38:58 +05:00
Umed Khudoiberdiev
109c1fab60
updated changelog
2022-06-29 23:38:03 +05:00
Umed Khudoiberdiev
50d75f5e8a
version bump
0.3.7
2022-06-29 23:37:13 +05:00
Christian Forgács
6e888dd0a1
fix: wrong entity transform of relation id when referenced column is a primary key ( #8959 )
...
* fix: wrong entity transform of relation id when referenced column is also a primary key
* simplified test
Co-authored-by: Christian Forgács <christian@wunderbit.de>
Co-authored-by: Umed Khudoiberdiev <pleerock.me@gmail.com>
2022-06-29 23:34:36 +05:00
Michał Wadas
a748f3c955
test: replace Node 13 with 16 in tests ( #8804 )
2022-06-29 19:22:37 +05:00
Siarhei Murkou
cac648e633
fix: add SET TRANSACTION AUTOCOMMIT DDL statements (SAP HANA) ( #9020 )
...
* fix: add SET TRANSACTION AUTOCOMMIT DDL statements (SAP HANA)
* refactor: add link for SAP HANA AUTOCOMMIT
2022-06-29 19:17:48 +05:00
Julian Pömp
bcdddc32bd
feat: add nativeBinding option to better-sqlite3 driver ( #9157 )
...
* feat: add nativeBinding option to better-sqlite3 driver
better-sqlite3 allows to set the `nativeBinding` option since version v7.5.0. It allows to define a custom path for the native api binary `better_sqlite3.node`. This feature is very important for developers who want to create binaries of their node apps for different platforms (e.g. with pkg). [More information](https://github.com/WiseLibs/better-sqlite3/blob/master/docs/api.md#new-databasepath-options= ).
* docs: add description about nativeBinding option for better-sqlite3 driver
* refactor: apply prettier, test if nativeBinding is correctly set to better-sqlite3 driver
* refactor: apply prettier
* refactor: replaced describe.only() with describe()
2022-06-29 18:54:17 +05:00
Ishan Madhusanka
ec05f1d58a
fix: release newly created runner when no runner provided in DbQueryResultCache ( #8969 )
...
Release newly created runner when no runner is provided as an argument
which resolves the issue of exhausting query runners
when calling `DbQueryResultCache.remove`
Closes : #4866
2022-06-29 18:39:36 +05:00
dependabot[bot]
97e1dc17e8
build(deps-dev): bump sqlite3 from 5.0.2 to 5.0.3 ( #9011 )
...
Bumps [sqlite3](https://github.com/TryGhost/node-sqlite3 ) from 5.0.2 to 5.0.3.
- [Release notes](https://github.com/TryGhost/node-sqlite3/releases )
- [Changelog](https://github.com/TryGhost/node-sqlite3/blob/master/CHANGELOG.md )
- [Commits](https://github.com/TryGhost/node-sqlite3/compare/v5.0.2...v5.0.3 )
---
updated-dependencies:
- dependency-name: sqlite3
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-28 19:44:04 +05:00
Paulo Henrique Fernandes Pereira
40155d6cee
fix: fixes recursive document to entity attributes mapping ( #9050 )
...
* fix: fixes recursive document to entity attributes mapping
fix the recursive call to `addEmbeddedValuesRecursively`, which was running for
array and object embedded properties, which should only run for non-array ones.
The call for array properties is already placed right
Closes : #9049
* test: removes unecessary decorators from test
2022-06-28 19:43:41 +05:00
Andrew Branch
d924b705e5
fix: support for TypeScript 4.8 ( #9106 )
...
* build: Fix build errors in TypeScript 4.8
See https://github.com/microsoft/TypeScript/issues/49461#issuecomment-1154443477
* style: Format
* removed `.js` extension
* removed `.js` extension
* removed `.js` extension
* fixing compiler errors
* fixing compiler errors
Co-authored-by: Umed Khudoiberdiev <pleerock.me@gmail.com>
2022-06-28 19:41:15 +05:00
gmmkmtgk
60a79605a7
docs: repository replaced by dataSource.manager.getTreeRepository(Category) ( #9144 )
...
Repository should be replaced by dataSource.manager.getTreeRepository(Category)
2022-06-28 17:31:28 +05:00
gmmkmtgk
1b5aa62bed
docs: fix typo in tree docs
...
At line 167 it should be const a1 = new Category() insted of const a1 = new Category("a1")
Category do not accept any arguments
2022-06-28 17:29:59 +05:00
Andrej Hudec
a100a7a7f1
fix: call dataSource.destroy() only on initialized dataSource in CLI commands ( #9146 )
2022-06-28 17:29:08 +05:00
Mickael Lecoq
ec23922da7
fix: expo infinite loop on SAVEPOINT ( #8984 )
...
some issues to use typeorm on expo :
- infinite loop on query method
- even if this infinite loop is fixed, db is stuck after SAVE POINT
- no id is returned on creation
with this fix, the expo-example can be updated successfully on typeorm 3 (with new DataSource api)
2022-06-22 20:15:25 +05:00
Ahmed Osama Ibrahim
f7578d48ef
fix: resolve cli init peer dependency issues ( #8977 )
...
* fix: resolve cli init peer dependency issues
Closes : #8975
* fix: bump timeout for a test that takes particularly long on Node 13
2022-06-22 20:13:37 +05:00
Demian Dekoninck
723f1e514b
feat: upgrade ioredis to v5 ( #8997 )
2022-06-22 20:12:50 +05:00
Patrick Nollet
6097f3a1a2
Bump version to v0.3.6 ( #9067 )
...
Version bump of the 0.3.6 release was not committed to master.
2022-06-22 20:11:33 +05:00
Umed Khudoiberdiev
138443f67a
version bump
2022-06-22 20:10:02 +05:00
spotykatch
e2961263e0
fix: make soft-remove and recover events importable from index ( #9110 )
...
Closes : #9108
2022-06-22 18:19:12 +05:00
Ude Samuel
07f453773c
docs: fixed full path requirement in migration:create command ( #9115 )
...
* fixed full path requirement in migration:create command
* Update migrations.md
Co-authored-by: Umed Khudoiberdiev <pleerock.me@gmail.com>
2022-06-22 17:55:37 +05:00
Simon
e61cade32f
feat: add spanner as a db option for the init command ( #9121 )
2022-06-22 17:53:36 +05:00
Erik Bigler
e24cced8f6
feat: implement support for relationids in entity schemas ( #9129 )
...
* feat: implement support for relationids in entity schemas
* chore: apply prettier formatting to relationid entity schema changes
2022-06-22 17:41:48 +05:00
flaryer
a0d61b2873
docs: fix typo in FindOptionsWhere.ts ( #9137 )
2022-06-22 17:40:35 +05:00
gillepsi-swyftx
bf17381fd2
fix: log command error prior to calling destroy ( #9135 )
2022-06-22 17:39:51 +05:00
Demian Dekoninck
506133e217
fix: resolve ESM module declaration file correctly ( #9097 )
2022-06-10 18:14:59 +05:00