645 Commits

Author SHA1 Message Date
Chris
a2bd94b146
feat: add capacitor driver options for encryption & version (#7868) 2021-07-10 17:34:56 -04:00
James Ward
0d21a4d07e
fix: drop pool.autostart from mssql options because it's unused (#7877) 2021-07-09 12:54:45 -04:00
Jansen Ignacio
92b96a5505
feat: make postgres extensions install optional (#7725)
There are cases wherein the credentials given to the service are READONLY. In these cases, installing extensions automatically fails

Closes #7662
2021-07-07 14:39:56 -04:00
James Ward
3221c50d87
fix: better support of relation-based properties in where clauses (#7805) 2021-07-03 13:29:56 -05:00
James Ward
e2a5939bfb
docs: example used invalid parameter (#7819)
the example had a parameter but wrapped it in quotes for some
reason.  this removes the quotes
2021-06-30 03:12:40 -04:00
James Ward
2adfe36627 docs: add entitySkipConstructor to ConnectionOptions documentation 2021-06-28 04:33:27 -04:00
Chris
9620a26c4e
fix: Capacitor driver PRAGMA requests failing on Android (#7728)
* - fix: PRAGMA needs to be run through the `query` method, since it returns data
- added WAL journal mode

* added journalMode as an optional setting

* reverted auto-format
2021-06-24 14:29:14 -04:00
Ghassan Maslamani
f4f1453dcd
docs: fix brokens cascade links in one-to-one and many-to-one (#7781)
* docs: fix cascade link in one-to-one
* docs: fix broken cascade link in many-to-one
2021-06-24 14:28:18 -04:00
Ghassan Maslamani
ef39d12198
docs: Remove note in TreeEntity documentation about #2032 (#7777)
Removes the note which links to the closed issue https://github.com/typeorm/typeorm/issues/2032,  that is supposed to be fixed in this PR https://github.com/typeorm/typeorm/pull/7156 .
2021-06-21 10:47:45 -04:00
Silver Bullet
ff28aad279
docs: update separating-entity-definition.md (#7715) 2021-06-07 22:05:16 +05:00
F. Selçuk Can
545a4436cc
docs: updated link to cascades page (#7688) 2021-05-29 14:53:16 +05:00
Chris
0f7a778398
feat: added Capacitor driver (#7695)
* added new driver for Capacitor

* updated CHANGELOG.md
2021-05-29 14:46:45 +05:00
David Oliveira
283413d846
docs: fix entity used in example (#7674)
Fix code example for loading relational entities.
2021-05-23 16:21:58 +05:00
Kevin Lindsay
44979afd7a
docs: add example for yarn v2 with PnP (#7540)
* Add example for yarn v2 with pnp

* Update migrations.md
2021-05-16 15:16:28 +05:00
Hong Truong
0564c348b9
feat: support MAX_EXECUTION_TIME for MySQL driver. (#7638) 2021-05-15 14:33:34 +05:00
Aman Desai
f8a989f7dc
docs: fix redirecting for "cascades" (#7642)
Reason: When documentation opened in browser, on clicking the "cascades" link, it indeed redirects to `https://typeorm.io/#/https://github.com/typeorm/typeorm/blob/master/docs/relations/cascades` instead of `https://typeorm.io/#/https://github.com/typeorm/typeorm/blob/master/docs/relations/cascades`
2021-05-15 13:27:51 +05:00
Aniket Awati
5fde0ea89f
feat: cache option to ignore errors (#7630)
* feat: Ignore cache errors if corresponding cache option is set

fixes #926

* doc: add documentation for ignoreErrors option in cache options

* Update caching.md
2021-05-08 13:12:38 +05:00
vince6799
bf0ac414a1
docs: update select-query-builder.md (#7606)
c`addGroupBy`: => `addGroupBy`:
2021-05-08 12:59:07 +05:00
Joao Felipe Santoro Pinto
9470e15aa9
docs: fix code example (#7615)
Fix code example for executing a Raw Query on a Slave Query Runner.
2021-05-05 00:11:34 +05:00
Joren Vandeweyer
acc7994ce1
docs: Added enumName column option (#7570)
Added minor documentation for #4824
2021-04-17 14:40:51 +05:00
Dennis Ameling
1656a11c89
docs: add note about unique parameters in QueryBuilder (#7572)
When using the QueryBuilder, unique parameters need to be provided in WHERE expressions. This commit adds that information to the docs, as it's easy to overlook for users.
2021-04-17 14:39:46 +05:00
Louis Lagrange
7dbf683af0
doc: Speed up TS migration command (#7568)
Kudos to @AmauryLiet
2021-04-17 14:38:11 +05:00
Wang Guan
8140a91de1
docs: update lock modes in find-options.md (#7518) 2021-04-01 21:14:22 +05:00
Darshan Doshi
e78ad1da03
docs: added missing import in view-entities.md (#7505) 2021-03-29 12:39:31 +05:00
Nelson Rowley
ae221ac6f6
docs: fix typo (#7506) 2021-03-29 12:23:20 +05:00
Tom Rodrigues
9ce3f78ad1
docs: fix typo in entities.md (#7491)
Fixes small grammar issue.
2021-03-27 11:25:14 +05:00
Umed Khudoiberdiev
2fa6231e59 adding missing ILike operator docs (took from next branch) 2021-02-26 01:13:20 +05:00
Jorge Luis Vargas
b97cc4ff95
feat: output Javascript Migrations instead of TypeScript (#7294)
* docs / test: Added tests and documentation for Feature 7253 - Migrations Javascript output

* Change in the test

* test: Re-arranged the tests to move them to the core tests directory

* tests: Adjusted Tests a bit

* tests - renamed tests to follow the other functional tests naming

* tests - renamed tests to follow the other functional tests naming

* tests - Fixed issues with the test connections setup

* tests - Removed unnecesary restore
2021-02-24 14:19:43 +05:00
rccursach
70db8451c0
docs: fix small typo on package.json script example (#7408)
Add missing colon in JSON property at `package.json` `"script"` example
2021-02-24 14:05:48 +05:00
Morgan
b9d7898717
docs: small typo (#7358) 2021-02-09 11:46:04 +05:00
Noam Steiner
c0899eb912
docs: add queryRunner docs (#7351)
* docs: add queryRunner docs

* docs: fix typo and code example

edit the text to fix typos and update the code example

* Update query-runner.md

code indentation fix;

* Update query-runner.md

indentation fix;

Co-authored-by: noamspec <noams@spectory.com>
Co-authored-by: AlexMesser <dmzt08@gmail.com>
2021-02-08 17:43:21 +05:00
Michał Sadowski
cb17b959e5
feat: option to disable foreign keys creation (#7277)
* Add relation option "createForeignKeyConstraints"

* feat: add createForeignKeyConstraints relation option

This new option allows to create relation without using foreign keys

Closes: #3120

* test: add cases for createForeignKeyConstraints relation option

* docs: createForeignKeyConstraints relation option

* test: remove .only

* chore: remove unused test files

* test: add case checking if relation without foreign key works as expected

* fix: register join columns for relation without foreign key

Closes: #3120

Co-authored-by: Alexander Bolshakov <alexanderb@cubedmobile.com>
2021-02-08 13:55:28 +05:00
Micheal Benedict (@micheal)
c92ce763fd
docs: fix revert example code for migration api (#7293)
Incorrect table is referenced in an example that shows how to use migrations API.
This change references the correct tables that allow migrations:revert to  drop the foreign key and newly added column.
2021-02-06 14:12:13 +05:00
0xflotus
be9d9770f0
chore: fixed Alias in SQL expression (#7299)
I think there was a missing `AS`, isn't it?
2021-02-01 21:11:14 +05:00
Gareth Nicholas
c1480994c9
docs: fix typo in many-to-many-relations.md (#7297) 2021-02-01 18:09:23 +05:00
euberdeveloper
05259795f0
docs: correct typo (#7317) 2021-02-01 18:01:14 +05:00
Lucas Ferreira
db7d85d4ff
doc: update relations files with orphaned rows option (#7327) 2021-02-01 17:58:55 +05:00
Ed Colvin
4ed1c4bf8e
docs: fix javascript usage examples (#7031) 2021-01-12 17:26:06 +05:00
alexey2baranov
bcd998b4f3
feat: closure table custom naming (#7120)
* add metadata to @Tree

* add simple test

* ref column naming from string to callback(column)=>name

* fix Closure junction metadata builder

* fix ClosureSubjectExecutor columns naming

* ref ClosureSubjectExecutor columns naming

* fix ClosureEntityMetadataBuilder

* add tests

* fix test name

* doc: add closure-table custom naming docs.

* refactor: small code-style changing.

* refactor: minor refactoring during code review

Co-authored-by: alexey2baranov <Ir1n@gh>
2021-01-12 14:26:05 +05:00
Oleksandr Kovpashko
a3faf49987
docs: fix invalid code block in "find many options" (#7268) 2021-01-12 12:53:21 +05:00
Yuuki Takahashi
a7acb6b021
docs: Embodying the example (#7116)
I thought it would be more appropriate to give an example of a `Geometry` type.
2021-01-11 18:00:53 +05:00
Adrian
a49db9612b
docs: document withDeleted option (#7132) 2021-01-11 17:57:23 +05:00
Gergo Tolnai
cc044a90c2
docs: update cascade options (#7140) 2021-01-11 17:06:55 +05:00
ericcrosson-bitgo
28368917a3
docs: add .ts to supported ormconfig formats (#7139) 2021-01-11 17:06:30 +05:00
Radosław Kłos
296eb39062
docs: add missing connection options for mongodb (#7046)
Closes: #7037
2020-11-10 15:47:09 +05:00
Umed Khudoiberdiev
0e4b2397a6
feat: transactional events in subscriber interface + "transaction" option in FindOptions (#6996)
* added new decorators

* added hooks to etnity subscriber interface

* added test code in one query runner

* removed new decorators and implemented in subscriber instead

* added "transaction" option to FindOneOptions

* added event listeners in query runners;
added test for event listeners;
updated docs;

* working on test;

* working on test;

* added test for `transaction` option;

* fixing failing test

* fixing failing test

* fixing typos

* fixing test I broke

Co-authored-by: Dmitry Zotov <dmzt08@gmail.com>
2020-11-02 20:54:27 +05:00
Christian Holm
8244ea1371
feat: Exit with code 1 on empty migration:generate (#6978)
This makes the `migration:generate` cli command exit with code 1 if no changes were found between the database and the schema from the code.
2020-10-30 10:23:00 +05:00
Duong Le
343042dc67
docs: Remove unused variable (#6971) 2020-10-26 10:43:39 +05:00
Rohan Talip
82df614c6e
docs: fix typo in entities.md : hustle --> hassle (#6963) 2020-10-22 20:01:34 -04:00
Abdüssamet Özay
fa23f36313
docs: update usage-with-javascript.md (#6955) 2020-10-22 13:10:59 +05:00