Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement generated columns for postgres 12 driver (#6469)
* feat: implement generated columns for postgres 12 driver The implementation has the potential to make full text search much faster when using postgres. You can simply pre-generate all tsvector's * test: add tests for generated columns in postgres 12 * docs: document generated columns for postgres 12 * fix: check postgres version for generated columns Generated columns are only available on postgres version 12+ * test: add postgres 12 to tests Currently, there are only tests for postgres 9. This adds postgres 12 as test target * test: remove generated column from model MariaDB will fail with a generated column type * test: use non alpine container for postgres 12 * test: skip generated columns test on mariadb * fix: detect generated column change * fix: circle ci postgres version * fix: add replication mode to isGeneratedColumnsSupported() function Latest changes in master introduce replication mode. This commit adjust the the pull request #6469 to this change * fix: ci testing for postgres 12 Latest changes in master broke the postgres 12 test setup * style: remove SqlServerConnectionOptions generic parameter for createTypeormGeneratedMetadataTable function imnotjames notice this in his review of the pull request * style: remove unnecessary return of Promise.resolve() This return of Promise.resolve() has no effect. We can leave it out * style: fix whitespace issue for config.yml * refactor: use VersionUtils Instead of parsing the version string with parseFloat, use the typeorm VersionUtils * fix: fix failing build After merging the upstream into the pr fork, the build stopped working. The reason why the build fails, is because in the upstream one import is missing and one variable was removed * refactor: replace promise.all() with for loop * refactor: make requested changes * fix: update table name * fix: server version query and escape table column in queries * code refactoring * fixed lint issue * removed "enabledDrivers" from test Co-authored-by: Dmitry Zotov <dmzt08@gmail.com>
- Loading branch information
1 parent
c895680
commit 91080be
Showing
18 changed files
with
501 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.