taon-typeorm 21.0.53 → 21.0.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/VERIFIED-BUILD-DATA.jsonc +2 -2
- package/browser/package.json +1 -1
- package/browser-prod/fesm2022/taon-typeorm-browser-prod.mjs.map +1 -1
- package/browser-prod/package.json +1 -1
- package/full-dts/build-info._auto-generated_.d.ts +24 -0
- package/full-dts/env/env.angular-node-app.d.ts +67 -0
- package/full-dts/env/env.docs-webapp.d.ts +67 -0
- package/full-dts/env/env.electron-app.d.ts +67 -0
- package/full-dts/env/env.mobile-app.d.ts +67 -0
- package/full-dts/env/env.npm-lib-and-cli-tool.d.ts +67 -0
- package/full-dts/env/env.vscode-plugin.d.ts +67 -0
- package/full-dts/env/index.d.ts +6 -0
- package/full-dts/index._auto-generated_.d.ts +0 -0
- package/full-dts/index.d.ts +1 -0
- package/full-dts/migrations/index.d.ts +1 -0
- package/full-dts/migrations/migrations_index._auto-generated_.d.ts +0 -0
- package/full-dts/typeorm/cache/DbQueryResultCache____ORIGINAL____.d.ts +52 -0
- package/full-dts/typeorm/cache/QueryResultCache.d.ts +39 -0
- package/full-dts/typeorm/cache/QueryResultCacheFactory.d.ts +13 -0
- package/full-dts/typeorm/cache/QueryResultCacheOptions.d.ts +26 -0
- package/full-dts/typeorm/cache/RedisQueryResultCache.d.ts +65 -0
- package/full-dts/typeorm/cli-ts-node-commonjs____ORIGINAL____.d.ts +2 -0
- package/full-dts/typeorm/cli-ts-node-esm____ORIGINAL____.d.ts +2 -0
- package/full-dts/typeorm/cli.d.ts +2 -0
- package/full-dts/typeorm/commands/CacheClearCommand____ORIGINAL____.d.ts +12 -0
- package/full-dts/typeorm/commands/CommandUtils____ORIGINAL____.d.ts +24 -0
- package/full-dts/typeorm/commands/EntityCreateCommand____ORIGINAL____.d.ts +13 -0
- package/full-dts/typeorm/commands/InitCommand____ORIGINAL____.d.ts +69 -0
- package/full-dts/typeorm/commands/MigrationCreateCommand____ORIGINAL____.d.ts +22 -0
- package/full-dts/typeorm/commands/MigrationGenerateCommand____ORIGINAL____.d.ts +38 -0
- package/full-dts/typeorm/commands/MigrationRevertCommand____ORIGINAL____.d.ts +16 -0
- package/full-dts/typeorm/commands/MigrationRunCommand____ORIGINAL____.d.ts +16 -0
- package/full-dts/typeorm/commands/MigrationShowCommand____ORIGINAL____.d.ts +12 -0
- package/full-dts/typeorm/commands/QueryCommand____ORIGINAL____.d.ts +14 -0
- package/full-dts/typeorm/commands/SchemaDropCommand____ORIGINAL____.d.ts +12 -0
- package/full-dts/typeorm/commands/SchemaLogCommand.d.ts +12 -0
- package/full-dts/typeorm/commands/SchemaSyncCommand____ORIGINAL____.d.ts +12 -0
- package/full-dts/typeorm/commands/SubscriberCreateCommand____ORIGINAL____.d.ts +13 -0
- package/full-dts/typeorm/commands/VersionCommand.d.ts +10 -0
- package/full-dts/typeorm/common/DeepPartial.d.ts +6 -0
- package/full-dts/typeorm/common/EntityTarget.d.ts +9 -0
- package/full-dts/typeorm/common/MixedList.d.ts +8 -0
- package/full-dts/typeorm/common/NonNever.d.ts +6 -0
- package/full-dts/typeorm/common/ObjectLiteral.d.ts +6 -0
- package/full-dts/typeorm/common/ObjectType.d.ts +6 -0
- package/full-dts/typeorm/common/RelationType.d.ts +14 -0
- package/full-dts/typeorm/connection/BaseConnectionOptions.d.ts +7 -0
- package/full-dts/typeorm/connection/Connection.d.ts +10 -0
- package/full-dts/typeorm/connection/ConnectionManager.d.ts +33 -0
- package/full-dts/typeorm/connection/ConnectionMetadataBuilder.d.ts +24 -0
- package/full-dts/typeorm/connection/ConnectionOptions.d.ts +9 -0
- package/full-dts/typeorm/connection/ConnectionOptionsReader____ORIGINAL____.d.ts +64 -0
- package/full-dts/typeorm/connection/options-reader/ConnectionOptionsEnvReader.d.ts +30 -0
- package/full-dts/typeorm/connection/options-reader/ConnectionOptionsXmlReader.d.ts +16 -0
- package/full-dts/typeorm/connection/options-reader/ConnectionOptionsYmlReader.d.ts +12 -0
- package/full-dts/typeorm/constants.d.ts +1 -0
- package/full-dts/typeorm/container.d.ts +39 -0
- package/full-dts/typeorm/data-source/BaseDataSourceOptions.d.ts +171 -0
- package/full-dts/typeorm/data-source/DataSource.d.ts +260 -0
- package/full-dts/typeorm/data-source/DataSourceOptions.d.ts +23 -0
- package/full-dts/typeorm/data-source/index.d.ts +2 -0
- package/full-dts/typeorm/decorator/Check.d.ts +12 -0
- package/full-dts/typeorm/decorator/EntityRepository.d.ts +9 -0
- package/full-dts/typeorm/decorator/Exclusion.d.ts +12 -0
- package/full-dts/typeorm/decorator/Generated.d.ts +10 -0
- package/full-dts/typeorm/decorator/Index.d.ts +49 -0
- package/full-dts/typeorm/decorator/Unique.d.ts +21 -0
- package/full-dts/typeorm/decorator/columns/Column.d.ts +74 -0
- package/full-dts/typeorm/decorator/columns/CreateDateColumn.d.ts +7 -0
- package/full-dts/typeorm/decorator/columns/DeleteDateColumn.d.ts +6 -0
- package/full-dts/typeorm/decorator/columns/ObjectIdColumn.d.ts +6 -0
- package/full-dts/typeorm/decorator/columns/PrimaryColumn.d.ts +21 -0
- package/full-dts/typeorm/decorator/columns/PrimaryGeneratedColumn.d.ts +24 -0
- package/full-dts/typeorm/decorator/columns/UpdateDateColumn.d.ts +6 -0
- package/full-dts/typeorm/decorator/columns/VersionColumn.d.ts +7 -0
- package/full-dts/typeorm/decorator/columns/ViewColumn.d.ts +5 -0
- package/full-dts/typeorm/decorator/columns/VirtualColumn.d.ts +10 -0
- package/full-dts/typeorm/decorator/entity/ChildEntity.d.ts +4 -0
- package/full-dts/typeorm/decorator/entity/Entity.d.ts +11 -0
- package/full-dts/typeorm/decorator/entity/TableInheritance.d.ts +8 -0
- package/full-dts/typeorm/decorator/entity-view/ViewEntity.d.ts +11 -0
- package/full-dts/typeorm/decorator/listeners/AfterInsert.d.ts +4 -0
- package/full-dts/typeorm/decorator/listeners/AfterLoad.d.ts +4 -0
- package/full-dts/typeorm/decorator/listeners/AfterRecover.d.ts +4 -0
- package/full-dts/typeorm/decorator/listeners/AfterRemove.d.ts +4 -0
- package/full-dts/typeorm/decorator/listeners/AfterSoftRemove.d.ts +4 -0
- package/full-dts/typeorm/decorator/listeners/AfterUpdate.d.ts +4 -0
- package/full-dts/typeorm/decorator/listeners/BeforeInsert.d.ts +4 -0
- package/full-dts/typeorm/decorator/listeners/BeforeRecover.d.ts +4 -0
- package/full-dts/typeorm/decorator/listeners/BeforeRemove.d.ts +4 -0
- package/full-dts/typeorm/decorator/listeners/BeforeSoftRemove.d.ts +4 -0
- package/full-dts/typeorm/decorator/listeners/BeforeUpdate.d.ts +4 -0
- package/full-dts/typeorm/decorator/listeners/EventSubscriber.d.ts +5 -0
- package/full-dts/typeorm/decorator/options/ColumnCommonOptions.d.ts +57 -0
- package/full-dts/typeorm/decorator/options/ColumnEmbeddedOptions.d.ts +16 -0
- package/full-dts/typeorm/decorator/options/ColumnEnumOptions.d.ts +13 -0
- package/full-dts/typeorm/decorator/options/ColumnHstoreOptions.d.ts +10 -0
- package/full-dts/typeorm/decorator/options/ColumnNumericOptions.d.ts +24 -0
- package/full-dts/typeorm/decorator/options/ColumnOptions.d.ts +158 -0
- package/full-dts/typeorm/decorator/options/ColumnWithLengthOptions.d.ts +10 -0
- package/full-dts/typeorm/decorator/options/ColumnWithWidthOptions.d.ts +19 -0
- package/full-dts/typeorm/decorator/options/EntityOptions.d.ts +42 -0
- package/full-dts/typeorm/decorator/options/IndexOptions.d.ts +52 -0
- package/full-dts/typeorm/decorator/options/JoinColumnOptions.d.ts +17 -0
- package/full-dts/typeorm/decorator/options/JoinTableMultipleColumnsOptions.d.ts +29 -0
- package/full-dts/typeorm/decorator/options/JoinTableOptions.d.ts +29 -0
- package/full-dts/typeorm/decorator/options/PrimaryGeneratedColumnIdentityOptions.d.ts +26 -0
- package/full-dts/typeorm/decorator/options/PrimaryGeneratedColumnNumericOptions.d.ts +31 -0
- package/full-dts/typeorm/decorator/options/PrimaryGeneratedColumnUUIDOptions.d.ts +17 -0
- package/full-dts/typeorm/decorator/options/RelationOptions.d.ts +64 -0
- package/full-dts/typeorm/decorator/options/SpatialColumnOptions.d.ts +15 -0
- package/full-dts/typeorm/decorator/options/TransactionOptions.d.ts +5 -0
- package/full-dts/typeorm/decorator/options/UniqueOptions.d.ts +10 -0
- package/full-dts/typeorm/decorator/options/ValueTransformer.d.ts +13 -0
- package/full-dts/typeorm/decorator/options/ViewColumnOptions.d.ts +15 -0
- package/full-dts/typeorm/decorator/options/ViewEntityOptions.d.ts +39 -0
- package/full-dts/typeorm/decorator/options/VirtualColumnOptions.d.ts +27 -0
- package/full-dts/typeorm/decorator/relations/JoinColumn.d.ts +19 -0
- package/full-dts/typeorm/decorator/relations/JoinTable____ORIGINAL____.d.ts +17 -0
- package/full-dts/typeorm/decorator/relations/ManyToMany.d.ts +14 -0
- package/full-dts/typeorm/decorator/relations/ManyToOne.d.ts +14 -0
- package/full-dts/typeorm/decorator/relations/OneToMany.d.ts +8 -0
- package/full-dts/typeorm/decorator/relations/OneToOne.d.ts +12 -0
- package/full-dts/typeorm/decorator/relations/RelationCount.d.ts +7 -0
- package/full-dts/typeorm/decorator/relations/RelationId.d.ts +7 -0
- package/full-dts/typeorm/decorator/tree/Tree.d.ts +9 -0
- package/full-dts/typeorm/decorator/tree/TreeChildren____ORIGINAL____.d.ts +7 -0
- package/full-dts/typeorm/decorator/tree/TreeLevelColumn.d.ts +4 -0
- package/full-dts/typeorm/decorator/tree/TreeParent____ORIGINAL____.d.ts +8 -0
- package/full-dts/typeorm/driver/Driver.d.ts +207 -0
- package/full-dts/typeorm/driver/DriverFactory.d.ts +12 -0
- package/full-dts/typeorm/driver/DriverUtils.d.ts +61 -0
- package/full-dts/typeorm/driver/Query.d.ts +9 -0
- package/full-dts/typeorm/driver/SqlInMemory.d.ts +8 -0
- package/full-dts/typeorm/driver/aurora-mysql/AuroraMysqlConnection.d.ts +13 -0
- package/full-dts/typeorm/driver/aurora-mysql/AuroraMysqlConnectionCredentialsOptions.d.ts +35 -0
- package/full-dts/typeorm/driver/aurora-mysql/AuroraMysqlConnectionOptions____ORIGINAL____.d.ts +35 -0
- package/full-dts/typeorm/driver/aurora-mysql/AuroraMysqlDriver____ORIGINAL____.d.ts +250 -0
- package/full-dts/typeorm/driver/aurora-mysql/AuroraMysqlQueryRunner____ORIGINAL____.d.ts +327 -0
- package/full-dts/typeorm/driver/aurora-postgres/AuroraPostgresConnectionOptions.d.ts +35 -0
- package/full-dts/typeorm/driver/aurora-postgres/AuroraPostgresDriver.d.ts +70 -0
- package/full-dts/typeorm/driver/aurora-postgres/AuroraPostgresQueryRunner.d.ts +48 -0
- package/full-dts/typeorm/driver/better-sqlite3/BetterSqlite3ConnectionOptions.d.ts +60 -0
- package/full-dts/typeorm/driver/better-sqlite3/BetterSqlite3Driver____ORIGINAL____.d.ts +59 -0
- package/full-dts/typeorm/driver/better-sqlite3/BetterSqlite3QueryRunner____ORIGINAL____.d.ts +32 -0
- package/full-dts/typeorm/driver/capacitor/CapacitorConnectionOptions.d.ts +31 -0
- package/full-dts/typeorm/driver/capacitor/CapacitorDriver.d.ts +27 -0
- package/full-dts/typeorm/driver/capacitor/CapacitorQueryRunner.d.ts +33 -0
- package/full-dts/typeorm/driver/cloudflare/D1ConnectionOptions.d.ts +6 -0
- package/full-dts/typeorm/driver/cloudflare/D1Driver.d.ts +18 -0
- package/full-dts/typeorm/driver/cloudflare/D1QueryRunner.d.ts +14 -0
- package/full-dts/typeorm/driver/cockroachdb/CockroachConnectionCredentialsOptions.d.ts +34 -0
- package/full-dts/typeorm/driver/cockroachdb/CockroachConnectionOptions.d.ts +44 -0
- package/full-dts/typeorm/driver/cockroachdb/CockroachDriver.d.ts +261 -0
- package/full-dts/typeorm/driver/cockroachdb/CockroachQueryRunner.d.ts +358 -0
- package/full-dts/typeorm/driver/cordova/CordovaConnectionOptions.d.ts +24 -0
- package/full-dts/typeorm/driver/cordova/CordovaDriver.d.ts +25 -0
- package/full-dts/typeorm/driver/cordova/CordovaQueryRunner.d.ts +80 -0
- package/full-dts/typeorm/driver/expo/ExpoConnectionOptions.d.ts +19 -0
- package/full-dts/typeorm/driver/expo/ExpoDriver.d.ts +21 -0
- package/full-dts/typeorm/driver/expo/ExpoQueryRunner.d.ts +57 -0
- package/full-dts/typeorm/driver/mongodb/MongoConnectionOptions____ORIGINAL____.d.ts +278 -0
- package/full-dts/typeorm/driver/mongodb/MongoDriver____ORIGINAL____.d.ts +224 -0
- package/full-dts/typeorm/driver/mongodb/MongoQueryRunner____ORIGINAL____.d.ts +548 -0
- package/full-dts/typeorm/driver/mongodb/typings____ORIGINAL____.d.ts +5350 -0
- package/full-dts/typeorm/driver/mysql/MysqlConnectionCredentialsOptions____ORIGINAL____.d.ts +39 -0
- package/full-dts/typeorm/driver/mysql/MysqlConnectionOptions____ORIGINAL____.d.ts +126 -0
- package/full-dts/typeorm/driver/mysql/MysqlDriver____ORIGINAL____.d.ts +262 -0
- package/full-dts/typeorm/driver/mysql/MysqlQueryRunner____ORIGINAL____.d.ts +328 -0
- package/full-dts/typeorm/driver/nativescript/NativescriptConnectionOptions.d.ts +45 -0
- package/full-dts/typeorm/driver/nativescript/NativescriptDriver____ORIGINAL____.d.ts +44 -0
- package/full-dts/typeorm/driver/nativescript/NativescriptQueryRunner.d.ts +29 -0
- package/full-dts/typeorm/driver/oracle/OracleConnectionCredentialsOptions____ORIGINAL____.d.ts +41 -0
- package/full-dts/typeorm/driver/oracle/OracleConnectionOptions____ORIGINAL____.d.ts +37 -0
- package/full-dts/typeorm/driver/oracle/OracleDriver.d.ts +240 -0
- package/full-dts/typeorm/driver/oracle/OracleQueryRunner____ORIGINAL____.d.ts +333 -0
- package/full-dts/typeorm/driver/postgres/PostgresConnectionCredentialsOptions____ORIGINAL____.d.ts +34 -0
- package/full-dts/typeorm/driver/postgres/PostgresConnectionOptions.d.ts +67 -0
- package/full-dts/typeorm/driver/postgres/PostgresDriver____ORIGINAL____.d.ts +290 -0
- package/full-dts/typeorm/driver/postgres/PostgresQueryRunner.d.ts +398 -0
- package/full-dts/typeorm/driver/react-native/ReactNativeConnectionOptions.d.ts +24 -0
- package/full-dts/typeorm/driver/react-native/ReactNativeDriver____ORIGINAL____.d.ts +25 -0
- package/full-dts/typeorm/driver/react-native/ReactNativeQueryRunner____ORIGINAL____.d.ts +29 -0
- package/full-dts/typeorm/driver/sap/SapConnectionCredentialsOptions.d.ts +45 -0
- package/full-dts/typeorm/driver/sap/SapConnectionOptions.d.ts +60 -0
- package/full-dts/typeorm/driver/sap/SapDriver.d.ts +216 -0
- package/full-dts/typeorm/driver/sap/SapQueryRunner.d.ts +348 -0
- package/full-dts/typeorm/driver/spanner/SpannerConnectionCredentialsOptions.d.ts +17 -0
- package/full-dts/typeorm/driver/spanner/SpannerConnectionOptions.d.ts +121 -0
- package/full-dts/typeorm/driver/spanner/SpannerDriver.d.ts +241 -0
- package/full-dts/typeorm/driver/spanner/SpannerQueryRunner.d.ts +349 -0
- package/full-dts/typeorm/driver/sqlite/SqliteConnectionOptions.d.ts +42 -0
- package/full-dts/typeorm/driver/sqlite/SqliteDriver____ORIGINAL____.d.ts +59 -0
- package/full-dts/typeorm/driver/sqlite/SqliteQueryRunner.d.ts +27 -0
- package/full-dts/typeorm/driver/sqlite-abstract/AbstractSqliteDriver____ORIGINAL____.d.ts +237 -0
- package/full-dts/typeorm/driver/sqlite-abstract/AbstractSqliteQueryRunner____ORIGINAL____.d.ts +301 -0
- package/full-dts/typeorm/driver/sqljs/SqljsConnectionOptions.d.ts +46 -0
- package/full-dts/typeorm/driver/sqljs/SqljsDriver.d.ts +66 -0
- package/full-dts/typeorm/driver/sqljs/SqljsQueryRunner____ORIGINAL____.d.ts +35 -0
- package/full-dts/typeorm/driver/sqlserver/MssqlParameter____ORIGINAL____.d.ts +44 -0
- package/full-dts/typeorm/driver/sqlserver/SqlServerConnectionCredentialsOptions____ORIGINAL____.d.ts +49 -0
- package/full-dts/typeorm/driver/sqlserver/SqlServerConnectionOptions____ORIGINAL____.d.ts +237 -0
- package/full-dts/typeorm/driver/sqlserver/SqlServerDriver____ORIGINAL____.d.ts +253 -0
- package/full-dts/typeorm/driver/sqlserver/SqlServerQueryRunner____ORIGINAL____.d.ts +356 -0
- package/full-dts/typeorm/driver/sqlserver/authentication/AzureActiveDirectoryAccessTokenAuthentication.d.ts +10 -0
- package/full-dts/typeorm/driver/sqlserver/authentication/AzureActiveDirectoryMsiAppServiceAuthentication.d.ts +20 -0
- package/full-dts/typeorm/driver/sqlserver/authentication/AzureActiveDirectoryMsiVmAuthentication.d.ts +16 -0
- package/full-dts/typeorm/driver/sqlserver/authentication/AzureActiveDirectoryPasswordAuthentication.d.ts +17 -0
- package/full-dts/typeorm/driver/sqlserver/authentication/AzureActiveDirectoryServicePrincipalSecret.d.ts +17 -0
- package/full-dts/typeorm/driver/sqlserver/authentication/DefaultAuthentication.d.ts +13 -0
- package/full-dts/typeorm/driver/sqlserver/authentication/NtlmAuthentication.d.ts +19 -0
- package/full-dts/typeorm/driver/types/ColumnTypes.d.ts +25 -0
- package/full-dts/typeorm/driver/types/CteCapabilities.d.ts +18 -0
- package/full-dts/typeorm/driver/types/DataTypeDefaults.d.ts +8 -0
- package/full-dts/typeorm/driver/types/DatabaseType.d.ts +4 -0
- package/full-dts/typeorm/driver/types/IsolationLevel.d.ts +1 -0
- package/full-dts/typeorm/driver/types/MappedColumnTypes.d.ts +112 -0
- package/full-dts/typeorm/driver/types/MetadataTableType.d.ts +5 -0
- package/full-dts/typeorm/driver/types/ReplicationMode.d.ts +1 -0
- package/full-dts/typeorm/driver/types/UpsertType.d.ts +1 -0
- package/full-dts/typeorm/entity-manager/EntityManager.d.ts +357 -0
- package/full-dts/typeorm/entity-manager/EntityManagerFactory____ORIGINAL____.d.ts +12 -0
- package/full-dts/typeorm/entity-manager/MongoEntityManager____ORIGINAL____.d.ts +300 -0
- package/full-dts/typeorm/entity-manager/SqljsEntityManager____ORIGINAL____.d.ts +26 -0
- package/full-dts/typeorm/entity-schema/EntitySchema.d.ts +9 -0
- package/full-dts/typeorm/entity-schema/EntitySchemaCheckOptions.d.ts +10 -0
- package/full-dts/typeorm/entity-schema/EntitySchemaColumnOptions.d.ts +174 -0
- package/full-dts/typeorm/entity-schema/EntitySchemaEmbeddedColumnOptions.d.ts +18 -0
- package/full-dts/typeorm/entity-schema/EntitySchemaEmbeddedError.d.ts +6 -0
- package/full-dts/typeorm/entity-schema/EntitySchemaExclusionOptions.d.ts +10 -0
- package/full-dts/typeorm/entity-schema/EntitySchemaIndexOptions.d.ts +53 -0
- package/full-dts/typeorm/entity-schema/EntitySchemaOptions.d.ts +103 -0
- package/full-dts/typeorm/entity-schema/EntitySchemaRelationIdOptions.d.ts +15 -0
- package/full-dts/typeorm/entity-schema/EntitySchemaRelationOptions.d.ts +95 -0
- package/full-dts/typeorm/entity-schema/EntitySchemaTransformer.d.ts +13 -0
- package/full-dts/typeorm/entity-schema/EntitySchemaUniqueOptions.d.ts +17 -0
- package/full-dts/typeorm/error/AlreadyHasActiveConnectionError.d.ts +7 -0
- package/full-dts/typeorm/error/CannotAttachTreeChildrenEntityError.d.ts +7 -0
- package/full-dts/typeorm/error/CannotConnectAlreadyConnectedError.d.ts +7 -0
- package/full-dts/typeorm/error/CannotCreateEntityIdMapError.d.ts +9 -0
- package/full-dts/typeorm/error/CannotDetermineEntityError.d.ts +7 -0
- package/full-dts/typeorm/error/CannotExecuteNotConnectedError.d.ts +7 -0
- package/full-dts/typeorm/error/CannotGetEntityManagerNotConnectedError.d.ts +7 -0
- package/full-dts/typeorm/error/CannotReflectMethodParameterTypeError.d.ts +8 -0
- package/full-dts/typeorm/error/CircularRelationsError.d.ts +7 -0
- package/full-dts/typeorm/error/ColumnTypeUndefinedError.d.ts +8 -0
- package/full-dts/typeorm/error/ConnectionIsNotSetError.d.ts +7 -0
- package/full-dts/typeorm/error/ConnectionNotFoundError.d.ts +7 -0
- package/full-dts/typeorm/error/CustomRepositoryCannotInheritRepositoryError.d.ts +7 -0
- package/full-dts/typeorm/error/CustomRepositoryDoesNotHaveEntityError.d.ts +7 -0
- package/full-dts/typeorm/error/CustomRepositoryNotFoundError.d.ts +7 -0
- package/full-dts/typeorm/error/DataTypeNotSupportedError.d.ts +7 -0
- package/full-dts/typeorm/error/DriverOptionNotSetError.d.ts +7 -0
- package/full-dts/typeorm/error/DriverPackageNotInstalledError.d.ts +7 -0
- package/full-dts/typeorm/error/EntityMetadataNotFoundError.d.ts +6 -0
- package/full-dts/typeorm/error/EntityNotFoundError.d.ts +10 -0
- package/full-dts/typeorm/error/EntityPropertyNotFoundError.d.ts +8 -0
- package/full-dts/typeorm/error/FindRelationsNotFoundError.d.ts +7 -0
- package/full-dts/typeorm/error/ForbiddenTransactionModeOverrideError.d.ts +8 -0
- package/full-dts/typeorm/error/InitializedRelationError.d.ts +11 -0
- package/full-dts/typeorm/error/InsertValuesMissingError.d.ts +7 -0
- package/full-dts/typeorm/error/LimitOnUpdateNotSupportedError.d.ts +7 -0
- package/full-dts/typeorm/error/LockNotSupportedOnGivenDriverError.d.ts +7 -0
- package/full-dts/typeorm/error/MetadataAlreadyExistsError.d.ts +4 -0
- package/full-dts/typeorm/error/MetadataWithSuchNameAlreadyExistsError.d.ts +4 -0
- package/full-dts/typeorm/error/MissingDeleteDateColumnError.d.ts +5 -0
- package/full-dts/typeorm/error/MissingDriverError.d.ts +7 -0
- package/full-dts/typeorm/error/MissingJoinColumnError.d.ts +6 -0
- package/full-dts/typeorm/error/MissingJoinTableError.d.ts +6 -0
- package/full-dts/typeorm/error/MissingPrimaryColumnError.d.ts +5 -0
- package/full-dts/typeorm/error/MustBeEntityError.d.ts +7 -0
- package/full-dts/typeorm/error/NamingStrategyNotFoundError.d.ts +7 -0
- package/full-dts/typeorm/error/NestedSetMultipleRootError.d.ts +4 -0
- package/full-dts/typeorm/error/NoConnectionForRepositoryError.d.ts +7 -0
- package/full-dts/typeorm/error/NoConnectionOptionError.d.ts +7 -0
- package/full-dts/typeorm/error/NoNeedToReleaseEntityManagerError.d.ts +7 -0
- package/full-dts/typeorm/error/NoVersionOrUpdateDateColumnError.d.ts +7 -0
- package/full-dts/typeorm/error/OffsetWithoutLimitNotSupportedError.d.ts +7 -0
- package/full-dts/typeorm/error/OptimisticLockCanNotBeUsedError.d.ts +7 -0
- package/full-dts/typeorm/error/OptimisticLockVersionMismatchError.d.ts +7 -0
- package/full-dts/typeorm/error/PersistedEntityNotFoundError.d.ts +7 -0
- package/full-dts/typeorm/error/PessimisticLockTransactionRequiredError.d.ts +7 -0
- package/full-dts/typeorm/error/PrimaryColumnCannotBeNullableError.d.ts +4 -0
- package/full-dts/typeorm/error/QueryFailedError.d.ts +10 -0
- package/full-dts/typeorm/error/QueryRunnerAlreadyReleasedError.d.ts +4 -0
- package/full-dts/typeorm/error/QueryRunnerProviderAlreadyReleasedError.d.ts +7 -0
- package/full-dts/typeorm/error/RepositoryNotTreeError.d.ts +8 -0
- package/full-dts/typeorm/error/ReturningStatementNotSupportedError.d.ts +8 -0
- package/full-dts/typeorm/error/SubjectRemovedAndUpdatedError.d.ts +8 -0
- package/full-dts/typeorm/error/SubjectWithoutIdentifierError.d.ts +10 -0
- package/full-dts/typeorm/error/TransactionAlreadyStartedError.d.ts +7 -0
- package/full-dts/typeorm/error/TransactionNotStartedError.d.ts +7 -0
- package/full-dts/typeorm/error/TreeRepositoryNotSupportedError.d.ts +5 -0
- package/full-dts/typeorm/error/TypeORMError.d.ts +4 -0
- package/full-dts/typeorm/error/UpdateValuesMissingError.d.ts +4 -0
- package/full-dts/typeorm/error/UsingJoinColumnIsNotAllowedError.d.ts +6 -0
- package/full-dts/typeorm/error/UsingJoinColumnOnlyOnOneSideAllowedError.d.ts +6 -0
- package/full-dts/typeorm/error/UsingJoinTableIsNotAllowedError.d.ts +6 -0
- package/full-dts/typeorm/error/UsingJoinTableOnlyOnOneSideAllowedError.d.ts +6 -0
- package/full-dts/typeorm/error/index.d.ts +61 -0
- package/full-dts/typeorm/find-options/EqualOperator.d.ts +5 -0
- package/full-dts/typeorm/find-options/FindManyOptions.d.ts +14 -0
- package/full-dts/typeorm/find-options/FindOneOptions.d.ts +88 -0
- package/full-dts/typeorm/find-options/FindOperator.d.ts +65 -0
- package/full-dts/typeorm/find-options/FindOperatorType.d.ts +4 -0
- package/full-dts/typeorm/find-options/FindOptionsOrder.d.ts +18 -0
- package/full-dts/typeorm/find-options/FindOptionsRelations.d.ts +18 -0
- package/full-dts/typeorm/find-options/FindOptionsSelect.d.ts +18 -0
- package/full-dts/typeorm/find-options/FindOptionsUtils.d.ts +190 -0
- package/full-dts/typeorm/find-options/FindOptionsWhere.d.ts +13 -0
- package/full-dts/typeorm/find-options/FindTreeOptions.d.ts +13 -0
- package/full-dts/typeorm/find-options/JoinOptions.d.ts +76 -0
- package/full-dts/typeorm/find-options/OrderByCondition.d.ts +17 -0
- package/full-dts/typeorm/find-options/mongodb/MongoFindManyOptions.d.ts +14 -0
- package/full-dts/typeorm/find-options/mongodb/MongoFindOneOptions.d.ts +11 -0
- package/full-dts/typeorm/find-options/operator/And.d.ts +2 -0
- package/full-dts/typeorm/find-options/operator/Any.d.ts +6 -0
- package/full-dts/typeorm/find-options/operator/ArrayContainedBy.d.ts +6 -0
- package/full-dts/typeorm/find-options/operator/ArrayContains.d.ts +6 -0
- package/full-dts/typeorm/find-options/operator/ArrayOverlap.d.ts +6 -0
- package/full-dts/typeorm/find-options/operator/Between.d.ts +6 -0
- package/full-dts/typeorm/find-options/operator/Equal.d.ts +11 -0
- package/full-dts/typeorm/find-options/operator/ILike.d.ts +6 -0
- package/full-dts/typeorm/find-options/operator/In.d.ts +6 -0
- package/full-dts/typeorm/find-options/operator/IsNull.d.ts +6 -0
- package/full-dts/typeorm/find-options/operator/LessThan.d.ts +6 -0
- package/full-dts/typeorm/find-options/operator/LessThanOrEqual.d.ts +6 -0
- package/full-dts/typeorm/find-options/operator/Like.d.ts +6 -0
- package/full-dts/typeorm/find-options/operator/MoreThan.d.ts +6 -0
- package/full-dts/typeorm/find-options/operator/MoreThanOrEqual.d.ts +6 -0
- package/full-dts/typeorm/find-options/operator/Not.d.ts +7 -0
- package/full-dts/typeorm/find-options/operator/Raw.d.ts +18 -0
- package/full-dts/typeorm/globals____ORIGINAL____.d.ts +118 -0
- package/full-dts/typeorm/index.d.ts +173 -0
- package/full-dts/typeorm/logger/AdvancedConsoleLogger.d.ts +41 -0
- package/full-dts/typeorm/logger/DebugLogger.d.ts +40 -0
- package/full-dts/typeorm/logger/FileLogger____ORIGINAL____.d.ts +46 -0
- package/full-dts/typeorm/logger/Logger.d.ts +31 -0
- package/full-dts/typeorm/logger/LoggerFactory____ORIGINAL____.d.ts +11 -0
- package/full-dts/typeorm/logger/LoggerOptions.d.ts +13 -0
- package/full-dts/typeorm/logger/SimpleConsoleLogger.d.ts +41 -0
- package/full-dts/typeorm/metadata/CheckMetadata.d.ts +39 -0
- package/full-dts/typeorm/metadata/ColumnMetadata____ORIGINAL____.d.ts +315 -0
- package/full-dts/typeorm/metadata/EmbeddedMetadata.d.ts +165 -0
- package/full-dts/typeorm/metadata/EntityListenerMetadata.d.ts +48 -0
- package/full-dts/typeorm/metadata/EntityMetadata.d.ts +561 -0
- package/full-dts/typeorm/metadata/ExclusionMetadata.d.ts +39 -0
- package/full-dts/typeorm/metadata/ForeignKeyMetadata.d.ts +77 -0
- package/full-dts/typeorm/metadata/IndexMetadata.d.ts +111 -0
- package/full-dts/typeorm/metadata/RelationCountMetadata.d.ts +46 -0
- package/full-dts/typeorm/metadata/RelationIdMetadata.d.ts +53 -0
- package/full-dts/typeorm/metadata/RelationMetadata.d.ts +290 -0
- package/full-dts/typeorm/metadata/UniqueMetadata.d.ts +65 -0
- package/full-dts/typeorm/metadata/types/ClosureTreeOptions.d.ts +10 -0
- package/full-dts/typeorm/metadata/types/DeferrableType.d.ts +4 -0
- package/full-dts/typeorm/metadata/types/EventListenerTypes.d.ts +20 -0
- package/full-dts/typeorm/metadata/types/OnDeleteType.d.ts +4 -0
- package/full-dts/typeorm/metadata/types/OnUpdateType.d.ts +4 -0
- package/full-dts/typeorm/metadata/types/PropertyTypeInFunction.d.ts +4 -0
- package/full-dts/typeorm/metadata/types/RelationTypeInFunction.d.ts +5 -0
- package/full-dts/typeorm/metadata/types/RelationTypes.d.ts +4 -0
- package/full-dts/typeorm/metadata/types/TableTypes.d.ts +4 -0
- package/full-dts/typeorm/metadata/types/TreeTypes.d.ts +5 -0
- package/full-dts/typeorm/metadata-args/CheckMetadataArgs.d.ts +17 -0
- package/full-dts/typeorm/metadata-args/ColumnMetadataArgs.d.ts +25 -0
- package/full-dts/typeorm/metadata-args/DiscriminatorValueMetadataArgs.d.ts +13 -0
- package/full-dts/typeorm/metadata-args/EmbeddedMetadataArgs.d.ts +26 -0
- package/full-dts/typeorm/metadata-args/EntityListenerMetadataArgs.d.ts +18 -0
- package/full-dts/typeorm/metadata-args/EntityRepositoryMetadataArgs.d.ts +14 -0
- package/full-dts/typeorm/metadata-args/EntitySubscriberMetadataArgs.d.ts +9 -0
- package/full-dts/typeorm/metadata-args/ExclusionMetadataArgs.d.ts +17 -0
- package/full-dts/typeorm/metadata-args/GeneratedMetadataArgs.d.ts +17 -0
- package/full-dts/typeorm/metadata-args/IndexMetadataArgs.d.ts +70 -0
- package/full-dts/typeorm/metadata-args/InheritanceMetadataArgs.d.ts +18 -0
- package/full-dts/typeorm/metadata-args/JoinColumnMetadataArgs.d.ts +26 -0
- package/full-dts/typeorm/metadata-args/JoinTableMetadataArgs.d.ts +37 -0
- package/full-dts/typeorm/metadata-args/MetadataArgsStorage.d.ts +108 -0
- package/full-dts/typeorm/metadata-args/NamingStrategyMetadataArgs.d.ts +13 -0
- package/full-dts/typeorm/metadata-args/RelationCountMetadataArgs.d.ts +26 -0
- package/full-dts/typeorm/metadata-args/RelationIdMetadataArgs.d.ts +26 -0
- package/full-dts/typeorm/metadata-args/RelationMetadataArgs.d.ts +55 -0
- package/full-dts/typeorm/metadata-args/TableMetadataArgs.d.ts +61 -0
- package/full-dts/typeorm/metadata-args/TransactionEntityMetadataArgs.d.ts +17 -0
- package/full-dts/typeorm/metadata-args/TransactionRepositoryMetadataArgs.d.ts +25 -0
- package/full-dts/typeorm/metadata-args/TreeMetadataArgs.d.ts +19 -0
- package/full-dts/typeorm/metadata-args/UniqueMetadataArgs.d.ts +24 -0
- package/full-dts/typeorm/metadata-args/types/ColumnMode.d.ts +7 -0
- package/full-dts/typeorm/metadata-builder/ClosureJunctionEntityMetadataBuilder.d.ts +14 -0
- package/full-dts/typeorm/metadata-builder/EntityMetadataBuilder.d.ts +57 -0
- package/full-dts/typeorm/metadata-builder/EntityMetadataValidator.d.ts +23 -0
- package/full-dts/typeorm/metadata-builder/JunctionEntityMetadataBuilder____ORIGINAL____.d.ts +26 -0
- package/full-dts/typeorm/metadata-builder/MetadataUtils.d.ts +23 -0
- package/full-dts/typeorm/metadata-builder/RelationJoinColumnBuilder.d.ts +56 -0
- package/full-dts/typeorm/migration/Migration.d.ts +24 -0
- package/full-dts/typeorm/migration/MigrationExecutor____ORIGINAL____.d.ts +99 -0
- package/full-dts/typeorm/migration/MigrationInterface.d.ts +18 -0
- package/full-dts/typeorm/naming-strategy/DefaultNamingStrategy.d.ts +49 -0
- package/full-dts/typeorm/naming-strategy/NamingStrategyInterface.d.ts +116 -0
- package/full-dts/typeorm/persistence/EntityPersistExecutor____ORIGINAL____.d.ts +21 -0
- package/full-dts/typeorm/persistence/SubjectChangeMap.d.ts +23 -0
- package/full-dts/typeorm/persistence/SubjectChangedColumnsComputer____ORIGINAL____.d.ts +18 -0
- package/full-dts/typeorm/persistence/SubjectDatabaseEntityLoader____ORIGINAL____.d.ts +35 -0
- package/full-dts/typeorm/persistence/SubjectExecutor____ORIGINAL____.d.ts +118 -0
- package/full-dts/typeorm/persistence/SubjectTopoligicalSorter.d.ts +45 -0
- package/full-dts/typeorm/persistence/Subject____ORIGINAL____.d.ts +155 -0
- package/full-dts/typeorm/persistence/subject-builder/CascadesSubjectBuilder.d.ts +19 -0
- package/full-dts/typeorm/persistence/subject-builder/ManyToManySubjectBuilder.d.ts +34 -0
- package/full-dts/typeorm/persistence/subject-builder/OneToManySubjectBuilder.d.ts +27 -0
- package/full-dts/typeorm/persistence/subject-builder/OneToOneInverseSideSubjectBuilder.d.ts +27 -0
- package/full-dts/typeorm/persistence/tree/ClosureSubjectExecutor.d.ts +26 -0
- package/full-dts/typeorm/persistence/tree/MaterializedPathSubjectExecutor.d.ts +18 -0
- package/full-dts/typeorm/persistence/tree/NestedSetSubjectExecutor.d.ts +38 -0
- package/full-dts/typeorm/platform/PlatformTools.d.ts +67 -0
- package/full-dts/typeorm/query-builder/Alias.d.ts +22 -0
- package/full-dts/typeorm/query-builder/Brackets.d.ts +16 -0
- package/full-dts/typeorm/query-builder/DeleteQueryBuilder____ORIGINAL____.d.ts +91 -0
- package/full-dts/typeorm/query-builder/InsertOrUpdateOptions.d.ts +3 -0
- package/full-dts/typeorm/query-builder/InsertQueryBuilder____ORIGINAL____.d.ts +117 -0
- package/full-dts/typeorm/query-builder/JoinAttribute.d.ts +83 -0
- package/full-dts/typeorm/query-builder/JoinOptions.d.ts +3 -0
- package/full-dts/typeorm/query-builder/NotBrackets.d.ts +8 -0
- package/full-dts/typeorm/query-builder/QueryBuilder.d.ts +267 -0
- package/full-dts/typeorm/query-builder/QueryBuilderCte.d.ts +17 -0
- package/full-dts/typeorm/query-builder/QueryBuilderUtils.d.ts +10 -0
- package/full-dts/typeorm/query-builder/QueryExpressionMap.d.ts +305 -0
- package/full-dts/typeorm/query-builder/QueryPartialEntity.d.ts +15 -0
- package/full-dts/typeorm/query-builder/RelationIdLoader.d.ts +70 -0
- package/full-dts/typeorm/query-builder/RelationLoader____ORIGINAL____.d.ts +59 -0
- package/full-dts/typeorm/query-builder/RelationQueryBuilder____ORIGINAL____.d.ts +69 -0
- package/full-dts/typeorm/query-builder/RelationRemover.d.ts +16 -0
- package/full-dts/typeorm/query-builder/RelationUpdater.d.ts +16 -0
- package/full-dts/typeorm/query-builder/ReturningResultsEntityUpdator.d.ts +30 -0
- package/full-dts/typeorm/query-builder/SelectQuery.d.ts +5 -0
- package/full-dts/typeorm/query-builder/SelectQueryBuilder.d.ts +669 -0
- package/full-dts/typeorm/query-builder/SelectQueryBuilderOption.d.ts +1 -0
- package/full-dts/typeorm/query-builder/SoftDeleteQueryBuilder____ORIGINAL____.d.ts +138 -0
- package/full-dts/typeorm/query-builder/UpdateQueryBuilder____ORIGINAL____.d.ts +143 -0
- package/full-dts/typeorm/query-builder/WhereClause.d.ts +16 -0
- package/full-dts/typeorm/query-builder/WhereExpressionBuilder.d.ts +126 -0
- package/full-dts/typeorm/query-builder/relation-count/RelationCountAttribute.d.ts +53 -0
- package/full-dts/typeorm/query-builder/relation-count/RelationCountLoadResult.d.ts +8 -0
- package/full-dts/typeorm/query-builder/relation-count/RelationCountLoader.d.ts +11 -0
- package/full-dts/typeorm/query-builder/relation-count/RelationCountMetadataToAttributeTransformer.d.ts +7 -0
- package/full-dts/typeorm/query-builder/relation-id/RelationIdAttribute.d.ts +64 -0
- package/full-dts/typeorm/query-builder/relation-id/RelationIdLoadResult.d.ts +5 -0
- package/full-dts/typeorm/query-builder/relation-id/RelationIdLoader.d.ts +11 -0
- package/full-dts/typeorm/query-builder/relation-id/RelationIdMetadataToAttributeTransformer.d.ts +7 -0
- package/full-dts/typeorm/query-builder/result/DeleteResult.d.ts +16 -0
- package/full-dts/typeorm/query-builder/result/InsertResult.d.ts +22 -0
- package/full-dts/typeorm/query-builder/result/UpdateResult.d.ts +26 -0
- package/full-dts/typeorm/query-builder/transformer/DocumentToEntityTransformer.d.ts +12 -0
- package/full-dts/typeorm/query-builder/transformer/PlainObjectToDatabaseEntityTransformer.d.ts +12 -0
- package/full-dts/typeorm/query-builder/transformer/PlainObjectToNewEntityTransformer.d.ts +14 -0
- package/full-dts/typeorm/query-builder/transformer/RawSqlResultsToEntityTransformer____ORIGINAL____.d.ts +55 -0
- package/full-dts/typeorm/query-runner/BaseQueryRunner.d.ts +203 -0
- package/full-dts/typeorm/query-runner/QueryLock.d.ts +4 -0
- package/full-dts/typeorm/query-runner/QueryResult.d.ts +17 -0
- package/full-dts/typeorm/query-runner/QueryRunner____ORIGINAL____.d.ts +359 -0
- package/full-dts/typeorm/relation-path.d.ts +6 -0
- package/full-dts/typeorm/repository/AbstractRepository.d.ts +51 -0
- package/full-dts/typeorm/repository/BaseEntity.d.ts +297 -0
- package/full-dts/typeorm/repository/EntityId.d.ts +2 -0
- package/full-dts/typeorm/repository/FindTreesOptions.d.ts +9 -0
- package/full-dts/typeorm/repository/MongoRepository____ORIGINAL____.d.ts +262 -0
- package/full-dts/typeorm/repository/RemoveOptions.d.ts +27 -0
- package/full-dts/typeorm/repository/Repository.d.ts +291 -0
- package/full-dts/typeorm/repository/SaveOptions.d.ts +35 -0
- package/full-dts/typeorm/repository/TreeRepository.d.ts +55 -0
- package/full-dts/typeorm/repository/UpsertOptions.d.ts +10 -0
- package/full-dts/typeorm/schema-builder/MongoSchemaBuilder.d.ts +29 -0
- package/full-dts/typeorm/schema-builder/RdbmsSchemaBuilder.d.ts +144 -0
- package/full-dts/typeorm/schema-builder/SchemaBuilder.d.ts +14 -0
- package/full-dts/typeorm/schema-builder/options/TableCheckOptions.d.ts +17 -0
- package/full-dts/typeorm/schema-builder/options/TableColumnOptions.d.ts +122 -0
- package/full-dts/typeorm/schema-builder/options/TableExclusionOptions.d.ts +13 -0
- package/full-dts/typeorm/schema-builder/options/TableForeignKeyOptions.d.ts +44 -0
- package/full-dts/typeorm/schema-builder/options/TableIndexOptions.d.ts +44 -0
- package/full-dts/typeorm/schema-builder/options/TableOptions.d.ts +61 -0
- package/full-dts/typeorm/schema-builder/options/TableUniqueOptions.d.ts +18 -0
- package/full-dts/typeorm/schema-builder/options/ViewOptions.d.ts +26 -0
- package/full-dts/typeorm/schema-builder/table/Table.d.ts +142 -0
- package/full-dts/typeorm/schema-builder/table/TableCheck.d.ts +29 -0
- package/full-dts/typeorm/schema-builder/table/TableColumn.d.ts +126 -0
- package/full-dts/typeorm/schema-builder/table/TableExclusion.d.ts +25 -0
- package/full-dts/typeorm/schema-builder/table/TableForeignKey.d.ts +57 -0
- package/full-dts/typeorm/schema-builder/table/TableIndex.d.ts +56 -0
- package/full-dts/typeorm/schema-builder/table/TableUnique.d.ts +30 -0
- package/full-dts/typeorm/schema-builder/util/TableUtils____ORIGINAL____.d.ts +6 -0
- package/full-dts/typeorm/schema-builder/util/ViewUtils.d.ts +7 -0
- package/full-dts/typeorm/schema-builder/view/View.d.ts +37 -0
- package/full-dts/typeorm/subscriber/Broadcaster.d.ts +167 -0
- package/full-dts/typeorm/subscriber/BroadcasterResult.d.ts +17 -0
- package/full-dts/typeorm/subscriber/EntitySubscriberInterface.d.ts +92 -0
- package/full-dts/typeorm/subscriber/event/InsertEvent.d.ts +31 -0
- package/full-dts/typeorm/subscriber/event/LoadEvent.d.ts +31 -0
- package/full-dts/typeorm/subscriber/event/RecoverEvent.d.ts +6 -0
- package/full-dts/typeorm/subscriber/event/RemoveEvent.d.ts +40 -0
- package/full-dts/typeorm/subscriber/event/SoftRemoveEvent.d.ts +6 -0
- package/full-dts/typeorm/subscriber/event/TransactionCommitEvent.d.ts +22 -0
- package/full-dts/typeorm/subscriber/event/TransactionRollbackEvent.d.ts +22 -0
- package/full-dts/typeorm/subscriber/event/TransactionStartEvent.d.ts +22 -0
- package/full-dts/typeorm/subscriber/event/UpdateEvent.d.ts +46 -0
- package/full-dts/typeorm/util/ApplyValueTransformers.d.ts +5 -0
- package/full-dts/typeorm/util/DateUtils____ORIGINAL____.d.ts +58 -0
- package/full-dts/typeorm/util/DepGraph.d.ts +64 -0
- package/full-dts/typeorm/util/DirectoryExportedClassesLoader____ORIGINAL____.d.ts +9 -0
- package/full-dts/typeorm/util/ImportUtils____ORIGINAL____.d.ts +1 -0
- package/full-dts/typeorm/util/InstanceChecker____ORIGINAL____.d.ts +63 -0
- package/full-dts/typeorm/util/ObjectUtils____ORIGINAL____.d.ts +37 -0
- package/full-dts/typeorm/util/OrmUtils____ORIGINAL____.d.ts +52 -0
- package/full-dts/typeorm/util/PathUtils____ORIGINAL____.d.ts +10 -0
- package/full-dts/typeorm/util/RandomGenerator.d.ts +15 -0
- package/full-dts/typeorm/util/StringUtils____ORIGINAL____.d.ts +63 -0
- package/full-dts/typeorm/util/TreeRepositoryUtils____ORIGINAL____.d.ts +23 -0
- package/full-dts/typeorm/util/VersionUtils.d.ts +4 -0
- package/full-dts/typeorm/util/escapeRegExp.d.ts +1 -0
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/package.json +1 -1
- package/lib-esm/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib-esm/lib/build-info._auto-generated_.js +1 -1
- package/lib-prod/build-info._auto-generated_.d.ts +1 -1
- package/lib-prod/build-info._auto-generated_.js +1 -1
- package/lib-prod/package.json +1 -1
- package/lib-prod/typeorm/driver/sqljs/SqljsDriver.js.map +1 -1
- package/package.json +1 -1
- package/src.d.ts +1 -1
- package/websql/package.json +1 -1
- package/websql-prod/fesm2022/taon-typeorm-websql-prod.mjs.map +1 -1
- package/websql-prod/package.json +1 -1
- /package/{lib/typeorm/cache/DbQueryResultCache____ORIGINAL____.d.ts → full-dts/typeorm/cache/DbQueryResultCache.d.ts} +0 -0
- /package/{lib/typeorm/cli-ts-node-commonjs____ORIGINAL____.d.ts → full-dts/typeorm/cli-ts-node-commonjs.d.ts} +0 -0
- /package/{lib/typeorm/cli-ts-node-esm____ORIGINAL____.d.ts → full-dts/typeorm/cli-ts-node-esm.d.ts} +0 -0
- /package/{lib → full-dts}/typeorm/cli____ORIGINAL____.d.ts +0 -0
- /package/{lib/typeorm/commands/CacheClearCommand____ORIGINAL____.d.ts → full-dts/typeorm/commands/CacheClearCommand.d.ts} +0 -0
- /package/{lib/typeorm/commands/CommandUtils____ORIGINAL____.d.ts → full-dts/typeorm/commands/CommandUtils.d.ts} +0 -0
- /package/{lib/typeorm/commands/EntityCreateCommand____ORIGINAL____.d.ts → full-dts/typeorm/commands/EntityCreateCommand.d.ts} +0 -0
- /package/{lib/typeorm/commands/InitCommand____ORIGINAL____.d.ts → full-dts/typeorm/commands/InitCommand.d.ts} +0 -0
- /package/{lib/typeorm/commands/MigrationCreateCommand____ORIGINAL____.d.ts → full-dts/typeorm/commands/MigrationCreateCommand.d.ts} +0 -0
- /package/{lib/typeorm/commands/MigrationGenerateCommand____ORIGINAL____.d.ts → full-dts/typeorm/commands/MigrationGenerateCommand.d.ts} +0 -0
- /package/{lib/typeorm/commands/MigrationRevertCommand____ORIGINAL____.d.ts → full-dts/typeorm/commands/MigrationRevertCommand.d.ts} +0 -0
- /package/{lib/typeorm/commands/MigrationRunCommand____ORIGINAL____.d.ts → full-dts/typeorm/commands/MigrationRunCommand.d.ts} +0 -0
- /package/{lib/typeorm/commands/MigrationShowCommand____ORIGINAL____.d.ts → full-dts/typeorm/commands/MigrationShowCommand.d.ts} +0 -0
- /package/{lib/typeorm/commands/QueryCommand____ORIGINAL____.d.ts → full-dts/typeorm/commands/QueryCommand.d.ts} +0 -0
- /package/{lib/typeorm/commands/SchemaDropCommand____ORIGINAL____.d.ts → full-dts/typeorm/commands/SchemaDropCommand.d.ts} +0 -0
- /package/{lib → full-dts}/typeorm/commands/SchemaLogCommand____ORIGINAL____.d.ts +0 -0
- /package/{lib/typeorm/commands/SchemaSyncCommand____ORIGINAL____.d.ts → full-dts/typeorm/commands/SchemaSyncCommand.d.ts} +0 -0
- /package/{lib/typeorm/commands/SubscriberCreateCommand____ORIGINAL____.d.ts → full-dts/typeorm/commands/SubscriberCreateCommand.d.ts} +0 -0
- /package/{lib/typeorm/connection/ConnectionOptionsReader____ORIGINAL____.d.ts → full-dts/typeorm/connection/ConnectionOptionsReader.d.ts} +0 -0
- /package/{lib → full-dts}/typeorm/data-source/DataSourceOptions____ORIGINAL____.d.ts +0 -0
- /package/{lib → full-dts}/typeorm/data-source/DataSource____ORIGINAL____.d.ts +0 -0
- /package/{lib → full-dts}/typeorm/decorator/options/JoinTableMultipleColumnsOptions____ORIGINAL____.d.ts +0 -0
- /package/{lib → full-dts}/typeorm/decorator/options/JoinTableOptions____ORIGINAL____.d.ts +0 -0
- /package/{lib/typeorm/decorator/relations/JoinTable____ORIGINAL____.d.ts → full-dts/typeorm/decorator/relations/JoinTable.d.ts} +0 -0
- /package/{lib/typeorm/decorator/tree/TreeChildren____ORIGINAL____.d.ts → full-dts/typeorm/decorator/tree/TreeChildren.d.ts} +0 -0
- /package/{lib/typeorm/decorator/tree/TreeParent____ORIGINAL____.d.ts → full-dts/typeorm/decorator/tree/TreeParent.d.ts} +0 -0
- /package/{lib → full-dts}/typeorm/driver/DriverFactory____ORIGINAL____.d.ts +0 -0
- /package/{lib → full-dts}/typeorm/driver/Driver____ORIGINAL____.d.ts +0 -0
- /package/{lib/typeorm/driver/aurora-mysql/AuroraMysqlConnectionOptions____ORIGINAL____.d.ts → full-dts/typeorm/driver/aurora-mysql/AuroraMysqlConnectionOptions.d.ts} +0 -0
- /package/{lib/typeorm/driver/aurora-mysql/AuroraMysqlDriver____ORIGINAL____.d.ts → full-dts/typeorm/driver/aurora-mysql/AuroraMysqlDriver.d.ts} +0 -0
- /package/{lib/typeorm/driver/aurora-mysql/AuroraMysqlQueryRunner____ORIGINAL____.d.ts → full-dts/typeorm/driver/aurora-mysql/AuroraMysqlQueryRunner.d.ts} +0 -0
- /package/{lib/typeorm/driver/better-sqlite3/BetterSqlite3Driver____ORIGINAL____.d.ts → full-dts/typeorm/driver/better-sqlite3/BetterSqlite3Driver.d.ts} +0 -0
- /package/{lib/typeorm/driver/better-sqlite3/BetterSqlite3QueryRunner____ORIGINAL____.d.ts → full-dts/typeorm/driver/better-sqlite3/BetterSqlite3QueryRunner.d.ts} +0 -0
- /package/{lib → full-dts}/typeorm/driver/cordova/CordovaDriver____ORIGINAL____.d.ts +0 -0
- /package/{lib/typeorm/driver/mongodb/MongoConnectionOptions____ORIGINAL____.d.ts → full-dts/typeorm/driver/mongodb/MongoConnectionOptions.d.ts} +0 -0
- /package/{lib/typeorm/driver/mongodb/MongoDriver____ORIGINAL____.d.ts → full-dts/typeorm/driver/mongodb/MongoDriver.d.ts} +0 -0
- /package/{lib/typeorm/driver/mongodb/MongoQueryRunner____ORIGINAL____.d.ts → full-dts/typeorm/driver/mongodb/MongoQueryRunner.d.ts} +0 -0
- /package/{lib/typeorm/driver/mongodb/typings____ORIGINAL____.d.ts → full-dts/typeorm/driver/mongodb/typings.d.ts} +0 -0
- /package/{lib/typeorm/driver/mysql/MysqlConnectionCredentialsOptions____ORIGINAL____.d.ts → full-dts/typeorm/driver/mysql/MysqlConnectionCredentialsOptions.d.ts} +0 -0
- /package/{lib/typeorm/driver/mysql/MysqlConnectionOptions____ORIGINAL____.d.ts → full-dts/typeorm/driver/mysql/MysqlConnectionOptions.d.ts} +0 -0
- /package/{lib/typeorm/driver/mysql/MysqlDriver____ORIGINAL____.d.ts → full-dts/typeorm/driver/mysql/MysqlDriver.d.ts} +0 -0
- /package/{lib/typeorm/driver/mysql/MysqlQueryRunner____ORIGINAL____.d.ts → full-dts/typeorm/driver/mysql/MysqlQueryRunner.d.ts} +0 -0
- /package/{lib/typeorm/driver/nativescript/NativescriptDriver____ORIGINAL____.d.ts → full-dts/typeorm/driver/nativescript/NativescriptDriver.d.ts} +0 -0
- /package/{lib/typeorm/driver/oracle/OracleConnectionCredentialsOptions____ORIGINAL____.d.ts → full-dts/typeorm/driver/oracle/OracleConnectionCredentialsOptions.d.ts} +0 -0
- /package/{lib/typeorm/driver/oracle/OracleConnectionOptions____ORIGINAL____.d.ts → full-dts/typeorm/driver/oracle/OracleConnectionOptions.d.ts} +0 -0
- /package/{lib → full-dts}/typeorm/driver/oracle/OracleDriver____ORIGINAL____.d.ts +0 -0
- /package/{lib/typeorm/driver/oracle/OracleQueryRunner____ORIGINAL____.d.ts → full-dts/typeorm/driver/oracle/OracleQueryRunner.d.ts} +0 -0
- /package/{lib/typeorm/driver/postgres/PostgresConnectionCredentialsOptions____ORIGINAL____.d.ts → full-dts/typeorm/driver/postgres/PostgresConnectionCredentialsOptions.d.ts} +0 -0
- /package/{lib → full-dts}/typeorm/driver/postgres/PostgresConnectionOptions____ORIGINAL____.d.ts +0 -0
- /package/{lib/typeorm/driver/postgres/PostgresDriver____ORIGINAL____.d.ts → full-dts/typeorm/driver/postgres/PostgresDriver.d.ts} +0 -0
- /package/{lib → full-dts}/typeorm/driver/postgres/PostgresQueryRunner____ORIGINAL____.d.ts +0 -0
- /package/{lib/typeorm/driver/react-native/ReactNativeDriver____ORIGINAL____.d.ts → full-dts/typeorm/driver/react-native/ReactNativeDriver.d.ts} +0 -0
- /package/{lib/typeorm/driver/react-native/ReactNativeQueryRunner____ORIGINAL____.d.ts → full-dts/typeorm/driver/react-native/ReactNativeQueryRunner.d.ts} +0 -0
- /package/{lib → full-dts}/typeorm/driver/sap/SapDriver____ORIGINAL____.d.ts +0 -0
- /package/{lib → full-dts}/typeorm/driver/sqlite/SqliteConnectionOptions____ORIGINAL____.d.ts +0 -0
- /package/{lib/typeorm/driver/sqlite/SqliteDriver____ORIGINAL____.d.ts → full-dts/typeorm/driver/sqlite/SqliteDriver.d.ts} +0 -0
- /package/{lib/typeorm/driver/sqlite-abstract/AbstractSqliteDriver____ORIGINAL____.d.ts → full-dts/typeorm/driver/sqlite-abstract/AbstractSqliteDriver.d.ts} +0 -0
- /package/{lib/typeorm/driver/sqlite-abstract/AbstractSqliteQueryRunner____ORIGINAL____.d.ts → full-dts/typeorm/driver/sqlite-abstract/AbstractSqliteQueryRunner.d.ts} +0 -0
- /package/{lib → full-dts}/typeorm/driver/sqljs/SqljsDriver____ORIGINAL____.d.ts +0 -0
- /package/{lib/typeorm/driver/sqljs/SqljsQueryRunner____ORIGINAL____.d.ts → full-dts/typeorm/driver/sqljs/SqljsQueryRunner.d.ts} +0 -0
- /package/{lib/typeorm/driver/sqlserver/MssqlParameter____ORIGINAL____.d.ts → full-dts/typeorm/driver/sqlserver/MssqlParameter.d.ts} +0 -0
- /package/{lib/typeorm/driver/sqlserver/SqlServerConnectionCredentialsOptions____ORIGINAL____.d.ts → full-dts/typeorm/driver/sqlserver/SqlServerConnectionCredentialsOptions.d.ts} +0 -0
- /package/{lib/typeorm/driver/sqlserver/SqlServerConnectionOptions____ORIGINAL____.d.ts → full-dts/typeorm/driver/sqlserver/SqlServerConnectionOptions.d.ts} +0 -0
- /package/{lib/typeorm/driver/sqlserver/SqlServerDriver____ORIGINAL____.d.ts → full-dts/typeorm/driver/sqlserver/SqlServerDriver.d.ts} +0 -0
- /package/{lib/typeorm/driver/sqlserver/SqlServerQueryRunner____ORIGINAL____.d.ts → full-dts/typeorm/driver/sqlserver/SqlServerQueryRunner.d.ts} +0 -0
- /package/{lib/typeorm/entity-manager/EntityManagerFactory____ORIGINAL____.d.ts → full-dts/typeorm/entity-manager/EntityManagerFactory.d.ts} +0 -0
- /package/{lib → full-dts}/typeorm/entity-manager/EntityManager____ORIGINAL____.d.ts +0 -0
- /package/{lib/typeorm/entity-manager/MongoEntityManager____ORIGINAL____.d.ts → full-dts/typeorm/entity-manager/MongoEntityManager.d.ts} +0 -0
- /package/{lib/typeorm/entity-manager/SqljsEntityManager____ORIGINAL____.d.ts → full-dts/typeorm/entity-manager/SqljsEntityManager.d.ts} +0 -0
- /package/{lib → full-dts}/typeorm/error/index____ORIGINAL____.d.ts +0 -0
- /package/{lib → full-dts}/typeorm/find-options/FindOptionsOrder____ORIGINAL____.d.ts +0 -0
- /package/{lib → full-dts}/typeorm/find-options/FindOptionsRelations____ORIGINAL____.d.ts +0 -0
- /package/{lib → full-dts}/typeorm/find-options/FindOptionsSelect____ORIGINAL____.d.ts +0 -0
- /package/{lib → full-dts}/typeorm/find-options/FindOptionsWhere____ORIGINAL____.d.ts +0 -0
- /package/{lib → full-dts}/typeorm/find-options/operator/Any____ORIGINAL____.d.ts +0 -0
- /package/{lib → full-dts}/typeorm/find-options/operator/ArrayContainedBy____ORIGINAL____.d.ts +0 -0
- /package/{lib → full-dts}/typeorm/find-options/operator/ArrayContains____ORIGINAL____.d.ts +0 -0
- /package/{lib → full-dts}/typeorm/find-options/operator/ArrayOverlap____ORIGINAL____.d.ts +0 -0
- /package/{lib → full-dts}/typeorm/find-options/operator/In____ORIGINAL____.d.ts +0 -0
- /package/{lib/typeorm/globals____ORIGINAL____.d.ts → full-dts/typeorm/globals.d.ts} +0 -0
- /package/{lib → full-dts}/typeorm/index____ORIGINAL____.d.ts +0 -0
- /package/{lib/typeorm/logger/FileLogger____ORIGINAL____.d.ts → full-dts/typeorm/logger/FileLogger.d.ts} +0 -0
- /package/{lib/typeorm/logger/LoggerFactory____ORIGINAL____.d.ts → full-dts/typeorm/logger/LoggerFactory.d.ts} +0 -0
- /package/{lib/typeorm/metadata/ColumnMetadata____ORIGINAL____.d.ts → full-dts/typeorm/metadata/ColumnMetadata.d.ts} +0 -0
- /package/{lib → full-dts}/typeorm/metadata-args/JoinTableMetadataArgs____ORIGINAL____.d.ts +0 -0
- /package/{lib/typeorm/metadata-builder/JunctionEntityMetadataBuilder____ORIGINAL____.d.ts → full-dts/typeorm/metadata-builder/JunctionEntityMetadataBuilder.d.ts} +0 -0
- /package/{lib/typeorm/migration/MigrationExecutor____ORIGINAL____.d.ts → full-dts/typeorm/migration/MigrationExecutor.d.ts} +0 -0
- /package/{lib → full-dts}/typeorm/migration/MigrationInterface____ORIGINAL____.d.ts +0 -0
- /package/{lib → full-dts}/typeorm/migration/Migration____ORIGINAL____.d.ts +0 -0
- /package/{lib → full-dts}/typeorm/naming-strategy/NamingStrategyInterface____ORIGINAL____.d.ts +0 -0
- /package/{lib/typeorm/persistence/EntityPersistExecutor____ORIGINAL____.d.ts → full-dts/typeorm/persistence/EntityPersistExecutor.d.ts} +0 -0
- /package/{lib/typeorm/persistence/Subject____ORIGINAL____.d.ts → full-dts/typeorm/persistence/Subject.d.ts} +0 -0
- /package/{lib/typeorm/persistence/SubjectChangedColumnsComputer____ORIGINAL____.d.ts → full-dts/typeorm/persistence/SubjectChangedColumnsComputer.d.ts} +0 -0
- /package/{lib/typeorm/persistence/SubjectDatabaseEntityLoader____ORIGINAL____.d.ts → full-dts/typeorm/persistence/SubjectDatabaseEntityLoader.d.ts} +0 -0
- /package/{lib/typeorm/persistence/SubjectExecutor____ORIGINAL____.d.ts → full-dts/typeorm/persistence/SubjectExecutor.d.ts} +0 -0
- /package/{lib → full-dts}/typeorm/persistence/tree/MaterializedPathSubjectExecutor____ORIGINAL____.d.ts +0 -0
- /package/{lib → full-dts}/typeorm/platform/PlatformTools____ORIGINAL____.d.ts +0 -0
- /package/{lib/typeorm/query-builder/DeleteQueryBuilder____ORIGINAL____.d.ts → full-dts/typeorm/query-builder/DeleteQueryBuilder.d.ts} +0 -0
- /package/{lib → full-dts}/typeorm/query-builder/InsertOrUpdateOptions____ORIGINAL____.d.ts +0 -0
- /package/{lib/typeorm/query-builder/InsertQueryBuilder____ORIGINAL____.d.ts → full-dts/typeorm/query-builder/InsertQueryBuilder.d.ts} +0 -0
- /package/{lib → full-dts}/typeorm/query-builder/QueryBuilder____ORIGINAL____.d.ts +0 -0
- /package/{lib → full-dts}/typeorm/query-builder/QueryExpressionMap____ORIGINAL____.d.ts +0 -0
- /package/{lib/typeorm/query-builder/RelationLoader____ORIGINAL____.d.ts → full-dts/typeorm/query-builder/RelationLoader.d.ts} +0 -0
- /package/{lib/typeorm/query-builder/RelationQueryBuilder____ORIGINAL____.d.ts → full-dts/typeorm/query-builder/RelationQueryBuilder.d.ts} +0 -0
- /package/{lib → full-dts}/typeorm/query-builder/SelectQueryBuilder____ORIGINAL____.d.ts +0 -0
- /package/{lib/typeorm/query-builder/SoftDeleteQueryBuilder____ORIGINAL____.d.ts → full-dts/typeorm/query-builder/SoftDeleteQueryBuilder.d.ts} +0 -0
- /package/{lib/typeorm/query-builder/UpdateQueryBuilder____ORIGINAL____.d.ts → full-dts/typeorm/query-builder/UpdateQueryBuilder.d.ts} +0 -0
- /package/{lib/typeorm/query-builder/transformer/RawSqlResultsToEntityTransformer____ORIGINAL____.d.ts → full-dts/typeorm/query-builder/transformer/RawSqlResultsToEntityTransformer.d.ts} +0 -0
- /package/{lib → full-dts}/typeorm/query-runner/BaseQueryRunner____ORIGINAL____.d.ts +0 -0
- /package/{lib/typeorm/query-runner/QueryRunner____ORIGINAL____.d.ts → full-dts/typeorm/query-runner/QueryRunner.d.ts} +0 -0
- /package/{lib/typeorm/repository/MongoRepository____ORIGINAL____.d.ts → full-dts/typeorm/repository/MongoRepository.d.ts} +0 -0
- /package/{lib → full-dts}/typeorm/repository/Repository____ORIGINAL____.d.ts +0 -0
- /package/{lib → full-dts}/typeorm/repository/TreeRepository____ORIGINAL____.d.ts +0 -0
- /package/{lib → full-dts}/typeorm/repository/UpsertOptions____ORIGINAL____.d.ts +0 -0
- /package/{lib → full-dts}/typeorm/schema-builder/RdbmsSchemaBuilder____ORIGINAL____.d.ts +0 -0
- /package/{lib/typeorm/schema-builder/util/TableUtils____ORIGINAL____.d.ts → full-dts/typeorm/schema-builder/util/TableUtils.d.ts} +0 -0
- /package/{lib → full-dts}/typeorm/schema-builder/view/View____ORIGINAL____.d.ts +0 -0
- /package/{lib/typeorm/util/DateUtils____ORIGINAL____.d.ts → full-dts/typeorm/util/DateUtils.d.ts} +0 -0
- /package/{lib/typeorm/util/DirectoryExportedClassesLoader____ORIGINAL____.d.ts → full-dts/typeorm/util/DirectoryExportedClassesLoader.d.ts} +0 -0
- /package/{lib/typeorm/util/ImportUtils____ORIGINAL____.d.ts → full-dts/typeorm/util/ImportUtils.d.ts} +0 -0
- /package/{lib/typeorm/util/InstanceChecker____ORIGINAL____.d.ts → full-dts/typeorm/util/InstanceChecker.d.ts} +0 -0
- /package/{lib/typeorm/util/ObjectUtils____ORIGINAL____.d.ts → full-dts/typeorm/util/ObjectUtils.d.ts} +0 -0
- /package/{lib/typeorm/util/OrmUtils____ORIGINAL____.d.ts → full-dts/typeorm/util/OrmUtils.d.ts} +0 -0
- /package/{lib/typeorm/util/PathUtils____ORIGINAL____.d.ts → full-dts/typeorm/util/PathUtils.d.ts} +0 -0
- /package/{lib/typeorm/util/StringUtils____ORIGINAL____.d.ts → full-dts/typeorm/util/StringUtils.d.ts} +0 -0
- /package/{lib/typeorm/util/TreeRepositoryUtils____ORIGINAL____.d.ts → full-dts/typeorm/util/TreeRepositoryUtils.d.ts} +0 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { QueryResultCache } from "./QueryResultCache";
|
|
2
|
+
import { QueryResultCacheOptions } from "./QueryResultCacheOptions";
|
|
3
|
+
import { DataSource } from "../data-source/DataSource";
|
|
4
|
+
import { QueryRunner } from "../query-runner/QueryRunner";
|
|
5
|
+
/**
|
|
6
|
+
* Caches query result into Redis database.
|
|
7
|
+
*/
|
|
8
|
+
export declare class RedisQueryResultCache implements QueryResultCache {
|
|
9
|
+
protected connection: DataSource;
|
|
10
|
+
/**
|
|
11
|
+
* Redis module instance loaded dynamically.
|
|
12
|
+
*/
|
|
13
|
+
protected redis: any;
|
|
14
|
+
/**
|
|
15
|
+
* Connected redis client.
|
|
16
|
+
*/
|
|
17
|
+
protected client: any;
|
|
18
|
+
/**
|
|
19
|
+
* Type of the Redis Client (redis or ioredis).
|
|
20
|
+
*/
|
|
21
|
+
protected clientType: "redis" | "ioredis" | "ioredis/cluster";
|
|
22
|
+
constructor(connection: DataSource, clientType: "redis" | "ioredis" | "ioredis/cluster");
|
|
23
|
+
/**
|
|
24
|
+
* Creates a connection with given cache provider.
|
|
25
|
+
*/
|
|
26
|
+
connect(): Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* Disconnects the connection
|
|
29
|
+
*/
|
|
30
|
+
disconnect(): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* Creates table for storing cache if it does not exist yet.
|
|
33
|
+
*/
|
|
34
|
+
synchronize(queryRunner: QueryRunner): Promise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* Caches given query result.
|
|
37
|
+
* Returns cache result if found.
|
|
38
|
+
* Returns undefined if result is not cached.
|
|
39
|
+
*/
|
|
40
|
+
getFromCache(options: QueryResultCacheOptions, queryRunner?: QueryRunner): Promise<QueryResultCacheOptions | undefined>;
|
|
41
|
+
/**
|
|
42
|
+
* Checks if cache is expired or not.
|
|
43
|
+
*/
|
|
44
|
+
isExpired(savedCache: QueryResultCacheOptions): boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Stores given query result in the cache.
|
|
47
|
+
*/
|
|
48
|
+
storeInCache(options: QueryResultCacheOptions, savedCache: QueryResultCacheOptions, queryRunner?: QueryRunner): Promise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* Clears everything stored in the cache.
|
|
51
|
+
*/
|
|
52
|
+
clear(queryRunner?: QueryRunner): Promise<void>;
|
|
53
|
+
/**
|
|
54
|
+
* Removes all cached results by given identifiers from cache.
|
|
55
|
+
*/
|
|
56
|
+
remove(identifiers: string[], queryRunner?: QueryRunner): Promise<void>;
|
|
57
|
+
/**
|
|
58
|
+
* Removes a single key from redis database.
|
|
59
|
+
*/
|
|
60
|
+
protected deleteKey(key: string): Promise<void>;
|
|
61
|
+
/**
|
|
62
|
+
* Loads redis dependency.
|
|
63
|
+
*/
|
|
64
|
+
protected loadRedis(): any;
|
|
65
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as yargs from "yargs";
|
|
2
|
+
/**
|
|
3
|
+
* Clear cache command.
|
|
4
|
+
*/
|
|
5
|
+
export declare class CacheClearCommand implements yargs.CommandModule {
|
|
6
|
+
command: string;
|
|
7
|
+
describe: string;
|
|
8
|
+
builder(args: yargs.Argv): yargs.Argv<{
|
|
9
|
+
dataSource: unknown;
|
|
10
|
+
}>;
|
|
11
|
+
handler(args: yargs.Arguments): Promise<void>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DataSource } from "../data-source";
|
|
2
|
+
/**
|
|
3
|
+
* Command line utils functions.
|
|
4
|
+
*/
|
|
5
|
+
export declare class CommandUtils {
|
|
6
|
+
static loadDataSource(dataSourceFilePath: string): Promise<DataSource>;
|
|
7
|
+
/**
|
|
8
|
+
* Creates directories recursively.
|
|
9
|
+
*/
|
|
10
|
+
static createDirectories(directory: string): any;
|
|
11
|
+
/**
|
|
12
|
+
* Creates a file with the given content in the given path.
|
|
13
|
+
*/
|
|
14
|
+
static createFile(filePath: string, content: string, override?: boolean): Promise<void>;
|
|
15
|
+
/**
|
|
16
|
+
* Reads everything from a given file and returns its content as a string.
|
|
17
|
+
*/
|
|
18
|
+
static readFile(filePath: string): Promise<string>;
|
|
19
|
+
static fileExists(filePath: string): Promise<boolean>;
|
|
20
|
+
/**
|
|
21
|
+
* Gets migration timestamp and validates argument (if sent)
|
|
22
|
+
*/
|
|
23
|
+
static getTimestamp(timestampOptionArgument: any): number;
|
|
24
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as yargs from "yargs";
|
|
2
|
+
/**
|
|
3
|
+
* Generates a new entity.
|
|
4
|
+
*/
|
|
5
|
+
export declare class EntityCreateCommand implements yargs.CommandModule {
|
|
6
|
+
command: string;
|
|
7
|
+
describe: string;
|
|
8
|
+
handler(args: yargs.Arguments): Promise<void>;
|
|
9
|
+
/**
|
|
10
|
+
* Gets contents of the entity file.
|
|
11
|
+
*/
|
|
12
|
+
protected static getTemplate(name: string): string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import * as yargs from "yargs";
|
|
2
|
+
/**
|
|
3
|
+
* Generates a new project with TypeORM.
|
|
4
|
+
*/
|
|
5
|
+
export declare class InitCommand implements yargs.CommandModule {
|
|
6
|
+
command: string;
|
|
7
|
+
describe: string;
|
|
8
|
+
builder(args: yargs.Argv): yargs.Argv<{
|
|
9
|
+
n: unknown;
|
|
10
|
+
} & {
|
|
11
|
+
db: unknown;
|
|
12
|
+
} & {
|
|
13
|
+
express: unknown;
|
|
14
|
+
} & {
|
|
15
|
+
docker: unknown;
|
|
16
|
+
} & {
|
|
17
|
+
pm: string;
|
|
18
|
+
} & {
|
|
19
|
+
ms: string;
|
|
20
|
+
}>;
|
|
21
|
+
handler(args: yargs.Arguments): Promise<void>;
|
|
22
|
+
protected static executeCommand(command: string, cwd: string): Promise<string>;
|
|
23
|
+
/**
|
|
24
|
+
* Gets contents of the ormconfig file.
|
|
25
|
+
*/
|
|
26
|
+
protected static getAppDataSourceTemplate(isEsm: boolean, database: string): string;
|
|
27
|
+
/**
|
|
28
|
+
* Gets contents of the ormconfig file.
|
|
29
|
+
*/
|
|
30
|
+
protected static getTsConfigTemplate(esmModule: boolean): string;
|
|
31
|
+
/**
|
|
32
|
+
* Gets contents of the .gitignore file.
|
|
33
|
+
*/
|
|
34
|
+
protected static getGitIgnoreFile(): string;
|
|
35
|
+
/**
|
|
36
|
+
* Gets contents of the user entity.
|
|
37
|
+
*/
|
|
38
|
+
protected static getUserEntityTemplate(database: string): string;
|
|
39
|
+
/**
|
|
40
|
+
* Gets contents of the route file (used when express is enabled).
|
|
41
|
+
*/
|
|
42
|
+
protected static getRoutesTemplate(isEsm: boolean): string;
|
|
43
|
+
/**
|
|
44
|
+
* Gets contents of the user controller file (used when express is enabled).
|
|
45
|
+
*/
|
|
46
|
+
protected static getControllerTemplate(isEsm: boolean): string;
|
|
47
|
+
/**
|
|
48
|
+
* Gets contents of the main (index) application file.
|
|
49
|
+
*/
|
|
50
|
+
protected static getAppIndexTemplate(express: boolean, isEsm: boolean): string;
|
|
51
|
+
/**
|
|
52
|
+
* Gets contents of the new package.json file.
|
|
53
|
+
*/
|
|
54
|
+
protected static getPackageJsonTemplate(projectName?: string, projectIsEsm?: boolean): string;
|
|
55
|
+
/**
|
|
56
|
+
* Gets contents of the new docker-compose.yml file.
|
|
57
|
+
*/
|
|
58
|
+
protected static getDockerComposeTemplate(database: string): string;
|
|
59
|
+
/**
|
|
60
|
+
* Gets contents of the new readme.md file.
|
|
61
|
+
*/
|
|
62
|
+
protected static getReadmeTemplate(options: {
|
|
63
|
+
docker: boolean;
|
|
64
|
+
}): string;
|
|
65
|
+
/**
|
|
66
|
+
* Appends to a given package.json template everything needed.
|
|
67
|
+
*/
|
|
68
|
+
protected static appendPackageJson(packageJsonContents: string, database: string, express: boolean, projectIsEsm: boolean): string;
|
|
69
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as yargs from "yargs";
|
|
2
|
+
/**
|
|
3
|
+
* Creates a new migration file.
|
|
4
|
+
*/
|
|
5
|
+
export declare class MigrationCreateCommand implements yargs.CommandModule {
|
|
6
|
+
command: string;
|
|
7
|
+
describe: string;
|
|
8
|
+
builder(args: yargs.Argv): yargs.Argv<{
|
|
9
|
+
o: boolean;
|
|
10
|
+
} & {
|
|
11
|
+
t: number | boolean;
|
|
12
|
+
}>;
|
|
13
|
+
handler(args: yargs.Arguments): Promise<void>;
|
|
14
|
+
/**
|
|
15
|
+
* Gets contents of the migration file.
|
|
16
|
+
*/
|
|
17
|
+
protected static getTemplate(name: string, timestamp: number): string;
|
|
18
|
+
/**
|
|
19
|
+
* Gets contents of the migration file in Javascript.
|
|
20
|
+
*/
|
|
21
|
+
protected static getJavascriptTemplate(name: string, timestamp: number): string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as yargs from "yargs";
|
|
2
|
+
/**
|
|
3
|
+
* Generates a new migration file with sql needs to be executed to update schema.
|
|
4
|
+
*/
|
|
5
|
+
export declare class MigrationGenerateCommand implements yargs.CommandModule {
|
|
6
|
+
command: string;
|
|
7
|
+
describe: string;
|
|
8
|
+
builder(args: yargs.Argv): yargs.Argv<{
|
|
9
|
+
dataSource: string;
|
|
10
|
+
} & {
|
|
11
|
+
p: boolean;
|
|
12
|
+
} & {
|
|
13
|
+
o: boolean;
|
|
14
|
+
} & {
|
|
15
|
+
dr: boolean;
|
|
16
|
+
} & {
|
|
17
|
+
ch: boolean;
|
|
18
|
+
} & {
|
|
19
|
+
t: number | boolean;
|
|
20
|
+
}>;
|
|
21
|
+
handler(args: yargs.Arguments): Promise<void>;
|
|
22
|
+
/**
|
|
23
|
+
* Formats query parameters for migration queries if parameters actually exist
|
|
24
|
+
*/
|
|
25
|
+
protected static queryParams(parameters: any[] | undefined): string;
|
|
26
|
+
/**
|
|
27
|
+
* Gets contents of the migration file.
|
|
28
|
+
*/
|
|
29
|
+
protected static getTemplate(name: string, timestamp: number, upSqls: string[], downSqls: string[]): string;
|
|
30
|
+
/**
|
|
31
|
+
* Gets contents of the migration file in Javascript.
|
|
32
|
+
*/
|
|
33
|
+
protected static getJavascriptTemplate(name: string, timestamp: number, upSqls: string[], downSqls: string[]): string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
protected static prettifyQuery(query: string): string;
|
|
38
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as yargs from "yargs";
|
|
2
|
+
/**
|
|
3
|
+
* Reverts last migration command.
|
|
4
|
+
*/
|
|
5
|
+
export declare class MigrationRevertCommand implements yargs.CommandModule {
|
|
6
|
+
command: string;
|
|
7
|
+
describe: string;
|
|
8
|
+
builder(args: yargs.Argv): yargs.Argv<{
|
|
9
|
+
dataSource: unknown;
|
|
10
|
+
} & {
|
|
11
|
+
transaction: string;
|
|
12
|
+
} & {
|
|
13
|
+
fake: boolean;
|
|
14
|
+
}>;
|
|
15
|
+
handler(args: yargs.Arguments): Promise<void>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as yargs from "yargs";
|
|
2
|
+
/**
|
|
3
|
+
* Runs migration command.
|
|
4
|
+
*/
|
|
5
|
+
export declare class MigrationRunCommand implements yargs.CommandModule {
|
|
6
|
+
command: string;
|
|
7
|
+
describe: string;
|
|
8
|
+
builder(args: yargs.Argv): yargs.Argv<{
|
|
9
|
+
dataSource: unknown;
|
|
10
|
+
} & {
|
|
11
|
+
transaction: string;
|
|
12
|
+
} & {
|
|
13
|
+
fake: boolean;
|
|
14
|
+
}>;
|
|
15
|
+
handler(args: yargs.Arguments): Promise<void>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as yargs from "yargs";
|
|
2
|
+
/**
|
|
3
|
+
* Shows all migrations and whether they have been run or not.
|
|
4
|
+
*/
|
|
5
|
+
export declare class MigrationShowCommand implements yargs.CommandModule {
|
|
6
|
+
command: string;
|
|
7
|
+
describe: string;
|
|
8
|
+
builder(args: yargs.Argv): yargs.Argv<{
|
|
9
|
+
dataSource: unknown;
|
|
10
|
+
}>;
|
|
11
|
+
handler(args: yargs.Arguments): Promise<void>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as yargs from "yargs";
|
|
2
|
+
/**
|
|
3
|
+
* Executes an SQL query on the given dataSource.
|
|
4
|
+
*/
|
|
5
|
+
export declare class QueryCommand implements yargs.CommandModule {
|
|
6
|
+
command: string;
|
|
7
|
+
describe: string;
|
|
8
|
+
builder(args: yargs.Argv): yargs.Argv<{
|
|
9
|
+
query: string;
|
|
10
|
+
} & {
|
|
11
|
+
dataSource: unknown;
|
|
12
|
+
}>;
|
|
13
|
+
handler(args: yargs.Arguments): Promise<void>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as yargs from "yargs";
|
|
2
|
+
/**
|
|
3
|
+
* Drops all tables of the database from the given dataSource.
|
|
4
|
+
*/
|
|
5
|
+
export declare class SchemaDropCommand implements yargs.CommandModule {
|
|
6
|
+
command: string;
|
|
7
|
+
describe: string;
|
|
8
|
+
builder(args: yargs.Argv): yargs.Argv<{
|
|
9
|
+
dataSource: unknown;
|
|
10
|
+
}>;
|
|
11
|
+
handler(args: yargs.Arguments): Promise<void>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as yargs from "yargs";
|
|
2
|
+
/**
|
|
3
|
+
* Shows sql to be executed by schema:sync command.
|
|
4
|
+
*/
|
|
5
|
+
export declare class SchemaLogCommand implements yargs.CommandModule {
|
|
6
|
+
command: string;
|
|
7
|
+
describe: string;
|
|
8
|
+
builder(args: yargs.Argv): yargs.Argv<{
|
|
9
|
+
dataSource: unknown;
|
|
10
|
+
}>;
|
|
11
|
+
handler(args: yargs.Arguments): Promise<void>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as yargs from "yargs";
|
|
2
|
+
/**
|
|
3
|
+
* Synchronizes database schema with entities.
|
|
4
|
+
*/
|
|
5
|
+
export declare class SchemaSyncCommand implements yargs.CommandModule {
|
|
6
|
+
command: string;
|
|
7
|
+
describe: string;
|
|
8
|
+
builder(args: yargs.Argv): yargs.Argv<{
|
|
9
|
+
dataSource: unknown;
|
|
10
|
+
}>;
|
|
11
|
+
handler(args: yargs.Arguments): Promise<void>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as yargs from "yargs";
|
|
2
|
+
/**
|
|
3
|
+
* Generates a new subscriber.
|
|
4
|
+
*/
|
|
5
|
+
export declare class SubscriberCreateCommand implements yargs.CommandModule {
|
|
6
|
+
command: string;
|
|
7
|
+
describe: string;
|
|
8
|
+
handler(args: yargs.Arguments): Promise<void>;
|
|
9
|
+
/**
|
|
10
|
+
* Gets contents of the entity file.
|
|
11
|
+
*/
|
|
12
|
+
protected static getTemplate(name: string): string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as yargs from "yargs";
|
|
2
|
+
/**
|
|
3
|
+
* Shows typeorm version.
|
|
4
|
+
*/
|
|
5
|
+
export declare class VersionCommand implements yargs.CommandModule {
|
|
6
|
+
command: string;
|
|
7
|
+
describe: string;
|
|
8
|
+
handler(): Promise<void>;
|
|
9
|
+
protected static executeCommand(command: string): Promise<string>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Same as Partial<T> but goes deeper and makes Partial<T> all its properties and sub-properties.
|
|
3
|
+
*/
|
|
4
|
+
export type DeepPartial<T> = T | (T extends Array<infer U> ? DeepPartial<U>[] : T extends Map<infer K, infer V> ? Map<DeepPartial<K>, DeepPartial<V>> : T extends Set<infer M> ? Set<DeepPartial<M>> : T extends object ? {
|
|
5
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
6
|
+
} : T);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wrapper type for relation type definitions in entities.
|
|
3
|
+
* Used to circumvent ESM modules circular dependency issue caused by reflection metadata saving the type of the property.
|
|
4
|
+
*
|
|
5
|
+
* Usage example:
|
|
6
|
+
* @Entity()
|
|
7
|
+
* export default class User {
|
|
8
|
+
*
|
|
9
|
+
* @OneToOne(() => Profile, profile => profile.user)
|
|
10
|
+
* profile: Relation<Profile>;
|
|
11
|
+
*
|
|
12
|
+
* }
|
|
13
|
+
*/
|
|
14
|
+
export type Relation<T> = T;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DataSource } from "../data-source/DataSource";
|
|
2
|
+
/**
|
|
3
|
+
* Connection is a single database ORM connection to a specific database.
|
|
4
|
+
* Its not required to be a database connection, depend on database type it can create connection pool.
|
|
5
|
+
* You can have multiple connections to multiple databases in your application.
|
|
6
|
+
*
|
|
7
|
+
* @deprecated
|
|
8
|
+
*/
|
|
9
|
+
export declare class Connection extends DataSource {
|
|
10
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DataSource } from "../data-source/DataSource";
|
|
2
|
+
import { DataSourceOptions } from "../data-source/DataSourceOptions";
|
|
3
|
+
/**
|
|
4
|
+
* ConnectionManager is used to store and manage multiple orm connections.
|
|
5
|
+
* It also provides useful factory methods to simplify connection creation.
|
|
6
|
+
*
|
|
7
|
+
* @deprecated
|
|
8
|
+
*/
|
|
9
|
+
export declare class ConnectionManager {
|
|
10
|
+
/**
|
|
11
|
+
* List of connections registered in this connection manager.
|
|
12
|
+
*/
|
|
13
|
+
get connections(): DataSource[];
|
|
14
|
+
/**
|
|
15
|
+
* Internal lookup to quickly get from a connection name to the Connection object.
|
|
16
|
+
*/
|
|
17
|
+
private readonly connectionMap;
|
|
18
|
+
/**
|
|
19
|
+
* Checks if connection with the given name exist in the manager.
|
|
20
|
+
*/
|
|
21
|
+
has(name: string): boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Gets registered connection with the given name.
|
|
24
|
+
* If connection name is not given then it will get a default connection.
|
|
25
|
+
* Throws error if connection with the given name was not found.
|
|
26
|
+
*/
|
|
27
|
+
get(name?: string): DataSource;
|
|
28
|
+
/**
|
|
29
|
+
* Creates a new connection based on the given connection options and registers it in the manager.
|
|
30
|
+
* Connection won't be established, you'll need to manually call connect method to establish connection.
|
|
31
|
+
*/
|
|
32
|
+
create(options: DataSourceOptions): DataSource;
|
|
33
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { MigrationInterface } from "../migration/MigrationInterface";
|
|
2
|
+
import { DataSource } from "../data-source/DataSource";
|
|
3
|
+
import { EntitySchema } from "../entity-schema/EntitySchema";
|
|
4
|
+
import { EntityMetadata } from "../metadata/EntityMetadata";
|
|
5
|
+
import { EntitySubscriberInterface } from "../subscriber/EntitySubscriberInterface";
|
|
6
|
+
/**
|
|
7
|
+
* Builds migration instances, subscriber instances and entity metadatas for the given classes.
|
|
8
|
+
*/
|
|
9
|
+
export declare class ConnectionMetadataBuilder {
|
|
10
|
+
protected connection: DataSource;
|
|
11
|
+
constructor(connection: DataSource);
|
|
12
|
+
/**
|
|
13
|
+
* Builds migration instances for the given classes or directories.
|
|
14
|
+
*/
|
|
15
|
+
buildMigrations(migrations: (Function | string)[]): Promise<MigrationInterface[]>;
|
|
16
|
+
/**
|
|
17
|
+
* Builds subscriber instances for the given classes or directories.
|
|
18
|
+
*/
|
|
19
|
+
buildSubscribers(subscribers: (Function | string)[]): Promise<EntitySubscriberInterface<any>[]>;
|
|
20
|
+
/**
|
|
21
|
+
* Builds entity metadatas for the given classes or directories.
|
|
22
|
+
*/
|
|
23
|
+
buildEntityMetadatas(entities: (Function | EntitySchema<any> | string)[]): Promise<EntityMetadata[]>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DataSourceOptions } from "../data-source/DataSourceOptions";
|
|
2
|
+
/**
|
|
3
|
+
* ConnectionOptions is an interface with settings and options for specific connection.
|
|
4
|
+
* Options contain database and other connection-related settings.
|
|
5
|
+
* Consumer must provide connection options for each of your connections.
|
|
6
|
+
*
|
|
7
|
+
* @deprecated use DataSourceOptions instead
|
|
8
|
+
*/
|
|
9
|
+
export type ConnectionOptions = DataSourceOptions;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { DataSourceOptions } from "../data-source/DataSourceOptions";
|
|
2
|
+
/**
|
|
3
|
+
* Reads connection options from the ormconfig.
|
|
4
|
+
* Can read from multiple file extensions including env, json, js, xml and yml.
|
|
5
|
+
*/
|
|
6
|
+
export declare class ConnectionOptionsReader {
|
|
7
|
+
protected options?: {
|
|
8
|
+
/**
|
|
9
|
+
* Directory where ormconfig should be read from.
|
|
10
|
+
* By default its your application root (where your app package.json is located).
|
|
11
|
+
*/
|
|
12
|
+
root?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Filename of the ormconfig configuration. By default its equal to "ormconfig".
|
|
15
|
+
*/
|
|
16
|
+
configName?: string;
|
|
17
|
+
};
|
|
18
|
+
constructor(options?: {
|
|
19
|
+
/**
|
|
20
|
+
* Directory where ormconfig should be read from.
|
|
21
|
+
* By default its your application root (where your app package.json is located).
|
|
22
|
+
*/
|
|
23
|
+
root?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Filename of the ormconfig configuration. By default its equal to "ormconfig".
|
|
26
|
+
*/
|
|
27
|
+
configName?: string;
|
|
28
|
+
});
|
|
29
|
+
/**
|
|
30
|
+
* Returns all connection options read from the ormconfig.
|
|
31
|
+
*/
|
|
32
|
+
all(): Promise<DataSourceOptions[]>;
|
|
33
|
+
/**
|
|
34
|
+
* Gets a connection with a given name read from ormconfig.
|
|
35
|
+
* If connection with such name would not be found then it throw error.
|
|
36
|
+
*/
|
|
37
|
+
get(name: string): Promise<DataSourceOptions>;
|
|
38
|
+
/**
|
|
39
|
+
* Checks if there is a TypeORM configuration file.
|
|
40
|
+
*/
|
|
41
|
+
has(name: string): Promise<boolean>;
|
|
42
|
+
/**
|
|
43
|
+
* Loads all connection options from a configuration file.
|
|
44
|
+
*
|
|
45
|
+
* todo: get in count NODE_ENV somehow
|
|
46
|
+
*/
|
|
47
|
+
protected load(): Promise<DataSourceOptions[] | undefined>;
|
|
48
|
+
/**
|
|
49
|
+
* Normalize connection options.
|
|
50
|
+
*/
|
|
51
|
+
protected normalizeConnectionOptions(connectionOptions: DataSourceOptions | DataSourceOptions[]): DataSourceOptions[];
|
|
52
|
+
/**
|
|
53
|
+
* Gets directory where configuration file should be located and configuration file name.
|
|
54
|
+
*/
|
|
55
|
+
protected get baseFilePath(): string;
|
|
56
|
+
/**
|
|
57
|
+
* Gets directory where configuration file should be located.
|
|
58
|
+
*/
|
|
59
|
+
protected get baseDirectory(): string;
|
|
60
|
+
/**
|
|
61
|
+
* Gets configuration file name.
|
|
62
|
+
*/
|
|
63
|
+
protected get baseConfigName(): string;
|
|
64
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { DataSourceOptions } from "../../data-source/DataSourceOptions";
|
|
2
|
+
/**
|
|
3
|
+
* Reads connection options from environment variables.
|
|
4
|
+
* Environment variables can have only a single connection.
|
|
5
|
+
* Its strongly required to define TYPEORM_CONNECTION env variable.
|
|
6
|
+
*
|
|
7
|
+
* @deprecated
|
|
8
|
+
*/
|
|
9
|
+
export declare class ConnectionOptionsEnvReader {
|
|
10
|
+
/**
|
|
11
|
+
* Reads connection options from environment variables.
|
|
12
|
+
*/
|
|
13
|
+
read(): Promise<DataSourceOptions[]>;
|
|
14
|
+
/**
|
|
15
|
+
* Transforms logging string into real logging value connection requires.
|
|
16
|
+
*/
|
|
17
|
+
protected transformLogging(logging: string): any;
|
|
18
|
+
/**
|
|
19
|
+
* Transforms caching option into real caching value option requires.
|
|
20
|
+
*/
|
|
21
|
+
protected transformCaching(): boolean | object | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Converts a string which contains multiple elements split by comma into a string array of strings.
|
|
24
|
+
*/
|
|
25
|
+
protected stringToArray(variable?: string): string[];
|
|
26
|
+
/**
|
|
27
|
+
* Converts a string which contains a number into a javascript number
|
|
28
|
+
*/
|
|
29
|
+
private stringToNumber;
|
|
30
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DataSourceOptions } from "../../data-source/DataSourceOptions";
|
|
2
|
+
/**
|
|
3
|
+
* Reads connection options defined in the xml file.
|
|
4
|
+
*
|
|
5
|
+
* @deprecated
|
|
6
|
+
*/
|
|
7
|
+
export declare class ConnectionOptionsXmlReader {
|
|
8
|
+
/**
|
|
9
|
+
* Reads connection options from given xml file.
|
|
10
|
+
*/
|
|
11
|
+
read(path: string): Promise<DataSourceOptions[]>;
|
|
12
|
+
/**
|
|
13
|
+
* Reads xml file contents and returns them in a promise.
|
|
14
|
+
*/
|
|
15
|
+
protected readXml(filePath: string): Promise<any>;
|
|
16
|
+
}
|