taon-typeorm 19.0.19 → 19.0.22

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.
Files changed (433) hide show
  1. package/browser/package.json +1 -1
  2. package/client/package.json +1 -1
  3. package/lib/build-info._auto-generated_.d.ts +1 -1
  4. package/lib/build-info._auto-generated_.js +1 -1
  5. package/lib/env/env.angular-node-app.d.ts +13 -0
  6. package/lib/env/env.angular-node-app.js +19 -0
  7. package/lib/env/env.angular-node-app.js.map +1 -0
  8. package/lib/env/env.electron-app.d.ts +13 -0
  9. package/lib/env/env.electron-app.js +19 -0
  10. package/lib/env/env.electron-app.js.map +1 -0
  11. package/lib/env/env.mobile-app.d.ts +13 -0
  12. package/lib/env/env.mobile-app.js +19 -0
  13. package/lib/env/env.mobile-app.js.map +1 -0
  14. package/lib/env/env.npm-lib-and-cli-tool.d.ts +13 -0
  15. package/lib/env/env.npm-lib-and-cli-tool.js +19 -0
  16. package/lib/env/env.npm-lib-and-cli-tool.js.map +1 -0
  17. package/lib/env/env.vscode-plugin.d.ts +13 -0
  18. package/lib/env/env.vscode-plugin.js +19 -0
  19. package/lib/env/env.vscode-plugin.js.map +1 -0
  20. package/lib/env/index.d.ts +5 -0
  21. package/lib/env/index.js +22 -0
  22. package/lib/env/index.js.map +1 -0
  23. package/package.json +1 -1
  24. package/tmp-environment.json +4 -8
  25. package/websql/package.json +1 -1
  26. package/client/README.md +0 -24
  27. package/client/fesm2022/taon-typeorm.mjs +0 -30436
  28. package/client/fesm2022/taon-typeorm.mjs.map +0 -1
  29. package/client/index.d.ts +0 -6
  30. package/client/lib/index.d.ts +0 -2
  31. package/client/lib/typeorm/cache/DbQueryResultCache.d.ts +0 -53
  32. package/client/lib/typeorm/cache/QueryResultCache.d.ts +0 -40
  33. package/client/lib/typeorm/cache/QueryResultCacheFactory.d.ts +0 -14
  34. package/client/lib/typeorm/cache/QueryResultCacheOptions.d.ts +0 -27
  35. package/client/lib/typeorm/cache/RedisQueryResultCache.d.ts +0 -66
  36. package/client/lib/typeorm/common/DeepPartial.d.ts +0 -7
  37. package/client/lib/typeorm/common/EntityTarget.d.ts +0 -10
  38. package/client/lib/typeorm/common/MixedList.d.ts +0 -9
  39. package/client/lib/typeorm/common/ObjectLiteral.d.ts +0 -7
  40. package/client/lib/typeorm/common/ObjectType.d.ts +0 -7
  41. package/client/lib/typeorm/common/RelationType.d.ts +0 -15
  42. package/client/lib/typeorm/connection/Connection.d.ts +0 -11
  43. package/client/lib/typeorm/connection/ConnectionManager.d.ts +0 -34
  44. package/client/lib/typeorm/connection/ConnectionMetadataBuilder.d.ts +0 -25
  45. package/client/lib/typeorm/connection/ConnectionOptions.d.ts +0 -10
  46. package/client/lib/typeorm/connection/ConnectionOptionsReader.d.ts +0 -65
  47. package/client/lib/typeorm/constants.d.ts +0 -2
  48. package/client/lib/typeorm/container.d.ts +0 -40
  49. package/client/lib/typeorm/data-source/BaseDataSourceOptions.d.ts +0 -172
  50. package/client/lib/typeorm/data-source/DataSource.d.ts +0 -247
  51. package/client/lib/typeorm/data-source/DataSourceOptions.d.ts +0 -9
  52. package/client/lib/typeorm/data-source/index.d.ts +0 -3
  53. package/client/lib/typeorm/decorator/Check.d.ts +0 -13
  54. package/client/lib/typeorm/decorator/EntityRepository.d.ts +0 -10
  55. package/client/lib/typeorm/decorator/Exclusion.d.ts +0 -13
  56. package/client/lib/typeorm/decorator/Generated.d.ts +0 -11
  57. package/client/lib/typeorm/decorator/Index.d.ts +0 -50
  58. package/client/lib/typeorm/decorator/Unique.d.ts +0 -22
  59. package/client/lib/typeorm/decorator/columns/Column.d.ts +0 -75
  60. package/client/lib/typeorm/decorator/columns/CreateDateColumn.d.ts +0 -8
  61. package/client/lib/typeorm/decorator/columns/DeleteDateColumn.d.ts +0 -7
  62. package/client/lib/typeorm/decorator/columns/ObjectIdColumn.d.ts +0 -7
  63. package/client/lib/typeorm/decorator/columns/PrimaryColumn.d.ts +0 -22
  64. package/client/lib/typeorm/decorator/columns/PrimaryGeneratedColumn.d.ts +0 -25
  65. package/client/lib/typeorm/decorator/columns/UpdateDateColumn.d.ts +0 -7
  66. package/client/lib/typeorm/decorator/columns/VersionColumn.d.ts +0 -8
  67. package/client/lib/typeorm/decorator/columns/ViewColumn.d.ts +0 -6
  68. package/client/lib/typeorm/decorator/columns/VirtualColumn.d.ts +0 -11
  69. package/client/lib/typeorm/decorator/entity/ChildEntity.d.ts +0 -5
  70. package/client/lib/typeorm/decorator/entity/Entity.d.ts +0 -12
  71. package/client/lib/typeorm/decorator/entity/TableInheritance.d.ts +0 -9
  72. package/client/lib/typeorm/decorator/entity-view/ViewEntity.d.ts +0 -12
  73. package/client/lib/typeorm/decorator/listeners/AfterInsert.d.ts +0 -5
  74. package/client/lib/typeorm/decorator/listeners/AfterLoad.d.ts +0 -5
  75. package/client/lib/typeorm/decorator/listeners/AfterRecover.d.ts +0 -5
  76. package/client/lib/typeorm/decorator/listeners/AfterRemove.d.ts +0 -5
  77. package/client/lib/typeorm/decorator/listeners/AfterSoftRemove.d.ts +0 -5
  78. package/client/lib/typeorm/decorator/listeners/AfterUpdate.d.ts +0 -5
  79. package/client/lib/typeorm/decorator/listeners/BeforeInsert.d.ts +0 -5
  80. package/client/lib/typeorm/decorator/listeners/BeforeRecover.d.ts +0 -5
  81. package/client/lib/typeorm/decorator/listeners/BeforeRemove.d.ts +0 -5
  82. package/client/lib/typeorm/decorator/listeners/BeforeSoftRemove.d.ts +0 -5
  83. package/client/lib/typeorm/decorator/listeners/BeforeUpdate.d.ts +0 -5
  84. package/client/lib/typeorm/decorator/listeners/EventSubscriber.d.ts +0 -6
  85. package/client/lib/typeorm/decorator/options/ColumnCommonOptions.d.ts +0 -58
  86. package/client/lib/typeorm/decorator/options/ColumnEmbeddedOptions.d.ts +0 -17
  87. package/client/lib/typeorm/decorator/options/ColumnEnumOptions.d.ts +0 -14
  88. package/client/lib/typeorm/decorator/options/ColumnHstoreOptions.d.ts +0 -11
  89. package/client/lib/typeorm/decorator/options/ColumnNumericOptions.d.ts +0 -25
  90. package/client/lib/typeorm/decorator/options/ColumnOptions.d.ts +0 -159
  91. package/client/lib/typeorm/decorator/options/ColumnWithLengthOptions.d.ts +0 -11
  92. package/client/lib/typeorm/decorator/options/ColumnWithWidthOptions.d.ts +0 -20
  93. package/client/lib/typeorm/decorator/options/EntityOptions.d.ts +0 -43
  94. package/client/lib/typeorm/decorator/options/IndexOptions.d.ts +0 -53
  95. package/client/lib/typeorm/decorator/options/JoinColumnOptions.d.ts +0 -18
  96. package/client/lib/typeorm/decorator/options/JoinTableMultipleColumnsOptions.d.ts +0 -30
  97. package/client/lib/typeorm/decorator/options/JoinTableOptions.d.ts +0 -30
  98. package/client/lib/typeorm/decorator/options/PrimaryGeneratedColumnIdentityOptions.d.ts +0 -27
  99. package/client/lib/typeorm/decorator/options/PrimaryGeneratedColumnNumericOptions.d.ts +0 -32
  100. package/client/lib/typeorm/decorator/options/PrimaryGeneratedColumnUUIDOptions.d.ts +0 -18
  101. package/client/lib/typeorm/decorator/options/RelationOptions.d.ts +0 -65
  102. package/client/lib/typeorm/decorator/options/SpatialColumnOptions.d.ts +0 -16
  103. package/client/lib/typeorm/decorator/options/UniqueOptions.d.ts +0 -11
  104. package/client/lib/typeorm/decorator/options/ValueTransformer.d.ts +0 -14
  105. package/client/lib/typeorm/decorator/options/ViewColumnOptions.d.ts +0 -16
  106. package/client/lib/typeorm/decorator/options/ViewEntityOptions.d.ts +0 -40
  107. package/client/lib/typeorm/decorator/options/VirtualColumnOptions.d.ts +0 -28
  108. package/client/lib/typeorm/decorator/relations/JoinColumn.d.ts +0 -20
  109. package/client/lib/typeorm/decorator/relations/JoinTable.d.ts +0 -18
  110. package/client/lib/typeorm/decorator/relations/ManyToMany.d.ts +0 -15
  111. package/client/lib/typeorm/decorator/relations/ManyToOne.d.ts +0 -15
  112. package/client/lib/typeorm/decorator/relations/OneToMany.d.ts +0 -9
  113. package/client/lib/typeorm/decorator/relations/OneToOne.d.ts +0 -13
  114. package/client/lib/typeorm/decorator/relations/RelationCount.d.ts +0 -8
  115. package/client/lib/typeorm/decorator/relations/RelationId.d.ts +0 -8
  116. package/client/lib/typeorm/decorator/tree/Tree.d.ts +0 -10
  117. package/client/lib/typeorm/decorator/tree/TreeChildren.d.ts +0 -8
  118. package/client/lib/typeorm/decorator/tree/TreeLevelColumn.d.ts +0 -5
  119. package/client/lib/typeorm/decorator/tree/TreeParent.d.ts +0 -9
  120. package/client/lib/typeorm/driver/Driver.d.ts +0 -208
  121. package/client/lib/typeorm/driver/DriverFactory.d.ts +0 -12
  122. package/client/lib/typeorm/driver/DriverUtils.d.ts +0 -62
  123. package/client/lib/typeorm/driver/Query.d.ts +0 -10
  124. package/client/lib/typeorm/driver/SqlInMemory.d.ts +0 -9
  125. package/client/lib/typeorm/driver/cordova/CordovaConnectionOptions.d.ts +0 -25
  126. package/client/lib/typeorm/driver/cordova/CordovaDriver.d.ts +0 -26
  127. package/client/lib/typeorm/driver/cordova/CordovaQueryRunner.d.ts +0 -81
  128. package/client/lib/typeorm/driver/mongodb/typings.d.ts +0 -46
  129. package/client/lib/typeorm/driver/nativescript/NativescriptConnectionOptions.d.ts +0 -46
  130. package/client/lib/typeorm/driver/nativescript/NativescriptDriver.d.ts +0 -45
  131. package/client/lib/typeorm/driver/nativescript/NativescriptQueryRunner.d.ts +0 -30
  132. package/client/lib/typeorm/driver/react-native/ReactNativeConnectionOptions.d.ts +0 -25
  133. package/client/lib/typeorm/driver/react-native/ReactNativeDriver.d.ts +0 -26
  134. package/client/lib/typeorm/driver/react-native/ReactNativeQueryRunner.d.ts +0 -30
  135. package/client/lib/typeorm/driver/sqlite-abstract/AbstractSqliteDriver.d.ts +0 -238
  136. package/client/lib/typeorm/driver/sqlite-abstract/AbstractSqliteQueryRunner.d.ts +0 -301
  137. package/client/lib/typeorm/driver/sqljs/SqljsConnectionOptions.d.ts +0 -47
  138. package/client/lib/typeorm/driver/sqljs/SqljsDriver.d.ts +0 -68
  139. package/client/lib/typeorm/driver/sqljs/SqljsQueryRunner.d.ts +0 -36
  140. package/client/lib/typeorm/driver/types/ColumnTypes.d.ts +0 -26
  141. package/client/lib/typeorm/driver/types/CteCapabilities.d.ts +0 -19
  142. package/client/lib/typeorm/driver/types/DataTypeDefaults.d.ts +0 -9
  143. package/client/lib/typeorm/driver/types/DatabaseType.d.ts +0 -5
  144. package/client/lib/typeorm/driver/types/IsolationLevel.d.ts +0 -2
  145. package/client/lib/typeorm/driver/types/MappedColumnTypes.d.ts +0 -113
  146. package/client/lib/typeorm/driver/types/MetadataTableType.d.ts +0 -6
  147. package/client/lib/typeorm/driver/types/ReplicationMode.d.ts +0 -2
  148. package/client/lib/typeorm/driver/types/UpsertType.d.ts +0 -2
  149. package/client/lib/typeorm/entity-manager/EntityManager.d.ts +0 -353
  150. package/client/lib/typeorm/entity-manager/EntityManagerFactory.d.ts +0 -13
  151. package/client/lib/typeorm/entity-manager/SqljsEntityManager.d.ts +0 -27
  152. package/client/lib/typeorm/entity-schema/EntitySchema.d.ts +0 -10
  153. package/client/lib/typeorm/entity-schema/EntitySchemaCheckOptions.d.ts +0 -11
  154. package/client/lib/typeorm/entity-schema/EntitySchemaColumnOptions.d.ts +0 -175
  155. package/client/lib/typeorm/entity-schema/EntitySchemaEmbeddedColumnOptions.d.ts +0 -19
  156. package/client/lib/typeorm/entity-schema/EntitySchemaEmbeddedError.d.ts +0 -7
  157. package/client/lib/typeorm/entity-schema/EntitySchemaExclusionOptions.d.ts +0 -11
  158. package/client/lib/typeorm/entity-schema/EntitySchemaIndexOptions.d.ts +0 -54
  159. package/client/lib/typeorm/entity-schema/EntitySchemaOptions.d.ts +0 -104
  160. package/client/lib/typeorm/entity-schema/EntitySchemaRelationIdOptions.d.ts +0 -16
  161. package/client/lib/typeorm/entity-schema/EntitySchemaRelationOptions.d.ts +0 -96
  162. package/client/lib/typeorm/entity-schema/EntitySchemaTransformer.d.ts +0 -14
  163. package/client/lib/typeorm/entity-schema/EntitySchemaUniqueOptions.d.ts +0 -18
  164. package/client/lib/typeorm/error/AlreadyHasActiveConnectionError.d.ts +0 -8
  165. package/client/lib/typeorm/error/CannotAttachTreeChildrenEntityError.d.ts +0 -8
  166. package/client/lib/typeorm/error/CannotConnectAlreadyConnectedError.d.ts +0 -8
  167. package/client/lib/typeorm/error/CannotCreateEntityIdMapError.d.ts +0 -10
  168. package/client/lib/typeorm/error/CannotDetermineEntityError.d.ts +0 -8
  169. package/client/lib/typeorm/error/CannotExecuteNotConnectedError.d.ts +0 -8
  170. package/client/lib/typeorm/error/CannotGetEntityManagerNotConnectedError.d.ts +0 -8
  171. package/client/lib/typeorm/error/CannotReflectMethodParameterTypeError.d.ts +0 -9
  172. package/client/lib/typeorm/error/CircularRelationsError.d.ts +0 -8
  173. package/client/lib/typeorm/error/ColumnTypeUndefinedError.d.ts +0 -9
  174. package/client/lib/typeorm/error/ConnectionIsNotSetError.d.ts +0 -8
  175. package/client/lib/typeorm/error/ConnectionNotFoundError.d.ts +0 -8
  176. package/client/lib/typeorm/error/CustomRepositoryCannotInheritRepositoryError.d.ts +0 -8
  177. package/client/lib/typeorm/error/CustomRepositoryDoesNotHaveEntityError.d.ts +0 -8
  178. package/client/lib/typeorm/error/CustomRepositoryNotFoundError.d.ts +0 -8
  179. package/client/lib/typeorm/error/DataTypeNotSupportedError.d.ts +0 -8
  180. package/client/lib/typeorm/error/DriverOptionNotSetError.d.ts +0 -8
  181. package/client/lib/typeorm/error/DriverPackageNotInstalledError.d.ts +0 -8
  182. package/client/lib/typeorm/error/EntityMetadataNotFoundError.d.ts +0 -7
  183. package/client/lib/typeorm/error/EntityNotFoundError.d.ts +0 -11
  184. package/client/lib/typeorm/error/EntityPropertyNotFoundError.d.ts +0 -9
  185. package/client/lib/typeorm/error/FindRelationsNotFoundError.d.ts +0 -8
  186. package/client/lib/typeorm/error/InitializedRelationError.d.ts +0 -12
  187. package/client/lib/typeorm/error/InsertValuesMissingError.d.ts +0 -8
  188. package/client/lib/typeorm/error/LimitOnUpdateNotSupportedError.d.ts +0 -8
  189. package/client/lib/typeorm/error/LockNotSupportedOnGivenDriverError.d.ts +0 -8
  190. package/client/lib/typeorm/error/MetadataAlreadyExistsError.d.ts +0 -5
  191. package/client/lib/typeorm/error/MetadataWithSuchNameAlreadyExistsError.d.ts +0 -5
  192. package/client/lib/typeorm/error/MissingDeleteDateColumnError.d.ts +0 -6
  193. package/client/lib/typeorm/error/MissingDriverError.d.ts +0 -8
  194. package/client/lib/typeorm/error/MissingJoinColumnError.d.ts +0 -7
  195. package/client/lib/typeorm/error/MissingJoinTableError.d.ts +0 -7
  196. package/client/lib/typeorm/error/MissingPrimaryColumnError.d.ts +0 -6
  197. package/client/lib/typeorm/error/MustBeEntityError.d.ts +0 -8
  198. package/client/lib/typeorm/error/NamingStrategyNotFoundError.d.ts +0 -8
  199. package/client/lib/typeorm/error/NestedSetMultipleRootError.d.ts +0 -5
  200. package/client/lib/typeorm/error/NoConnectionForRepositoryError.d.ts +0 -8
  201. package/client/lib/typeorm/error/NoConnectionOptionError.d.ts +0 -8
  202. package/client/lib/typeorm/error/NoNeedToReleaseEntityManagerError.d.ts +0 -8
  203. package/client/lib/typeorm/error/NoVersionOrUpdateDateColumnError.d.ts +0 -8
  204. package/client/lib/typeorm/error/OffsetWithoutLimitNotSupportedError.d.ts +0 -8
  205. package/client/lib/typeorm/error/OptimisticLockCanNotBeUsedError.d.ts +0 -8
  206. package/client/lib/typeorm/error/OptimisticLockVersionMismatchError.d.ts +0 -8
  207. package/client/lib/typeorm/error/PersistedEntityNotFoundError.d.ts +0 -8
  208. package/client/lib/typeorm/error/PessimisticLockTransactionRequiredError.d.ts +0 -8
  209. package/client/lib/typeorm/error/PrimaryColumnCannotBeNullableError.d.ts +0 -5
  210. package/client/lib/typeorm/error/QueryFailedError.d.ts +0 -11
  211. package/client/lib/typeorm/error/QueryRunnerAlreadyReleasedError.d.ts +0 -5
  212. package/client/lib/typeorm/error/QueryRunnerProviderAlreadyReleasedError.d.ts +0 -8
  213. package/client/lib/typeorm/error/RepositoryNotTreeError.d.ts +0 -9
  214. package/client/lib/typeorm/error/ReturningStatementNotSupportedError.d.ts +0 -9
  215. package/client/lib/typeorm/error/SubjectRemovedAndUpdatedError.d.ts +0 -9
  216. package/client/lib/typeorm/error/SubjectWithoutIdentifierError.d.ts +0 -11
  217. package/client/lib/typeorm/error/TransactionAlreadyStartedError.d.ts +0 -8
  218. package/client/lib/typeorm/error/TransactionNotStartedError.d.ts +0 -8
  219. package/client/lib/typeorm/error/TreeRepositoryNotSupportedError.d.ts +0 -6
  220. package/client/lib/typeorm/error/TypeORMError.d.ts +0 -5
  221. package/client/lib/typeorm/error/UpdateValuesMissingError.d.ts +0 -5
  222. package/client/lib/typeorm/error/UsingJoinColumnIsNotAllowedError.d.ts +0 -7
  223. package/client/lib/typeorm/error/UsingJoinColumnOnlyOnOneSideAllowedError.d.ts +0 -7
  224. package/client/lib/typeorm/error/UsingJoinTableIsNotAllowedError.d.ts +0 -7
  225. package/client/lib/typeorm/error/UsingJoinTableOnlyOnOneSideAllowedError.d.ts +0 -7
  226. package/client/lib/typeorm/error/index.d.ts +0 -62
  227. package/client/lib/typeorm/find-options/EqualOperator.d.ts +0 -6
  228. package/client/lib/typeorm/find-options/FindManyOptions.d.ts +0 -15
  229. package/client/lib/typeorm/find-options/FindOneOptions.d.ts +0 -89
  230. package/client/lib/typeorm/find-options/FindOperator.d.ts +0 -66
  231. package/client/lib/typeorm/find-options/FindOperatorType.d.ts +0 -5
  232. package/client/lib/typeorm/find-options/FindOptionsOrder.d.ts +0 -19
  233. package/client/lib/typeorm/find-options/FindOptionsRelations.d.ts +0 -19
  234. package/client/lib/typeorm/find-options/FindOptionsSelect.d.ts +0 -18
  235. package/client/lib/typeorm/find-options/FindOptionsUtils.d.ts +0 -191
  236. package/client/lib/typeorm/find-options/FindOptionsWhere.d.ts +0 -14
  237. package/client/lib/typeorm/find-options/FindTreeOptions.d.ts +0 -14
  238. package/client/lib/typeorm/find-options/JoinOptions.d.ts +0 -77
  239. package/client/lib/typeorm/find-options/OrderByCondition.d.ts +0 -18
  240. package/client/lib/typeorm/find-options/operator/Any.d.ts +0 -7
  241. package/client/lib/typeorm/find-options/operator/ArrayContainedBy.d.ts +0 -7
  242. package/client/lib/typeorm/find-options/operator/ArrayContains.d.ts +0 -7
  243. package/client/lib/typeorm/find-options/operator/ArrayOverlap.d.ts +0 -7
  244. package/client/lib/typeorm/find-options/operator/Between.d.ts +0 -7
  245. package/client/lib/typeorm/find-options/operator/Equal.d.ts +0 -12
  246. package/client/lib/typeorm/find-options/operator/ILike.d.ts +0 -7
  247. package/client/lib/typeorm/find-options/operator/In.d.ts +0 -7
  248. package/client/lib/typeorm/find-options/operator/IsNull.d.ts +0 -7
  249. package/client/lib/typeorm/find-options/operator/LessThan.d.ts +0 -7
  250. package/client/lib/typeorm/find-options/operator/LessThanOrEqual.d.ts +0 -7
  251. package/client/lib/typeorm/find-options/operator/Like.d.ts +0 -7
  252. package/client/lib/typeorm/find-options/operator/MoreThan.d.ts +0 -7
  253. package/client/lib/typeorm/find-options/operator/MoreThanOrEqual.d.ts +0 -7
  254. package/client/lib/typeorm/find-options/operator/Not.d.ts +0 -8
  255. package/client/lib/typeorm/find-options/operator/Raw.d.ts +0 -19
  256. package/client/lib/typeorm/globals.d.ts +0 -104
  257. package/client/lib/typeorm/index.d.ts +0 -168
  258. package/client/lib/typeorm/logger/AdvancedConsoleLogger.d.ts +0 -42
  259. package/client/lib/typeorm/logger/DebugLogger.d.ts +0 -41
  260. package/client/lib/typeorm/logger/Logger.d.ts +0 -32
  261. package/client/lib/typeorm/logger/LoggerFactory.d.ts +0 -12
  262. package/client/lib/typeorm/logger/LoggerOptions.d.ts +0 -14
  263. package/client/lib/typeorm/logger/SimpleConsoleLogger.d.ts +0 -42
  264. package/client/lib/typeorm/metadata/CheckMetadata.d.ts +0 -40
  265. package/client/lib/typeorm/metadata/ColumnMetadata.d.ts +0 -316
  266. package/client/lib/typeorm/metadata/EmbeddedMetadata.d.ts +0 -166
  267. package/client/lib/typeorm/metadata/EntityListenerMetadata.d.ts +0 -49
  268. package/client/lib/typeorm/metadata/EntityMetadata.d.ts +0 -562
  269. package/client/lib/typeorm/metadata/ExclusionMetadata.d.ts +0 -40
  270. package/client/lib/typeorm/metadata/ForeignKeyMetadata.d.ts +0 -78
  271. package/client/lib/typeorm/metadata/IndexMetadata.d.ts +0 -112
  272. package/client/lib/typeorm/metadata/RelationCountMetadata.d.ts +0 -47
  273. package/client/lib/typeorm/metadata/RelationIdMetadata.d.ts +0 -54
  274. package/client/lib/typeorm/metadata/RelationMetadata.d.ts +0 -291
  275. package/client/lib/typeorm/metadata/UniqueMetadata.d.ts +0 -66
  276. package/client/lib/typeorm/metadata/types/ClosureTreeOptions.d.ts +0 -11
  277. package/client/lib/typeorm/metadata/types/DeferrableType.d.ts +0 -5
  278. package/client/lib/typeorm/metadata/types/EventListenerTypes.d.ts +0 -21
  279. package/client/lib/typeorm/metadata/types/OnDeleteType.d.ts +0 -5
  280. package/client/lib/typeorm/metadata/types/OnUpdateType.d.ts +0 -5
  281. package/client/lib/typeorm/metadata/types/PropertyTypeInFunction.d.ts +0 -5
  282. package/client/lib/typeorm/metadata/types/RelationTypeInFunction.d.ts +0 -6
  283. package/client/lib/typeorm/metadata/types/RelationTypes.d.ts +0 -5
  284. package/client/lib/typeorm/metadata/types/TableTypes.d.ts +0 -5
  285. package/client/lib/typeorm/metadata/types/TreeTypes.d.ts +0 -6
  286. package/client/lib/typeorm/metadata-args/CheckMetadataArgs.d.ts +0 -18
  287. package/client/lib/typeorm/metadata-args/ColumnMetadataArgs.d.ts +0 -26
  288. package/client/lib/typeorm/metadata-args/DiscriminatorValueMetadataArgs.d.ts +0 -14
  289. package/client/lib/typeorm/metadata-args/EmbeddedMetadataArgs.d.ts +0 -27
  290. package/client/lib/typeorm/metadata-args/EntityListenerMetadataArgs.d.ts +0 -19
  291. package/client/lib/typeorm/metadata-args/EntityRepositoryMetadataArgs.d.ts +0 -15
  292. package/client/lib/typeorm/metadata-args/EntitySubscriberMetadataArgs.d.ts +0 -10
  293. package/client/lib/typeorm/metadata-args/ExclusionMetadataArgs.d.ts +0 -18
  294. package/client/lib/typeorm/metadata-args/GeneratedMetadataArgs.d.ts +0 -18
  295. package/client/lib/typeorm/metadata-args/IndexMetadataArgs.d.ts +0 -71
  296. package/client/lib/typeorm/metadata-args/InheritanceMetadataArgs.d.ts +0 -19
  297. package/client/lib/typeorm/metadata-args/JoinColumnMetadataArgs.d.ts +0 -27
  298. package/client/lib/typeorm/metadata-args/JoinTableMetadataArgs.d.ts +0 -38
  299. package/client/lib/typeorm/metadata-args/MetadataArgsStorage.d.ts +0 -109
  300. package/client/lib/typeorm/metadata-args/NamingStrategyMetadataArgs.d.ts +0 -14
  301. package/client/lib/typeorm/metadata-args/RelationCountMetadataArgs.d.ts +0 -27
  302. package/client/lib/typeorm/metadata-args/RelationIdMetadataArgs.d.ts +0 -27
  303. package/client/lib/typeorm/metadata-args/RelationMetadataArgs.d.ts +0 -56
  304. package/client/lib/typeorm/metadata-args/TableMetadataArgs.d.ts +0 -62
  305. package/client/lib/typeorm/metadata-args/TransactionEntityMetadataArgs.d.ts +0 -18
  306. package/client/lib/typeorm/metadata-args/TransactionRepositoryMetadataArgs.d.ts +0 -26
  307. package/client/lib/typeorm/metadata-args/TreeMetadataArgs.d.ts +0 -20
  308. package/client/lib/typeorm/metadata-args/UniqueMetadataArgs.d.ts +0 -25
  309. package/client/lib/typeorm/metadata-args/types/ColumnMode.d.ts +0 -8
  310. package/client/lib/typeorm/metadata-builder/ClosureJunctionEntityMetadataBuilder.d.ts +0 -15
  311. package/client/lib/typeorm/metadata-builder/EntityMetadataBuilder.d.ts +0 -58
  312. package/client/lib/typeorm/metadata-builder/EntityMetadataValidator.d.ts +0 -24
  313. package/client/lib/typeorm/metadata-builder/JunctionEntityMetadataBuilder.d.ts +0 -27
  314. package/client/lib/typeorm/metadata-builder/MetadataUtils.d.ts +0 -24
  315. package/client/lib/typeorm/metadata-builder/RelationJoinColumnBuilder.d.ts +0 -57
  316. package/client/lib/typeorm/migration/Migration.d.ts +0 -25
  317. package/client/lib/typeorm/migration/MigrationExecutor.d.ts +0 -100
  318. package/client/lib/typeorm/migration/MigrationInterface.d.ts +0 -19
  319. package/client/lib/typeorm/naming-strategy/DefaultNamingStrategy.d.ts +0 -50
  320. package/client/lib/typeorm/naming-strategy/NamingStrategyInterface.d.ts +0 -117
  321. package/client/lib/typeorm/persistence/EntityPersistExecutor.d.ts +0 -22
  322. package/client/lib/typeorm/persistence/Subject.d.ts +0 -156
  323. package/client/lib/typeorm/persistence/SubjectChangeMap.d.ts +0 -24
  324. package/client/lib/typeorm/persistence/SubjectChangedColumnsComputer.d.ts +0 -19
  325. package/client/lib/typeorm/persistence/SubjectDatabaseEntityLoader.d.ts +0 -36
  326. package/client/lib/typeorm/persistence/SubjectExecutor.d.ts +0 -119
  327. package/client/lib/typeorm/persistence/SubjectTopoligicalSorter.d.ts +0 -46
  328. package/client/lib/typeorm/persistence/subject-builder/CascadesSubjectBuilder.d.ts +0 -20
  329. package/client/lib/typeorm/persistence/subject-builder/ManyToManySubjectBuilder.d.ts +0 -35
  330. package/client/lib/typeorm/persistence/subject-builder/OneToManySubjectBuilder.d.ts +0 -28
  331. package/client/lib/typeorm/persistence/subject-builder/OneToOneInverseSideSubjectBuilder.d.ts +0 -28
  332. package/client/lib/typeorm/persistence/tree/ClosureSubjectExecutor.d.ts +0 -27
  333. package/client/lib/typeorm/persistence/tree/MaterializedPathSubjectExecutor.d.ts +0 -19
  334. package/client/lib/typeorm/persistence/tree/NestedSetSubjectExecutor.d.ts +0 -39
  335. package/client/lib/typeorm/platform/PlatformTools.d.ts +0 -65
  336. package/client/lib/typeorm/query-builder/Alias.d.ts +0 -23
  337. package/client/lib/typeorm/query-builder/Brackets.d.ts +0 -17
  338. package/client/lib/typeorm/query-builder/DeleteQueryBuilder.d.ts +0 -92
  339. package/client/lib/typeorm/query-builder/InsertOrUpdateOptions.d.ts +0 -4
  340. package/client/lib/typeorm/query-builder/InsertQueryBuilder.d.ts +0 -118
  341. package/client/lib/typeorm/query-builder/JoinAttribute.d.ts +0 -84
  342. package/client/lib/typeorm/query-builder/NotBrackets.d.ts +0 -9
  343. package/client/lib/typeorm/query-builder/QueryBuilder.d.ts +0 -268
  344. package/client/lib/typeorm/query-builder/QueryBuilderCte.d.ts +0 -18
  345. package/client/lib/typeorm/query-builder/QueryBuilderUtils.d.ts +0 -11
  346. package/client/lib/typeorm/query-builder/QueryExpressionMap.d.ts +0 -306
  347. package/client/lib/typeorm/query-builder/QueryPartialEntity.d.ts +0 -16
  348. package/client/lib/typeorm/query-builder/RelationIdLoader.d.ts +0 -71
  349. package/client/lib/typeorm/query-builder/RelationLoader.d.ts +0 -60
  350. package/client/lib/typeorm/query-builder/RelationQueryBuilder.d.ts +0 -70
  351. package/client/lib/typeorm/query-builder/RelationRemover.d.ts +0 -17
  352. package/client/lib/typeorm/query-builder/RelationUpdater.d.ts +0 -17
  353. package/client/lib/typeorm/query-builder/ReturningResultsEntityUpdator.d.ts +0 -31
  354. package/client/lib/typeorm/query-builder/SelectQuery.d.ts +0 -6
  355. package/client/lib/typeorm/query-builder/SelectQueryBuilder.d.ts +0 -665
  356. package/client/lib/typeorm/query-builder/SelectQueryBuilderOption.d.ts +0 -2
  357. package/client/lib/typeorm/query-builder/SoftDeleteQueryBuilder.d.ts +0 -139
  358. package/client/lib/typeorm/query-builder/UpdateQueryBuilder.d.ts +0 -144
  359. package/client/lib/typeorm/query-builder/WhereClause.d.ts +0 -17
  360. package/client/lib/typeorm/query-builder/WhereExpressionBuilder.d.ts +0 -127
  361. package/client/lib/typeorm/query-builder/relation-count/RelationCountAttribute.d.ts +0 -54
  362. package/client/lib/typeorm/query-builder/relation-count/RelationCountLoadResult.d.ts +0 -9
  363. package/client/lib/typeorm/query-builder/relation-count/RelationCountLoader.d.ts +0 -12
  364. package/client/lib/typeorm/query-builder/relation-count/RelationCountMetadataToAttributeTransformer.d.ts +0 -8
  365. package/client/lib/typeorm/query-builder/relation-id/RelationIdAttribute.d.ts +0 -65
  366. package/client/lib/typeorm/query-builder/relation-id/RelationIdLoadResult.d.ts +0 -6
  367. package/client/lib/typeorm/query-builder/relation-id/RelationIdLoader.d.ts +0 -12
  368. package/client/lib/typeorm/query-builder/relation-id/RelationIdMetadataToAttributeTransformer.d.ts +0 -8
  369. package/client/lib/typeorm/query-builder/result/DeleteResult.d.ts +0 -17
  370. package/client/lib/typeorm/query-builder/result/InsertResult.d.ts +0 -23
  371. package/client/lib/typeorm/query-builder/result/UpdateResult.d.ts +0 -27
  372. package/client/lib/typeorm/query-builder/transformer/PlainObjectToDatabaseEntityTransformer.d.ts +0 -13
  373. package/client/lib/typeorm/query-builder/transformer/PlainObjectToNewEntityTransformer.d.ts +0 -15
  374. package/client/lib/typeorm/query-builder/transformer/RawSqlResultsToEntityTransformer.d.ts +0 -56
  375. package/client/lib/typeorm/query-runner/BaseQueryRunner.d.ts +0 -204
  376. package/client/lib/typeorm/query-runner/QueryResult.d.ts +0 -18
  377. package/client/lib/typeorm/query-runner/QueryRunner.d.ts +0 -359
  378. package/client/lib/typeorm/relation-path.d.ts +0 -7
  379. package/client/lib/typeorm/repository/AbstractRepository.d.ts +0 -52
  380. package/client/lib/typeorm/repository/BaseEntity.d.ts +0 -298
  381. package/client/lib/typeorm/repository/FindTreesOptions.d.ts +0 -10
  382. package/client/lib/typeorm/repository/RemoveOptions.d.ts +0 -28
  383. package/client/lib/typeorm/repository/Repository.d.ts +0 -292
  384. package/client/lib/typeorm/repository/SaveOptions.d.ts +0 -36
  385. package/client/lib/typeorm/repository/TreeRepository.d.ts +0 -56
  386. package/client/lib/typeorm/repository/UpsertOptions.d.ts +0 -11
  387. package/client/lib/typeorm/schema-builder/RdbmsSchemaBuilder.d.ts +0 -145
  388. package/client/lib/typeorm/schema-builder/SchemaBuilder.d.ts +0 -15
  389. package/client/lib/typeorm/schema-builder/options/TableCheckOptions.d.ts +0 -18
  390. package/client/lib/typeorm/schema-builder/options/TableColumnOptions.d.ts +0 -123
  391. package/client/lib/typeorm/schema-builder/options/TableExclusionOptions.d.ts +0 -14
  392. package/client/lib/typeorm/schema-builder/options/TableForeignKeyOptions.d.ts +0 -45
  393. package/client/lib/typeorm/schema-builder/options/TableIndexOptions.d.ts +0 -45
  394. package/client/lib/typeorm/schema-builder/options/TableOptions.d.ts +0 -62
  395. package/client/lib/typeorm/schema-builder/options/TableUniqueOptions.d.ts +0 -19
  396. package/client/lib/typeorm/schema-builder/options/ViewOptions.d.ts +0 -27
  397. package/client/lib/typeorm/schema-builder/table/Table.d.ts +0 -143
  398. package/client/lib/typeorm/schema-builder/table/TableCheck.d.ts +0 -30
  399. package/client/lib/typeorm/schema-builder/table/TableColumn.d.ts +0 -127
  400. package/client/lib/typeorm/schema-builder/table/TableExclusion.d.ts +0 -26
  401. package/client/lib/typeorm/schema-builder/table/TableForeignKey.d.ts +0 -58
  402. package/client/lib/typeorm/schema-builder/table/TableIndex.d.ts +0 -57
  403. package/client/lib/typeorm/schema-builder/table/TableUnique.d.ts +0 -31
  404. package/client/lib/typeorm/schema-builder/util/TableUtils.d.ts +0 -7
  405. package/client/lib/typeorm/schema-builder/util/ViewUtils.d.ts +0 -8
  406. package/client/lib/typeorm/schema-builder/view/View.d.ts +0 -38
  407. package/client/lib/typeorm/subscriber/Broadcaster.d.ts +0 -168
  408. package/client/lib/typeorm/subscriber/BroadcasterResult.d.ts +0 -18
  409. package/client/lib/typeorm/subscriber/EntitySubscriberInterface.d.ts +0 -93
  410. package/client/lib/typeorm/subscriber/event/InsertEvent.d.ts +0 -32
  411. package/client/lib/typeorm/subscriber/event/LoadEvent.d.ts +0 -32
  412. package/client/lib/typeorm/subscriber/event/RecoverEvent.d.ts +0 -7
  413. package/client/lib/typeorm/subscriber/event/RemoveEvent.d.ts +0 -41
  414. package/client/lib/typeorm/subscriber/event/SoftRemoveEvent.d.ts +0 -7
  415. package/client/lib/typeorm/subscriber/event/TransactionCommitEvent.d.ts +0 -23
  416. package/client/lib/typeorm/subscriber/event/TransactionRollbackEvent.d.ts +0 -23
  417. package/client/lib/typeorm/subscriber/event/TransactionStartEvent.d.ts +0 -23
  418. package/client/lib/typeorm/subscriber/event/UpdateEvent.d.ts +0 -47
  419. package/client/lib/typeorm/util/ApplyValueTransformers.d.ts +0 -6
  420. package/client/lib/typeorm/util/DateUtils.d.ts +0 -59
  421. package/client/lib/typeorm/util/DepGraph.d.ts +0 -65
  422. package/client/lib/typeorm/util/DirectoryExportedClassesLoader.d.ts +0 -10
  423. package/client/lib/typeorm/util/ImportUtils.d.ts +0 -2
  424. package/client/lib/typeorm/util/InstanceChecker.d.ts +0 -60
  425. package/client/lib/typeorm/util/ObjectUtils.d.ts +0 -38
  426. package/client/lib/typeorm/util/OrmUtils.d.ts +0 -53
  427. package/client/lib/typeorm/util/PathUtils.d.ts +0 -11
  428. package/client/lib/typeorm/util/RandomGenerator.d.ts +0 -16
  429. package/client/lib/typeorm/util/StringUtils.d.ts +0 -64
  430. package/client/lib/typeorm/util/TreeRepositoryUtils.d.ts +0 -24
  431. package/client/lib/typeorm/util/VersionUtils.d.ts +0 -5
  432. package/client/lib/typeorm/util/escapeRegExp.d.ts +0 -2
  433. package/client/public-api.d.ts +0 -2
