* feat: implement or operator
This new feature enables typeorm to allow use multiple operators joining with or
Closes: #10054
* feat: implement or operator
Completed code formating using command.
Closes: #10054
* feat: implement or operator
Completed the documentation update.
Closes: #10054
* feat: implement or operator
Renamed Or operator file name.
Closes: #10054
* feat: implement or operator
Renamed Or operator file name.
Closes: #10054
* feat: implement or operator
Renamed Or operator file name.
Closes: #10054
* feat: implement or operator
Renamed Or operator.
Closes: #10054
The getRepository method is missing from the example.
Delete the "users" written in the createQueryBuilder method because it is not used in the where method.
* Add a replication test suite
* Allow overriding the default destination for read queries when using replication
For many applications that want to use read slaves, data consistency isn't super important, and so all reads can be sent by default to a read slave. For some applications though, it's only select queries that can be sent to read slaves as end-users of the application expect data consistency almost everywhere. This new setting lets apps like those change the default such that query builders need to opt *in* to sending to a read slave, instead of opt out.
Between v3 and v4 in node-redis the client options changed for a collection of socket related
paramaters. In the caching documentation the v3 format for used for `host` and `socket`. When
following the documented example the redis client would default to `localhost` even when a
different value for `host` was specified.
Closes: #9987
For previous examples typescript error occurs in createQueryBuilder that says “Argument of type 'string' is not assignable to parameter of type 'QueryRunner'.ts(2345)”.
If you check the type of createQueryBuilder, the string cannot come as the first argument.
The types of createQueryBuilder are as follows.
myDataSource.createQueryBuilder<ObjectLiteral>(entityClass: EntityTarget<ObjectLiteral>, alias: string, queryRunner?: QueryRunner | undefined):
* added transaction retry logic in cockroachdb
* added option to control max transaction retries;
added delay before transaction retry;
updated docs;
* fixes in retry logic
* enable storing queries after retrying transaction
* fix: add support for mongodb driver v5
This new fix allow support to mongodb driver v5
Closes: #7907
* refactor: remove callback from MongoDriver connect
* fix: check for propertyName in transform
* fix: add support for mongodb driver v5
This new fix allow support to mongodb driver v5
Closes: #7907
* feat: mongodb 5.2.0 typings
* fix: instanceof ObjectId check
Instanceof check now no longer references to just the
type but the loaded class ref instead.
* test: fix test name to mongodb v5
---------
Co-authored-by: Matheus Melo Antiquera <matheusantiquera@finchsolucoes.com.br>
Co-authored-by: tgrassl <grassl.timon@gmail.com>
Co-authored-by: Matheus Melo Antiquera <matheus.melo.a@hotmail.com>
* Added a section on debugging query builder
It covers using getQuery() and getQueryAndParameters() which are both useful when trying to figure out why your query isn't doing what you might expect it should do.
* forgot await
* fix typo
* documented getCount()
getCount() is currently only mentioned in the documentation once, and you're never shown how to use it. This patch adds a little documentation for getCount()
* clarification
* feat: Add support for SQL aggregate functions SUM, AVG, MIN, and MAX to the Repository API
* rename field name to make tests work in oracle
* fix the comments
* update the docs
* escape column name
* address PR comment
* format the code