* feat: naming strategy for legacy Oracle
This feature is LegacyOracleNamingStrategy which can be used to handle Oracle error ORA-00972.
* feat: naming strategy for legacy Oracle
This feature is LegacyOracleNamingStrategy which can be used to handle Oracle error ORA-00972.
* test: add test that where condition can accepts LessThan with Union
* fix: allow FindOptionsWhere to accept LessThan with Union
* added comment and simplified the type
---------
Co-authored-by: Umed Khudoiberdiev <pleerock.me@gmail.com>
* feature: adds support for enum type (fixes#9068)
* temporarily ran package to test on different repo
* playing around - bumped version
* Revert "playing around - bumped version"
This reverts commit 7df4adb3e698419c174c2daee88614f8dafdbb6c.
* Revert "temporarily ran package to test on different repo"
This reverts commit 48f394e8eb32c22fe757010b446c85740bf80b5f.
* feat: add support for geometry data type
* feature: properly hydrate enum array values
* feature: adds support for geography and geometry for cockroachdb
* bugfix: fixes issue with primary generated columns being invalid column type (fixes#8532)
* Revert "bugfix: fixes issue with primary generated columns being invalid column type (fixes#8532)"
This reverts commit e00cdb090638d34668e3e10acd5f8267fe3bd028.
* bugfix: type casts to string when using ANY
* feature: cast geometry/geography to geojson
* feature: added references to srid
* bugfix: prevent error if trying to close already closed connection
* feature: added cockrachodb as part of postgres family
* feature: ensures support for spatial columns for cockroachdb
* feature: adds support for UPSERT for CockroachDB (fixes#9199)
* minor: added TODO; unsure how to achieve this
* feature: adds support for time travelling queries for cockroachdb
* bugfix: only run time travel query on SELECT statements
* refactor: changed UsertType from 'upsert' to 'primary-key' since this is more logical
* feature: added posibility to set timeTravelQuery to false, instead of the parameter function; help for disabling time travel queries during tests
* feature: allow timeTravelQueries in find* queries
* bugfix: when using timetravel queries with joinAttributes it now prevents error 'AS OF SYSTEM TIME must be in top level' error
* lint
* minor fix
* fixed failing test
* implemented ENUM type;
added tests;
* fixed failing tests
* fixed failing test
* fixed spatial types synchronization;
implemented spatial indices;
added tests for spatial columns;
* refactored Time Travel Query functionality;
removed TTQ from find options;
added tests for TTQ;
* added docs for Time Travel Queries
* minor changes
* added GeoJSON types;
other minor fixes;
* updated docs
* updated docs
Co-authored-by: Dmitry Zotov <dmzt08@gmail.com>
Fix implementation of materialized hints in common table expressions
Previous behavior did not account for NOT MATERIALIZED hints, also
placed materialized hints in wrong place (before "AS")
Co-authored-by: Adrian Parry <adrian.parry@reign.cl>
* make sure we update database in the driver if it was dynamically set (via dataSource.setOptions)
* removed validation for database since we definitely shouldn't have it in the constructor, database can be set later on (e.g. datasource.setOptions)
* feat: allow for partial index conditions for on conflict statments in postgres
* fix: change variable to match postgres documentation and convert from array to string type
* fix: generalize use of index predicate. add documentation and expand test cases
* lint fix
Co-authored-by: Umed Khudoiberdiev <pleerock.me@gmail.com>
Co-authored-by: Alex Messer <dmzt08@gmail.com>
Adding `Exists` method to query builder and EntityManager, to check whether a row exists given the conditions
Closes: #2815
Co-authored-by: mortzprk <mortz.prk@gmail.com>
* fix: disable transaction support for cordova driver
the cordova-sqlite-storage plugin does not support transactions. fc4133c
introduced an exception when starting a transactions but did not disable
the transactionSupport in general leading to errors when using the
`save` and `remove` method of the `EntityPersistExecutor`. With this PR
the `EntityPersistExecutor` will respect the drivers `transactionSupport`
option.
* docs: add note on transaction limitations for cordova driver
* fix: Updating the samples current version of typeorm.
The cli sample was using the getRepository version in the UserController and in the current versions of the typeorm it was deprecated.
Basically I changed the code to the current version using AppDataSource.
* fix: improving code and fixing bugs
I made several changes to the functions because they had bugs, such as the id being a "string" instead of a "number",
the "userRepository" methods being outdated and checking the code to see if the user exists before doing some executions
* fix: cacheId not used loading relations
The cacheId is set to undefined for the main request used for pagination when we load related entities
* fix: tests