@@ -1,247 +0,0 @@
1
- // @ts-nocheck
2
- import { Driver } from "../driver/Driver";
3
- import { Repository } from "../repository/Repository";
4
- import { EntitySubscriberInterface } from "../subscriber/EntitySubscriberInterface";
5
- import { EntityTarget } from "../common/EntityTarget";
6
- import { ObjectType } from "../common/ObjectType";
7
- import { EntityManager } from "../entity-manager/EntityManager";
8
- import { TreeRepository } from "../repository/TreeRepository";
9
- import { NamingStrategyInterface } from "../naming-strategy/NamingStrategyInterface";
10
- import { EntityMetadata } from "../metadata/EntityMetadata";
11
- import { Logger } from "../logger/Logger";
12
- import { MigrationInterface } from "../migration/MigrationInterface";
13
- import { Migration } from "../migration/Migration";
14
- import { DataSourceOptions } from "./DataSourceOptions";
15
- import { QueryRunner } from "../query-runner/QueryRunner";
16
- import { SelectQueryBuilder } from "../query-builder/SelectQueryBuilder";
17
- import { UpdateQueryBuilder } from "../query-builder//UpdateQueryBuilder";
18
- import { DeleteQueryBuilder } from "../query-builder//DeleteQueryBuilder";
19
- import { SoftDeleteQueryBuilder } from "../query-builder/SoftDeleteQueryBuilder";
20
- import { InsertQueryBuilder } from "../query-builder/InsertQueryBuilder";
21
- import { RelationQueryBuilder } from "../query-builder/RelationQueryBuilder";
22
- import { QueryResultCache } from "../cache/QueryResultCache";
23
- import { SqljsEntityManager } from "../entity-manager/SqljsEntityManager";
24
- import { RelationLoader } from "../query-builder/RelationLoader";
25
- import { IsolationLevel } from "../driver/types/IsolationLevel";
26
- import { ReplicationMode } from "../driver/types/ReplicationMode";
27
- import { RelationIdLoader } from "../query-builder/RelationIdLoader";
28
- import { ObjectLiteral } from "../common/ObjectLiteral";
29
- /**
30
- * DataSource is a pre-defined connection configuration to a specific database.
31
- * You can have multiple data sources connected (with multiple connections in it),
32
- * connected to multiple databases in your application.
33
- *
34
- * Before, it was called `Connection`, but now `Connection` is deprecated
35
- * because `Connection` isn't the best name for what it's actually is.
36
- */
37
- export declare class DataSource {
38
- readonly "@instanceof": symbol;
39
- SelectQueryBuilder: typeof SelectQueryBuilder;
40
- UpdateQueryBuilder: typeof UpdateQueryBuilder;
41
- DeleteQueryBuilder: typeof DeleteQueryBuilder;
42
- SoftDeleteQueryBuilder: typeof SoftDeleteQueryBuilder;
43
- InsertQueryBuilder: typeof InsertQueryBuilder;
44
- RelationQueryBuilder: typeof RelationQueryBuilder;
45
- /**
46
- * Connection name.
47
- *
48
- * @deprecated we don't need names anymore since we are going to drop all related methods relying on this property.
49
- */
50
- readonly name: string;
51
- /**
52
- * Connection options.
53
- */
54
- readonly options: DataSourceOptions;
55
- /**
56
- * Indicates if DataSource is initialized or not.
57
- */
58
- readonly isInitialized: boolean;
59
- /**
60
- * Database driver used by this connection.
61
- */
62
- driver: Driver;
63
- /**
64
- * EntityManager of this connection.
65
- */
66
- readonly manager: EntityManager;
67
- /**
68
- * Naming strategy used in the connection.
69
- */
70
- namingStrategy: NamingStrategyInterface;
71
- /**
72
- * Name for the metadata table
73
- */
74
- readonly metadataTableName: string;
75
- /**
76
- * Logger used to log orm events.
77
- */
78
- logger: Logger;
79
- /**
80
- * Migration instances that are registered for this connection.
81
- */
82
- readonly migrations: MigrationInterface[];
83
- /**
84
- * Entity subscriber instances that are registered for this connection.
85
- */
86
- readonly subscribers: EntitySubscriberInterface<any>[];
87
- /**
88
- * All entity metadatas that are registered for this connection.
89
- */
90
- readonly entityMetadatas: EntityMetadata[];
91
- /**
92
- * Used to work with query result cache.
93
- */
94
- queryResultCache?: QueryResultCache;
95
- /**
96
- * Used to load relations and work with lazy relations.
97
- */
98
- readonly relationLoader: RelationLoader;
99
- readonly relationIdLoader: RelationIdLoader;
100
- constructor(options: DataSourceOptions);
101
- /**
102
- Indicates if DataSource is initialized or not.
103
- *
104
- * @deprecated use .isInitialized instead
105
- */
106
- get isConnected(): boolean;
107
- /**
108
- * Gets a sql.js specific Entity Manager that allows to perform special load and save operations
109
- *
110
- * Available only in connection with the sqljs driver.
111
- */
112
- get sqljsManager(): SqljsEntityManager;
113
- /**
114
- * Updates current connection options with provided options.
115
- */
116
- setOptions(options: Partial<DataSourceOptions>): this;
117
- /**
118
- * Performs connection to the database.
119
- * This method should be called once on application bootstrap.
120
- * This method not necessarily creates database connection (depend on database type),
121
- * but it also can setup a connection pool with database to use.
122
- */
123
- initialize(): Promise<this>;
124
- /**
125
- * Performs connection to the database.
126
- * This method should be called once on application bootstrap.
127
- * This method not necessarily creates database connection (depend on database type),
128
- * but it also can setup a connection pool with database to use.
129
- *
130
- * @deprecated use .initialize method instead
131
- */
132
- connect(): Promise<this>;
133
- /**
134
- * Closes connection with the database.
135
- * Once connection is closed, you cannot use repositories or perform any operations except opening connection again.
136
- */
137
- destroy(): Promise<void>;
138
- /**
139
- * Closes connection with the database.
140
- * Once connection is closed, you cannot use repositories or perform any operations except opening connection again.
141
- *
142
- * @deprecated use .destroy method instead
143
- */
144
- close(): Promise<void>;
145
- /**
146
- * Creates database schema for all entities registered in this connection.
147
- * Can be used only after connection to the database is established.
148
- *
149
- * @param dropBeforeSync If set to true then it drops the database with all its tables and data
150
- */
151
- synchronize(dropBeforeSync?: boolean): Promise<void>;
152
- /**
153
- * Drops the database and all its data.
154
- * Be careful with this method on production since this method will erase all your database tables and their data.
155
- * Can be used only after connection to the database is established.
156
- */
157
- dropDatabase(): Promise<void>;
158
- /**
159
- * Runs all pending migrations.
160
- * Can be used only after connection to the database is established.
161
- */
162
- runMigrations(options?: {
163
- transaction?: "all" | "none" | "each";
164
- fake?: boolean;
165
- }): Promise<Migration[]>;
166
- /**
167
- * Reverts last executed migration.
168
- * Can be used only after connection to the database is established.
169
- */
170
- undoLastMigration(options?: {
171
- transaction?: "all" | "none" | "each";
172
- fake?: boolean;
173
- }): Promise<void>;
174
- /**
175
- * Lists all migrations and whether they have been run.
176
- * Returns true if there are pending migrations
177
- */
178
- showMigrations(): Promise<boolean>;
179
- /**
180
- * Checks if entity metadata exist for the given entity class, target name or table name.
181
- */
182
- hasMetadata(target: EntityTarget<any>): boolean;
183
- /**
184
- * Gets entity metadata for the given entity class or schema name.
185
- */
186
- getMetadata(target: EntityTarget<any>): EntityMetadata;
187
- /**
188
- * Gets repository for the given entity.
189
- */
190
- getRepository<Entity extends ObjectLiteral>(target: EntityTarget<Entity>): Repository<Entity>;
191
- /**
192
- * Gets tree repository for the given entity class or name.
193
- * Only tree-type entities can have a TreeRepository, like ones decorated with @Tree decorator.
194
- */
195
- getTreeRepository<Entity extends ObjectLiteral>(target: EntityTarget<Entity>): TreeRepository<Entity>;
196
- /**
197
- * Gets custom entity repository marked with @EntityRepository decorator.
198
- *
199
- * @deprecated use Repository.extend function to create a custom repository
200
- */
201
- getCustomRepository<T>(customRepository: ObjectType<T>): T;
202
- /**
203
- * Wraps given function execution (and all operations made there) into a transaction.
204
- * All database operations must be executed using provided entity manager.
205
- */
206
- transaction<T>(runInTransaction: (entityManager: EntityManager) => Promise<T>): Promise<T>;
207
- transaction<T>(isolationLevel: IsolationLevel, runInTransaction: (entityManager: EntityManager) => Promise<T>): Promise<T>;
208
- /**
209
- * Executes raw SQL query and returns raw database results.
210
- */
211
- query(query: string, parameters?: any[], queryRunner?: QueryRunner): Promise<any>;
212
- /**
213
- * Creates a new query builder that can be used to build a SQL query.
214
- */
215
- createQueryBuilder<Entity extends ObjectLiteral>(entityClass: EntityTarget<Entity>, alias: string, queryRunner?: QueryRunner): SelectQueryBuilder<Entity>;
216
- /**
217
- * Creates a new query builder that can be used to build a SQL query.
218
- */
219
- createQueryBuilder(queryRunner?: QueryRunner): SelectQueryBuilder<any>;
220
- /**
221
- * Creates a query runner used for perform queries on a single database connection.
222
- * Using query runners you can control your queries to execute using single database connection and
223
- * manually control your database transaction.
224
- *
225
- * Mode is used in replication mode and indicates whatever you want to connect
226
- * to master database or any of slave databases.
227
- * If you perform writes you must use master database,
228
- * if you perform reads you can use slave databases.
229
- */
230
- createQueryRunner(mode?: ReplicationMode): QueryRunner;
231
- /**
232
- * Gets entity metadata of the junction table (many-to-many table).
233
- */
234
- getManyToManyMetadata(entityTarget: EntityTarget<any>, relationPropertyPath: string): EntityMetadata;
235
- /**
236
- * Creates an Entity Manager for the current connection with the help of the EntityManagerFactory.
237
- */
238
- createEntityManager(queryRunner?: QueryRunner): EntityManager;
239
- /**
240
- * Finds exist entity metadata by the given entity class, target name or table name.
241
- */
242
- protected findMetadata(target: EntityTarget<any>): EntityMetadata | undefined;
243
- /**
244
- * Builds metadatas for all registered classes inside this connection.
245
- */
246
- protected buildMetadatas(): Promise<void>;
247
- }
@@ -1,9 +0,0 @@
1
- // @ts-nocheck
2
- import { CordovaConnectionOptions } from "../driver/cordova/CordovaConnectionOptions";
3
- import { SqljsConnectionOptions } from "../driver/sqljs/SqljsConnectionOptions";
4
- import { ReactNativeConnectionOptions } from "../driver/react-native/ReactNativeConnectionOptions";
5
- import { NativescriptConnectionOptions } from "../driver/nativescript/NativescriptConnectionOptions";
6
- /**
7
- * DataSourceOptions is an interface with settings and options for specific DataSource.
8
- */
9
- export type DataSourceOptions = CordovaConnectionOptions | NativescriptConnectionOptions | ReactNativeConnectionOptions | SqljsConnectionOptions;
@@ -1,3 +0,0 @@
1
- // @ts-nocheck
2
- export * from "./DataSource";
3
- export * from "./DataSourceOptions";
@@ -1,13 +0,0 @@
1
- // @ts-nocheck
2
- /**
3
- * Creates a database check.
4
- * Can be used on entity property or on entity.
5
- * Can create checks with composite columns when used on entity.
6
- */
7
- export declare function Check(expression: string): ClassDecorator & PropertyDecorator;
8
- /**
9
- * Creates a database check.
10
- * Can be used on entity property or on entity.
11
- * Can create checks with composite columns when used on entity.
12
- */
13
- export declare function Check(name: string, expression: string): ClassDecorator & PropertyDecorator;
@@ -1,10 +0,0 @@
1
- // @ts-nocheck
2
- import { EntitySchema } from "../entity-schema/EntitySchema";
3
- /**
4
- * Used to declare a class as a custom repository.
5
- * Custom repository can manage some specific entity or just be generic.
6
- * Custom repository optionally can extend AbstractRepository, Repository or TreeRepository.
7
- *
8
- * @deprecated use Repository.extend function to create a custom repository
9
- */
10
- export declare function EntityRepository(entity?: Function | EntitySchema<any>): ClassDecorator;
@@ -1,13 +0,0 @@
1
- // @ts-nocheck
2
- /**
3
- * Creates a database exclusion.
4
- * Can be used on entity.
5
- * Can create exclusions with composite columns when used on entity.
6
- */
7
- export declare function Exclusion(expression: string): ClassDecorator & PropertyDecorator;
8
- /**
9
- * Creates a database exclusion.
10
- * Can be used on entity.
11
- * Can create exclusions with composite columns when used on entity.
12
- */
13
- export declare function Exclusion(name: string, expression: string): ClassDecorator & PropertyDecorator;
@@ -1,11 +0,0 @@
1
- // @ts-nocheck
2
- /**
3
- * Marks a column to generate a value on entity insertion.
4
- * There are three types of generation strategy - increment, uuid and rowid (cockroachdb only).
5
- * Increment uses a number which increases by one on each insertion.
6
- * Uuid generates a special UUID token.
7
- * Rowid supports only in CockroachDB and uses `unique_rowid()` function
8
- *
9
- * Note, some databases do not support non-primary generation columns.
10
- */
11
- export declare function Generated(strategy?: "increment" | "uuid" | "rowid"): PropertyDecorator;
@@ -1,50 +0,0 @@
1
- // @ts-nocheck
2
- import { IndexOptions } from "./options/IndexOptions";
3
- /**
4
- * Creates a database index.
5
- * Can be used on entity property or on entity.
6
- * Can create indices with composite columns when used on entity.
7
- */
8
- export declare function Index(options?: IndexOptions): ClassDecorator & PropertyDecorator;
9
- /**
10
- * Creates a database index.
11
- * Can be used on entity property or on entity.
12
- * Can create indices with composite columns when used on entity.
13
- */
14
- export declare function Index(name: string, options?: IndexOptions): ClassDecorator & PropertyDecorator;
15
- /**
16
- * Creates a database index.
17
- * Can be used on entity property or on entity.
18
- * Can create indices with composite columns when used on entity.
19
- */
20
- export declare function Index(name: string, options: {
21
- synchronize: false;
22
- }): ClassDecorator & PropertyDecorator;
23
- /**
24
- * Creates a database index.
25
- * Can be used on entity property or on entity.
26
- * Can create indices with composite columns when used on entity.
27
- */
28
- export declare function Index(name: string, fields: string[], options?: IndexOptions): ClassDecorator & PropertyDecorator;
29
- /**
30
- * Creates a database index.
31
- * Can be used on entity property or on entity.
32
- * Can create indices with composite columns when used on entity.
33
- */
34
- export declare function Index(fields: string[], options?: IndexOptions): ClassDecorator & PropertyDecorator;
35
- /**
36
- * Creates a database index.
37
- * Can be used on entity property or on entity.
38
- * Can create indices with composite columns when used on entity.
39
- */
40
- export declare function Index(fields: (object?: any) => any[] | {
41
- [key: string]: number;
42
- }, options?: IndexOptions): ClassDecorator & PropertyDecorator;
43
- /**
44
- * Creates a database index.
45
- * Can be used on entity property or on entity.
46
- * Can create indices with composite columns when used on entity.
47
- */
48
- export declare function Index(name: string, fields: (object?: any) => any[] | {
49
- [key: string]: number;
50
- }, options?: IndexOptions): ClassDecorator & PropertyDecorator;
@@ -1,22 +0,0 @@
1
- // @ts-nocheck
2
- import { UniqueOptions } from "./options/UniqueOptions";
3
- /**
4
- * Composite unique constraint must be set on entity classes and must specify entity's fields to be unique.
5
- */
6
- export declare function Unique(name: string, fields: string[], options?: UniqueOptions): ClassDecorator & PropertyDecorator;
7
- /**
8
- * Composite unique constraint must be set on entity classes and must specify entity's fields to be unique.
9
- */
10
- export declare function Unique(fields: string[], options?: UniqueOptions): ClassDecorator & PropertyDecorator;
11
- /**
12
- * Composite unique constraint must be set on entity classes and must specify entity's fields to be unique.
13
- */
14
- export declare function Unique(fields: (object?: any) => any[] | {
15
- [key: string]: number;
16
- }, options?: UniqueOptions): ClassDecorator & PropertyDecorator;
17
- /**
18
- * Composite unique constraint must be set on entity classes and must specify entity's fields to be unique.
19
- */
20
- export declare function Unique(name: string, fields: (object?: any) => any[] | {
21
- [key: string]: number;
22
- }, options?: UniqueOptions): ClassDecorator & PropertyDecorator;
@@ -1,75 +0,0 @@
1
- // @ts-nocheck
2
- import { SimpleColumnType, SpatialColumnType, WithLengthColumnType, WithPrecisionColumnType, WithWidthColumnType } from "../../driver/types/ColumnTypes";
3
- import { ColumnCommonOptions } from "../options/ColumnCommonOptions";
4
- import { SpatialColumnOptions } from "../options/SpatialColumnOptions";
5
- import { ColumnWithLengthOptions } from "../options/ColumnWithLengthOptions";
6
- import { ColumnNumericOptions } from "../options/ColumnNumericOptions";
7
- import { ColumnEnumOptions } from "../options/ColumnEnumOptions";
8
- import { ColumnEmbeddedOptions } from "../options/ColumnEmbeddedOptions";
9
- import { ColumnHstoreOptions } from "../options/ColumnHstoreOptions";
10
- import { ColumnWithWidthOptions } from "../options/ColumnWithWidthOptions";
11
- import { ColumnOptions } from "../options/ColumnOptions";
12
- /**
13
- * Column decorator is used to mark a specific class property as a table column. Only properties decorated with this
14
- * decorator will be persisted to the database when entity be saved.
15
- */
16
- export declare function Column(): PropertyDecorator;
17
- /**
18
- * Column decorator is used to mark a specific class property as a table column.
19
- * Only properties decorated with this decorator will be persisted to the database when entity be saved.
20
- */
21
- export declare function Column(options: ColumnOptions): PropertyDecorator;
22
- /**
23
- * Column decorator is used to mark a specific class property as a table column.
24
- * Only properties decorated with this decorator will be persisted to the database when entity be saved.
25
- */
26
- export declare function Column(type: SimpleColumnType, options?: ColumnCommonOptions): PropertyDecorator;
27
- /**
28
- * Column decorator is used to mark a specific class property as a table column.
29
- * Only properties decorated with this decorator will be persisted to the database when entity be saved.
30
- */
31
- export declare function Column(type: SpatialColumnType, options?: ColumnCommonOptions & SpatialColumnOptions): PropertyDecorator;
32
- /**
33
- * Column decorator is used to mark a specific class property as a table column.
34
- * Only properties decorated with this decorator will be persisted to the database when entity be saved.
35
- */
36
- export declare function Column(type: WithLengthColumnType, options?: ColumnCommonOptions & ColumnWithLengthOptions): PropertyDecorator;
37
- /**
38
- * Column decorator is used to mark a specific class property as a table column.
39
- * Only properties decorated with this decorator will be persisted to the database when entity be saved.
40
- */
41
- export declare function Column(type: WithWidthColumnType, options?: ColumnCommonOptions & ColumnWithWidthOptions): PropertyDecorator;
42
- /**
43
- * Column decorator is used to mark a specific class property as a table column.
44
- * Only properties decorated with this decorator will be persisted to the database when entity be saved.
45
- */
46
- export declare function Column(type: WithPrecisionColumnType, options?: ColumnCommonOptions & ColumnNumericOptions): PropertyDecorator;
47
- /**
48
- * Column decorator is used to mark a specific class property as a table column.
49
- * Only properties decorated with this decorator will be persisted to the database when entity be saved.
50
- */
51
- export declare function Column(type: "enum", options?: ColumnCommonOptions & ColumnEnumOptions): PropertyDecorator;
52
- /**
53
- * Column decorator is used to mark a specific class property as a table column.
54
- * Only properties decorated with this decorator will be persisted to the database when entity be saved.
55
- */
56
- export declare function Column(type: "simple-enum", options?: ColumnCommonOptions & ColumnEnumOptions): PropertyDecorator;
57
- /**
58
- * Column decorator is used to mark a specific class property as a table column.
59
- * Only properties decorated with this decorator will be persisted to the database when entity be saved.
60
- */
61
- export declare function Column(type: "set", options?: ColumnCommonOptions & ColumnEnumOptions): PropertyDecorator;
62
- /**
63
- * Column decorator is used to mark a specific class property as a table column.
64
- * Only properties decorated with this decorator will be persisted to the database when entity be saved.
65
- */
66
- export declare function Column(type: "hstore", options?: ColumnCommonOptions & ColumnHstoreOptions): PropertyDecorator;
67
- /**
68
- * Column decorator is used to mark a specific class property as a table column.
69
- * Only properties decorated with this decorator will be persisted to the database when entity be saved.
70
- *
71
- * Property in entity can be marked as Embedded, and on persist all columns from the embedded are mapped to the
72
- * single table of the entity where Embedded is used. And on hydration all columns which supposed to be in the
73
- * embedded will be mapped to it from the single table.
74
- */
75
- export declare function Column(type: (type?: any) => Function, options?: ColumnEmbeddedOptions): PropertyDecorator;
@@ -1,8 +0,0 @@
1
- // @ts-nocheck
2
- import { ColumnOptions } from "../options/ColumnOptions";
3
- /**
4
- * This column will store a creation date of the inserted object.
5
- * Creation date is generated and inserted only once,
6
- * at the first time when you create an object, the value is inserted into the table, and is never touched again.
7
- */
8
- export declare function CreateDateColumn(options?: ColumnOptions): PropertyDecorator;
@@ -1,7 +0,0 @@
1
- // @ts-nocheck
2
- import { ColumnOptions } from "../options/ColumnOptions";
3
- /**
4
- * This column will store a delete date of the soft-deleted object.
5
- * This date is being updated each time you soft-delete the object.
6
- */
7
- export declare function DeleteDateColumn(options?: ColumnOptions): PropertyDecorator;
@@ -1,7 +0,0 @@
1
- // @ts-nocheck
2
- import { ColumnOptions } from "../options/ColumnOptions";
3
- /**
4
- * Special type of column that is available only for MongoDB database.
5
- * Marks your entity's column to be an object id.
6
- */
7
- export declare function ObjectIdColumn(options?: ColumnOptions): PropertyDecorator;
@@ -1,22 +0,0 @@
1
- // @ts-nocheck
2
- import { ColumnOptions } from "../options/ColumnOptions";
3
- import { ColumnType } from "../../driver/types/ColumnTypes";
4
- /**
5
- * Describes all primary key column's options.
6
- * If specified, the nullable field must be set to false.
7
- */
8
- export type PrimaryColumnOptions = ColumnOptions & {
9
- nullable?: false;
10
- };
11
- /**
12
- * Column decorator is used to mark a specific class property as a table column.
13
- * Only properties decorated with this decorator will be persisted to the database when entity be saved.
14
- * Primary columns also creates a PRIMARY KEY for this column in a db.
15
- */
16
- export declare function PrimaryColumn(options?: PrimaryColumnOptions): PropertyDecorator;
17
- /**
18
- * Column decorator is used to mark a specific class property as a table column.
19
- * Only properties decorated with this decorator will be persisted to the database when entity be saved.
20
- * Primary columns also creates a PRIMARY KEY for this column in a db.
21
- */
22
- export declare function PrimaryColumn(type?: ColumnType, options?: PrimaryColumnOptions): PropertyDecorator;
@@ -1,25 +0,0 @@
1
- // @ts-nocheck
2
- import { PrimaryGeneratedColumnNumericOptions } from "../options/PrimaryGeneratedColumnNumericOptions";
3
- import { PrimaryGeneratedColumnUUIDOptions } from "../options/PrimaryGeneratedColumnUUIDOptions";
4
- import { PrimaryGeneratedColumnIdentityOptions } from "../options/PrimaryGeneratedColumnIdentityOptions";
5
- /**
6
- * Column decorator is used to mark a specific class property as a table column.
7
- */
8
- export declare function PrimaryGeneratedColumn(): PropertyDecorator;
9
- /**
10
- * Column decorator is used to mark a specific class property as a table column.
11
- */
12
- export declare function PrimaryGeneratedColumn(options: PrimaryGeneratedColumnNumericOptions): PropertyDecorator;
13
- /**
14
- * Column decorator is used to mark a specific class property as a table column.
15
- */
16
- export declare function PrimaryGeneratedColumn(strategy: "increment", options?: PrimaryGeneratedColumnNumericOptions): PropertyDecorator;
17
- /**
18
- * Column decorator is used to mark a specific class property as a table column.
19
- */
20
- export declare function PrimaryGeneratedColumn(strategy: "uuid", options?: PrimaryGeneratedColumnUUIDOptions): PropertyDecorator;
21
- /**
22
- * Column decorator is used to mark a specific class property as a table column.
23
- */
24
- export declare function PrimaryGeneratedColumn(strategy: "rowid", options?: PrimaryGeneratedColumnUUIDOptions): PropertyDecorator;
25
- export declare function PrimaryGeneratedColumn(strategy: "identity", options?: PrimaryGeneratedColumnIdentityOptions): PropertyDecorator;
@@ -1,7 +0,0 @@
1
- // @ts-nocheck
2
- import { ColumnOptions } from "../options/ColumnOptions";
3
- /**
4
- * This column will store an update date of the updated object.
5
- * This date is being updated each time you persist the object.
6
- */
7
- export declare function UpdateDateColumn(options?: ColumnOptions): PropertyDecorator;
@@ -1,8 +0,0 @@
1
- // @ts-nocheck
2
- import { ColumnOptions } from "../options/ColumnOptions";
3
- /**
4
- * This column will store a number - version of the entity.
5
- * Every time your entity will be persisted, this number will be increased by one -
6
- * so you can organize visioning and update strategies of your entity.
7
- */
8
- export declare function VersionColumn(options?: ColumnOptions): PropertyDecorator;
@@ -1,6 +0,0 @@
1
- // @ts-nocheck
2
- import { ViewColumnOptions } from "../options/ViewColumnOptions";
3
- /**
4
- * ViewColumn decorator is used to mark a specific class property as a view column.
5
- */
6
- export declare function ViewColumn(options?: ViewColumnOptions): PropertyDecorator;
@@ -1,11 +0,0 @@
1
- // @ts-nocheck
2
- import { ColumnType } from "../../driver/types/ColumnTypes";
3
- import { VirtualColumnOptions } from "../options/VirtualColumnOptions";
4
- /**
5
- * VirtualColumn decorator is used to mark a specific class property as a Virtual column.
6
- */
7
- export declare function VirtualColumn(options: VirtualColumnOptions): PropertyDecorator;
8
- /**
9
- * VirtualColumn decorator is used to mark a specific class property as a Virtual column.
10
- */
11
- export declare function VirtualColumn(typeOrOptions: ColumnType, options: VirtualColumnOptions): PropertyDecorator;
@@ -1,5 +0,0 @@
1
- // @ts-nocheck
2
- /**
3
- * Special type of the table used in the single-table inherited tables.
4
- */
5
- export declare function ChildEntity(discriminatorValue?: any): ClassDecorator;
@@ -1,12 +0,0 @@
1
- // @ts-nocheck
2
- import { EntityOptions } from "../options/EntityOptions";
3
- /**
4
- * This decorator is used to mark classes that will be an entity (table or document depend on database type).
5
- * Database schema will be created for all classes decorated with it, and Repository can be retrieved and used for it.
6
- */
7
- export declare function Entity(options?: EntityOptions): ClassDecorator;
8
- /**
9
- * This decorator is used to mark classes that will be an entity (table or document depend on database type).
10
- * Database schema will be created for all classes decorated with it, and Repository can be retrieved and used for it.
11
- */
12
- export declare function Entity(name?: string, options?: EntityOptions): ClassDecorator;
@@ -1,9 +0,0 @@
1
- // @ts-nocheck
2
- import { ColumnOptions } from "../options/ColumnOptions";
3
- /**
4
- * Sets for entity to use table inheritance pattern.
5
- */
6
- export declare function TableInheritance(options?: {
7
- pattern?: "STI";
8
- column?: string | ColumnOptions;
9
- }): ClassDecorator;
@@ -1,12 +0,0 @@
1
- // @ts-nocheck
2
- import { ViewEntityOptions } from "../options/ViewEntityOptions";
3
- /**
4
- * This decorator is used to mark classes that will be an entity view.
5
- * Database schema will be created for all classes decorated with it, and Repository can be retrieved and used for it.
6
- */
7
- export declare function ViewEntity(options?: ViewEntityOptions): ClassDecorator;
8
- /**
9
- * This decorator is used to mark classes that will be an entity view.
10
- * Database schema will be created for all classes decorated with it, and Repository can be retrieved and used for it.
11
- */
12
- export declare function ViewEntity(name?: string, options?: ViewEntityOptions): ClassDecorator;
@@ -1,5 +0,0 @@
1
- // @ts-nocheck
2
- /**
3
- * Calls a method on which this decorator is applied after this entity insertion.
4
- */
5
- export declare function AfterInsert(): PropertyDecorator;
@@ -1,5 +0,0 @@
1
- // @ts-nocheck
2
- /**
3
- * Calls a method on which this decorator is applied after entity is loaded.
4
- */
5
- export declare function AfterLoad(): PropertyDecorator;
@@ -1,5 +0,0 @@
1
- // @ts-nocheck
2
- /**
3
- * Calls a method on which this decorator is applied before this entity soft removal.
4
- */
5
- export declare function AfterRecover(): PropertyDecorator;