taon-typeorm 19.0.21 → 19.0.23

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 (436) 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 +4 -0
  6. package/lib/env/env.angular-node-app.js +10 -0
  7. package/lib/env/env.angular-node-app.js.map +1 -0
  8. package/lib/env/env.docs-webapp.d.ts +4 -0
  9. package/lib/env/env.docs-webapp.js +10 -0
  10. package/lib/env/env.docs-webapp.js.map +1 -0
  11. package/lib/env/env.electron-app.d.ts +4 -0
  12. package/lib/env/env.electron-app.js +10 -0
  13. package/lib/env/env.electron-app.js.map +1 -0
  14. package/lib/env/env.mobile-app.d.ts +4 -0
  15. package/lib/env/env.mobile-app.js +10 -0
  16. package/lib/env/env.mobile-app.js.map +1 -0
  17. package/lib/env/env.npm-lib-and-cli-tool.d.ts +4 -0
  18. package/lib/env/env.npm-lib-and-cli-tool.js +10 -0
  19. package/lib/env/env.npm-lib-and-cli-tool.js.map +1 -0
  20. package/lib/env/env.vscode-plugin.d.ts +4 -0
  21. package/lib/env/env.vscode-plugin.js +10 -0
  22. package/lib/env/env.vscode-plugin.js.map +1 -0
  23. package/lib/env/index.d.ts +6 -0
  24. package/lib/env/index.js +23 -0
  25. package/lib/env/index.js.map +1 -0
  26. package/package.json +1 -1
  27. package/scss/vars.scss +7 -0
  28. package/websql/package.json +1 -1
  29. package/client/README.md +0 -24
  30. package/client/fesm2022/taon-typeorm.mjs +0 -30436
  31. package/client/fesm2022/taon-typeorm.mjs.map +0 -1
  32. package/client/index.d.ts +0 -6
  33. package/client/lib/index.d.ts +0 -2
  34. package/client/lib/typeorm/cache/DbQueryResultCache.d.ts +0 -53
  35. package/client/lib/typeorm/cache/QueryResultCache.d.ts +0 -40
  36. package/client/lib/typeorm/cache/QueryResultCacheFactory.d.ts +0 -14
  37. package/client/lib/typeorm/cache/QueryResultCacheOptions.d.ts +0 -27
  38. package/client/lib/typeorm/cache/RedisQueryResultCache.d.ts +0 -66
  39. package/client/lib/typeorm/common/DeepPartial.d.ts +0 -7
  40. package/client/lib/typeorm/common/EntityTarget.d.ts +0 -10
  41. package/client/lib/typeorm/common/MixedList.d.ts +0 -9
  42. package/client/lib/typeorm/common/ObjectLiteral.d.ts +0 -7
  43. package/client/lib/typeorm/common/ObjectType.d.ts +0 -7
  44. package/client/lib/typeorm/common/RelationType.d.ts +0 -15
  45. package/client/lib/typeorm/connection/Connection.d.ts +0 -11
  46. package/client/lib/typeorm/connection/ConnectionManager.d.ts +0 -34
  47. package/client/lib/typeorm/connection/ConnectionMetadataBuilder.d.ts +0 -25
  48. package/client/lib/typeorm/connection/ConnectionOptions.d.ts +0 -10
  49. package/client/lib/typeorm/connection/ConnectionOptionsReader.d.ts +0 -65
  50. package/client/lib/typeorm/constants.d.ts +0 -2
  51. package/client/lib/typeorm/container.d.ts +0 -40
  52. package/client/lib/typeorm/data-source/BaseDataSourceOptions.d.ts +0 -172
  53. package/client/lib/typeorm/data-source/DataSource.d.ts +0 -247
  54. package/client/lib/typeorm/data-source/DataSourceOptions.d.ts +0 -9
  55. package/client/lib/typeorm/data-source/index.d.ts +0 -3
  56. package/client/lib/typeorm/decorator/Check.d.ts +0 -13
  57. package/client/lib/typeorm/decorator/EntityRepository.d.ts +0 -10
  58. package/client/lib/typeorm/decorator/Exclusion.d.ts +0 -13
  59. package/client/lib/typeorm/decorator/Generated.d.ts +0 -11
  60. package/client/lib/typeorm/decorator/Index.d.ts +0 -50
  61. package/client/lib/typeorm/decorator/Unique.d.ts +0 -22
  62. package/client/lib/typeorm/decorator/columns/Column.d.ts +0 -75
  63. package/client/lib/typeorm/decorator/columns/CreateDateColumn.d.ts +0 -8
  64. package/client/lib/typeorm/decorator/columns/DeleteDateColumn.d.ts +0 -7
  65. package/client/lib/typeorm/decorator/columns/ObjectIdColumn.d.ts +0 -7
  66. package/client/lib/typeorm/decorator/columns/PrimaryColumn.d.ts +0 -22
  67. package/client/lib/typeorm/decorator/columns/PrimaryGeneratedColumn.d.ts +0 -25
  68. package/client/lib/typeorm/decorator/columns/UpdateDateColumn.d.ts +0 -7
  69. package/client/lib/typeorm/decorator/columns/VersionColumn.d.ts +0 -8
  70. package/client/lib/typeorm/decorator/columns/ViewColumn.d.ts +0 -6
  71. package/client/lib/typeorm/decorator/columns/VirtualColumn.d.ts +0 -11
  72. package/client/lib/typeorm/decorator/entity/ChildEntity.d.ts +0 -5
  73. package/client/lib/typeorm/decorator/entity/Entity.d.ts +0 -12
  74. package/client/lib/typeorm/decorator/entity/TableInheritance.d.ts +0 -9
  75. package/client/lib/typeorm/decorator/entity-view/ViewEntity.d.ts +0 -12
  76. package/client/lib/typeorm/decorator/listeners/AfterInsert.d.ts +0 -5
  77. package/client/lib/typeorm/decorator/listeners/AfterLoad.d.ts +0 -5
  78. package/client/lib/typeorm/decorator/listeners/AfterRecover.d.ts +0 -5
  79. package/client/lib/typeorm/decorator/listeners/AfterRemove.d.ts +0 -5
  80. package/client/lib/typeorm/decorator/listeners/AfterSoftRemove.d.ts +0 -5
  81. package/client/lib/typeorm/decorator/listeners/AfterUpdate.d.ts +0 -5
  82. package/client/lib/typeorm/decorator/listeners/BeforeInsert.d.ts +0 -5
  83. package/client/lib/typeorm/decorator/listeners/BeforeRecover.d.ts +0 -5
  84. package/client/lib/typeorm/decorator/listeners/BeforeRemove.d.ts +0 -5
  85. package/client/lib/typeorm/decorator/listeners/BeforeSoftRemove.d.ts +0 -5
  86. package/client/lib/typeorm/decorator/listeners/BeforeUpdate.d.ts +0 -5
  87. package/client/lib/typeorm/decorator/listeners/EventSubscriber.d.ts +0 -6
  88. package/client/lib/typeorm/decorator/options/ColumnCommonOptions.d.ts +0 -58
  89. package/client/lib/typeorm/decorator/options/ColumnEmbeddedOptions.d.ts +0 -17
  90. package/client/lib/typeorm/decorator/options/ColumnEnumOptions.d.ts +0 -14
  91. package/client/lib/typeorm/decorator/options/ColumnHstoreOptions.d.ts +0 -11
  92. package/client/lib/typeorm/decorator/options/ColumnNumericOptions.d.ts +0 -25
  93. package/client/lib/typeorm/decorator/options/ColumnOptions.d.ts +0 -159
  94. package/client/lib/typeorm/decorator/options/ColumnWithLengthOptions.d.ts +0 -11
  95. package/client/lib/typeorm/decorator/options/ColumnWithWidthOptions.d.ts +0 -20
  96. package/client/lib/typeorm/decorator/options/EntityOptions.d.ts +0 -43
  97. package/client/lib/typeorm/decorator/options/IndexOptions.d.ts +0 -53
  98. package/client/lib/typeorm/decorator/options/JoinColumnOptions.d.ts +0 -18
  99. package/client/lib/typeorm/decorator/options/JoinTableMultipleColumnsOptions.d.ts +0 -30
  100. package/client/lib/typeorm/decorator/options/JoinTableOptions.d.ts +0 -30
  101. package/client/lib/typeorm/decorator/options/PrimaryGeneratedColumnIdentityOptions.d.ts +0 -27
  102. package/client/lib/typeorm/decorator/options/PrimaryGeneratedColumnNumericOptions.d.ts +0 -32
  103. package/client/lib/typeorm/decorator/options/PrimaryGeneratedColumnUUIDOptions.d.ts +0 -18
  104. package/client/lib/typeorm/decorator/options/RelationOptions.d.ts +0 -65
  105. package/client/lib/typeorm/decorator/options/SpatialColumnOptions.d.ts +0 -16
  106. package/client/lib/typeorm/decorator/options/UniqueOptions.d.ts +0 -11
  107. package/client/lib/typeorm/decorator/options/ValueTransformer.d.ts +0 -14
  108. package/client/lib/typeorm/decorator/options/ViewColumnOptions.d.ts +0 -16
  109. package/client/lib/typeorm/decorator/options/ViewEntityOptions.d.ts +0 -40
  110. package/client/lib/typeorm/decorator/options/VirtualColumnOptions.d.ts +0 -28
  111. package/client/lib/typeorm/decorator/relations/JoinColumn.d.ts +0 -20
  112. package/client/lib/typeorm/decorator/relations/JoinTable.d.ts +0 -18
  113. package/client/lib/typeorm/decorator/relations/ManyToMany.d.ts +0 -15
  114. package/client/lib/typeorm/decorator/relations/ManyToOne.d.ts +0 -15
  115. package/client/lib/typeorm/decorator/relations/OneToMany.d.ts +0 -9
  116. package/client/lib/typeorm/decorator/relations/OneToOne.d.ts +0 -13
  117. package/client/lib/typeorm/decorator/relations/RelationCount.d.ts +0 -8
  118. package/client/lib/typeorm/decorator/relations/RelationId.d.ts +0 -8
  119. package/client/lib/typeorm/decorator/tree/Tree.d.ts +0 -10
  120. package/client/lib/typeorm/decorator/tree/TreeChildren.d.ts +0 -8
  121. package/client/lib/typeorm/decorator/tree/TreeLevelColumn.d.ts +0 -5
  122. package/client/lib/typeorm/decorator/tree/TreeParent.d.ts +0 -9
  123. package/client/lib/typeorm/driver/Driver.d.ts +0 -208
  124. package/client/lib/typeorm/driver/DriverFactory.d.ts +0 -12
  125. package/client/lib/typeorm/driver/DriverUtils.d.ts +0 -62
  126. package/client/lib/typeorm/driver/Query.d.ts +0 -10
  127. package/client/lib/typeorm/driver/SqlInMemory.d.ts +0 -9
  128. package/client/lib/typeorm/driver/cordova/CordovaConnectionOptions.d.ts +0 -25
  129. package/client/lib/typeorm/driver/cordova/CordovaDriver.d.ts +0 -26
  130. package/client/lib/typeorm/driver/cordova/CordovaQueryRunner.d.ts +0 -81
  131. package/client/lib/typeorm/driver/mongodb/typings.d.ts +0 -46
  132. package/client/lib/typeorm/driver/nativescript/NativescriptConnectionOptions.d.ts +0 -46
  133. package/client/lib/typeorm/driver/nativescript/NativescriptDriver.d.ts +0 -45
  134. package/client/lib/typeorm/driver/nativescript/NativescriptQueryRunner.d.ts +0 -30
  135. package/client/lib/typeorm/driver/react-native/ReactNativeConnectionOptions.d.ts +0 -25
  136. package/client/lib/typeorm/driver/react-native/ReactNativeDriver.d.ts +0 -26
  137. package/client/lib/typeorm/driver/react-native/ReactNativeQueryRunner.d.ts +0 -30
  138. package/client/lib/typeorm/driver/sqlite-abstract/AbstractSqliteDriver.d.ts +0 -238
  139. package/client/lib/typeorm/driver/sqlite-abstract/AbstractSqliteQueryRunner.d.ts +0 -301
  140. package/client/lib/typeorm/driver/sqljs/SqljsConnectionOptions.d.ts +0 -47
  141. package/client/lib/typeorm/driver/sqljs/SqljsDriver.d.ts +0 -68
  142. package/client/lib/typeorm/driver/sqljs/SqljsQueryRunner.d.ts +0 -36
  143. package/client/lib/typeorm/driver/types/ColumnTypes.d.ts +0 -26
  144. package/client/lib/typeorm/driver/types/CteCapabilities.d.ts +0 -19
  145. package/client/lib/typeorm/driver/types/DataTypeDefaults.d.ts +0 -9
  146. package/client/lib/typeorm/driver/types/DatabaseType.d.ts +0 -5
  147. package/client/lib/typeorm/driver/types/IsolationLevel.d.ts +0 -2
  148. package/client/lib/typeorm/driver/types/MappedColumnTypes.d.ts +0 -113
  149. package/client/lib/typeorm/driver/types/MetadataTableType.d.ts +0 -6
  150. package/client/lib/typeorm/driver/types/ReplicationMode.d.ts +0 -2
  151. package/client/lib/typeorm/driver/types/UpsertType.d.ts +0 -2
  152. package/client/lib/typeorm/entity-manager/EntityManager.d.ts +0 -353
  153. package/client/lib/typeorm/entity-manager/EntityManagerFactory.d.ts +0 -13
  154. package/client/lib/typeorm/entity-manager/SqljsEntityManager.d.ts +0 -27
  155. package/client/lib/typeorm/entity-schema/EntitySchema.d.ts +0 -10
  156. package/client/lib/typeorm/entity-schema/EntitySchemaCheckOptions.d.ts +0 -11
  157. package/client/lib/typeorm/entity-schema/EntitySchemaColumnOptions.d.ts +0 -175
  158. package/client/lib/typeorm/entity-schema/EntitySchemaEmbeddedColumnOptions.d.ts +0 -19
  159. package/client/lib/typeorm/entity-schema/EntitySchemaEmbeddedError.d.ts +0 -7
  160. package/client/lib/typeorm/entity-schema/EntitySchemaExclusionOptions.d.ts +0 -11
  161. package/client/lib/typeorm/entity-schema/EntitySchemaIndexOptions.d.ts +0 -54
  162. package/client/lib/typeorm/entity-schema/EntitySchemaOptions.d.ts +0 -104
  163. package/client/lib/typeorm/entity-schema/EntitySchemaRelationIdOptions.d.ts +0 -16
  164. package/client/lib/typeorm/entity-schema/EntitySchemaRelationOptions.d.ts +0 -96
  165. package/client/lib/typeorm/entity-schema/EntitySchemaTransformer.d.ts +0 -14
  166. package/client/lib/typeorm/entity-schema/EntitySchemaUniqueOptions.d.ts +0 -18
  167. package/client/lib/typeorm/error/AlreadyHasActiveConnectionError.d.ts +0 -8
  168. package/client/lib/typeorm/error/CannotAttachTreeChildrenEntityError.d.ts +0 -8
  169. package/client/lib/typeorm/error/CannotConnectAlreadyConnectedError.d.ts +0 -8
  170. package/client/lib/typeorm/error/CannotCreateEntityIdMapError.d.ts +0 -10
  171. package/client/lib/typeorm/error/CannotDetermineEntityError.d.ts +0 -8
  172. package/client/lib/typeorm/error/CannotExecuteNotConnectedError.d.ts +0 -8
  173. package/client/lib/typeorm/error/CannotGetEntityManagerNotConnectedError.d.ts +0 -8
  174. package/client/lib/typeorm/error/CannotReflectMethodParameterTypeError.d.ts +0 -9
  175. package/client/lib/typeorm/error/CircularRelationsError.d.ts +0 -8
  176. package/client/lib/typeorm/error/ColumnTypeUndefinedError.d.ts +0 -9
  177. package/client/lib/typeorm/error/ConnectionIsNotSetError.d.ts +0 -8
  178. package/client/lib/typeorm/error/ConnectionNotFoundError.d.ts +0 -8
  179. package/client/lib/typeorm/error/CustomRepositoryCannotInheritRepositoryError.d.ts +0 -8
  180. package/client/lib/typeorm/error/CustomRepositoryDoesNotHaveEntityError.d.ts +0 -8
  181. package/client/lib/typeorm/error/CustomRepositoryNotFoundError.d.ts +0 -8
  182. package/client/lib/typeorm/error/DataTypeNotSupportedError.d.ts +0 -8
  183. package/client/lib/typeorm/error/DriverOptionNotSetError.d.ts +0 -8
  184. package/client/lib/typeorm/error/DriverPackageNotInstalledError.d.ts +0 -8
  185. package/client/lib/typeorm/error/EntityMetadataNotFoundError.d.ts +0 -7
  186. package/client/lib/typeorm/error/EntityNotFoundError.d.ts +0 -11
  187. package/client/lib/typeorm/error/EntityPropertyNotFoundError.d.ts +0 -9
  188. package/client/lib/typeorm/error/FindRelationsNotFoundError.d.ts +0 -8
  189. package/client/lib/typeorm/error/InitializedRelationError.d.ts +0 -12
  190. package/client/lib/typeorm/error/InsertValuesMissingError.d.ts +0 -8
  191. package/client/lib/typeorm/error/LimitOnUpdateNotSupportedError.d.ts +0 -8
  192. package/client/lib/typeorm/error/LockNotSupportedOnGivenDriverError.d.ts +0 -8
  193. package/client/lib/typeorm/error/MetadataAlreadyExistsError.d.ts +0 -5
  194. package/client/lib/typeorm/error/MetadataWithSuchNameAlreadyExistsError.d.ts +0 -5
  195. package/client/lib/typeorm/error/MissingDeleteDateColumnError.d.ts +0 -6
  196. package/client/lib/typeorm/error/MissingDriverError.d.ts +0 -8
  197. package/client/lib/typeorm/error/MissingJoinColumnError.d.ts +0 -7
  198. package/client/lib/typeorm/error/MissingJoinTableError.d.ts +0 -7
  199. package/client/lib/typeorm/error/MissingPrimaryColumnError.d.ts +0 -6
  200. package/client/lib/typeorm/error/MustBeEntityError.d.ts +0 -8
  201. package/client/lib/typeorm/error/NamingStrategyNotFoundError.d.ts +0 -8
  202. package/client/lib/typeorm/error/NestedSetMultipleRootError.d.ts +0 -5
  203. package/client/lib/typeorm/error/NoConnectionForRepositoryError.d.ts +0 -8
  204. package/client/lib/typeorm/error/NoConnectionOptionError.d.ts +0 -8
  205. package/client/lib/typeorm/error/NoNeedToReleaseEntityManagerError.d.ts +0 -8
  206. package/client/lib/typeorm/error/NoVersionOrUpdateDateColumnError.d.ts +0 -8
  207. package/client/lib/typeorm/error/OffsetWithoutLimitNotSupportedError.d.ts +0 -8
  208. package/client/lib/typeorm/error/OptimisticLockCanNotBeUsedError.d.ts +0 -8
  209. package/client/lib/typeorm/error/OptimisticLockVersionMismatchError.d.ts +0 -8
  210. package/client/lib/typeorm/error/PersistedEntityNotFoundError.d.ts +0 -8
  211. package/client/lib/typeorm/error/PessimisticLockTransactionRequiredError.d.ts +0 -8
  212. package/client/lib/typeorm/error/PrimaryColumnCannotBeNullableError.d.ts +0 -5
  213. package/client/lib/typeorm/error/QueryFailedError.d.ts +0 -11
  214. package/client/lib/typeorm/error/QueryRunnerAlreadyReleasedError.d.ts +0 -5
  215. package/client/lib/typeorm/error/QueryRunnerProviderAlreadyReleasedError.d.ts +0 -8
  216. package/client/lib/typeorm/error/RepositoryNotTreeError.d.ts +0 -9
  217. package/client/lib/typeorm/error/ReturningStatementNotSupportedError.d.ts +0 -9
  218. package/client/lib/typeorm/error/SubjectRemovedAndUpdatedError.d.ts +0 -9
  219. package/client/lib/typeorm/error/SubjectWithoutIdentifierError.d.ts +0 -11
  220. package/client/lib/typeorm/error/TransactionAlreadyStartedError.d.ts +0 -8
  221. package/client/lib/typeorm/error/TransactionNotStartedError.d.ts +0 -8
  222. package/client/lib/typeorm/error/TreeRepositoryNotSupportedError.d.ts +0 -6
  223. package/client/lib/typeorm/error/TypeORMError.d.ts +0 -5
  224. package/client/lib/typeorm/error/UpdateValuesMissingError.d.ts +0 -5
  225. package/client/lib/typeorm/error/UsingJoinColumnIsNotAllowedError.d.ts +0 -7
  226. package/client/lib/typeorm/error/UsingJoinColumnOnlyOnOneSideAllowedError.d.ts +0 -7
  227. package/client/lib/typeorm/error/UsingJoinTableIsNotAllowedError.d.ts +0 -7
  228. package/client/lib/typeorm/error/UsingJoinTableOnlyOnOneSideAllowedError.d.ts +0 -7
  229. package/client/lib/typeorm/error/index.d.ts +0 -62
  230. package/client/lib/typeorm/find-options/EqualOperator.d.ts +0 -6
  231. package/client/lib/typeorm/find-options/FindManyOptions.d.ts +0 -15
  232. package/client/lib/typeorm/find-options/FindOneOptions.d.ts +0 -89
  233. package/client/lib/typeorm/find-options/FindOperator.d.ts +0 -66
  234. package/client/lib/typeorm/find-options/FindOperatorType.d.ts +0 -5
  235. package/client/lib/typeorm/find-options/FindOptionsOrder.d.ts +0 -19
  236. package/client/lib/typeorm/find-options/FindOptionsRelations.d.ts +0 -19
  237. package/client/lib/typeorm/find-options/FindOptionsSelect.d.ts +0 -18
  238. package/client/lib/typeorm/find-options/FindOptionsUtils.d.ts +0 -191
  239. package/client/lib/typeorm/find-options/FindOptionsWhere.d.ts +0 -14
  240. package/client/lib/typeorm/find-options/FindTreeOptions.d.ts +0 -14
  241. package/client/lib/typeorm/find-options/JoinOptions.d.ts +0 -77
  242. package/client/lib/typeorm/find-options/OrderByCondition.d.ts +0 -18
  243. package/client/lib/typeorm/find-options/operator/Any.d.ts +0 -7
  244. package/client/lib/typeorm/find-options/operator/ArrayContainedBy.d.ts +0 -7
  245. package/client/lib/typeorm/find-options/operator/ArrayContains.d.ts +0 -7
  246. package/client/lib/typeorm/find-options/operator/ArrayOverlap.d.ts +0 -7
  247. package/client/lib/typeorm/find-options/operator/Between.d.ts +0 -7
  248. package/client/lib/typeorm/find-options/operator/Equal.d.ts +0 -12
  249. package/client/lib/typeorm/find-options/operator/ILike.d.ts +0 -7
  250. package/client/lib/typeorm/find-options/operator/In.d.ts +0 -7
  251. package/client/lib/typeorm/find-options/operator/IsNull.d.ts +0 -7
  252. package/client/lib/typeorm/find-options/operator/LessThan.d.ts +0 -7
  253. package/client/lib/typeorm/find-options/operator/LessThanOrEqual.d.ts +0 -7
  254. package/client/lib/typeorm/find-options/operator/Like.d.ts +0 -7
  255. package/client/lib/typeorm/find-options/operator/MoreThan.d.ts +0 -7
  256. package/client/lib/typeorm/find-options/operator/MoreThanOrEqual.d.ts +0 -7
  257. package/client/lib/typeorm/find-options/operator/Not.d.ts +0 -8
  258. package/client/lib/typeorm/find-options/operator/Raw.d.ts +0 -19
  259. package/client/lib/typeorm/globals.d.ts +0 -104
  260. package/client/lib/typeorm/index.d.ts +0 -168
  261. package/client/lib/typeorm/logger/AdvancedConsoleLogger.d.ts +0 -42
  262. package/client/lib/typeorm/logger/DebugLogger.d.ts +0 -41
  263. package/client/lib/typeorm/logger/Logger.d.ts +0 -32
  264. package/client/lib/typeorm/logger/LoggerFactory.d.ts +0 -12
  265. package/client/lib/typeorm/logger/LoggerOptions.d.ts +0 -14
  266. package/client/lib/typeorm/logger/SimpleConsoleLogger.d.ts +0 -42
  267. package/client/lib/typeorm/metadata/CheckMetadata.d.ts +0 -40
  268. package/client/lib/typeorm/metadata/ColumnMetadata.d.ts +0 -316
  269. package/client/lib/typeorm/metadata/EmbeddedMetadata.d.ts +0 -166
  270. package/client/lib/typeorm/metadata/EntityListenerMetadata.d.ts +0 -49
  271. package/client/lib/typeorm/metadata/EntityMetadata.d.ts +0 -562
  272. package/client/lib/typeorm/metadata/ExclusionMetadata.d.ts +0 -40
  273. package/client/lib/typeorm/metadata/ForeignKeyMetadata.d.ts +0 -78
  274. package/client/lib/typeorm/metadata/IndexMetadata.d.ts +0 -112
  275. package/client/lib/typeorm/metadata/RelationCountMetadata.d.ts +0 -47
  276. package/client/lib/typeorm/metadata/RelationIdMetadata.d.ts +0 -54
  277. package/client/lib/typeorm/metadata/RelationMetadata.d.ts +0 -291
  278. package/client/lib/typeorm/metadata/UniqueMetadata.d.ts +0 -66
  279. package/client/lib/typeorm/metadata/types/ClosureTreeOptions.d.ts +0 -11
  280. package/client/lib/typeorm/metadata/types/DeferrableType.d.ts +0 -5
  281. package/client/lib/typeorm/metadata/types/EventListenerTypes.d.ts +0 -21
  282. package/client/lib/typeorm/metadata/types/OnDeleteType.d.ts +0 -5
  283. package/client/lib/typeorm/metadata/types/OnUpdateType.d.ts +0 -5
  284. package/client/lib/typeorm/metadata/types/PropertyTypeInFunction.d.ts +0 -5
  285. package/client/lib/typeorm/metadata/types/RelationTypeInFunction.d.ts +0 -6
  286. package/client/lib/typeorm/metadata/types/RelationTypes.d.ts +0 -5
  287. package/client/lib/typeorm/metadata/types/TableTypes.d.ts +0 -5
  288. package/client/lib/typeorm/metadata/types/TreeTypes.d.ts +0 -6
  289. package/client/lib/typeorm/metadata-args/CheckMetadataArgs.d.ts +0 -18
  290. package/client/lib/typeorm/metadata-args/ColumnMetadataArgs.d.ts +0 -26
  291. package/client/lib/typeorm/metadata-args/DiscriminatorValueMetadataArgs.d.ts +0 -14
  292. package/client/lib/typeorm/metadata-args/EmbeddedMetadataArgs.d.ts +0 -27
  293. package/client/lib/typeorm/metadata-args/EntityListenerMetadataArgs.d.ts +0 -19
  294. package/client/lib/typeorm/metadata-args/EntityRepositoryMetadataArgs.d.ts +0 -15
  295. package/client/lib/typeorm/metadata-args/EntitySubscriberMetadataArgs.d.ts +0 -10
  296. package/client/lib/typeorm/metadata-args/ExclusionMetadataArgs.d.ts +0 -18
  297. package/client/lib/typeorm/metadata-args/GeneratedMetadataArgs.d.ts +0 -18
  298. package/client/lib/typeorm/metadata-args/IndexMetadataArgs.d.ts +0 -71
  299. package/client/lib/typeorm/metadata-args/InheritanceMetadataArgs.d.ts +0 -19
  300. package/client/lib/typeorm/metadata-args/JoinColumnMetadataArgs.d.ts +0 -27
  301. package/client/lib/typeorm/metadata-args/JoinTableMetadataArgs.d.ts +0 -38
  302. package/client/lib/typeorm/metadata-args/MetadataArgsStorage.d.ts +0 -109
  303. package/client/lib/typeorm/metadata-args/NamingStrategyMetadataArgs.d.ts +0 -14
  304. package/client/lib/typeorm/metadata-args/RelationCountMetadataArgs.d.ts +0 -27
  305. package/client/lib/typeorm/metadata-args/RelationIdMetadataArgs.d.ts +0 -27
  306. package/client/lib/typeorm/metadata-args/RelationMetadataArgs.d.ts +0 -56
  307. package/client/lib/typeorm/metadata-args/TableMetadataArgs.d.ts +0 -62
  308. package/client/lib/typeorm/metadata-args/TransactionEntityMetadataArgs.d.ts +0 -18
  309. package/client/lib/typeorm/metadata-args/TransactionRepositoryMetadataArgs.d.ts +0 -26
  310. package/client/lib/typeorm/metadata-args/TreeMetadataArgs.d.ts +0 -20
  311. package/client/lib/typeorm/metadata-args/UniqueMetadataArgs.d.ts +0 -25
  312. package/client/lib/typeorm/metadata-args/types/ColumnMode.d.ts +0 -8
  313. package/client/lib/typeorm/metadata-builder/ClosureJunctionEntityMetadataBuilder.d.ts +0 -15
  314. package/client/lib/typeorm/metadata-builder/EntityMetadataBuilder.d.ts +0 -58
  315. package/client/lib/typeorm/metadata-builder/EntityMetadataValidator.d.ts +0 -24
  316. package/client/lib/typeorm/metadata-builder/JunctionEntityMetadataBuilder.d.ts +0 -27
  317. package/client/lib/typeorm/metadata-builder/MetadataUtils.d.ts +0 -24
  318. package/client/lib/typeorm/metadata-builder/RelationJoinColumnBuilder.d.ts +0 -57
  319. package/client/lib/typeorm/migration/Migration.d.ts +0 -25
  320. package/client/lib/typeorm/migration/MigrationExecutor.d.ts +0 -100
  321. package/client/lib/typeorm/migration/MigrationInterface.d.ts +0 -19
  322. package/client/lib/typeorm/naming-strategy/DefaultNamingStrategy.d.ts +0 -50
  323. package/client/lib/typeorm/naming-strategy/NamingStrategyInterface.d.ts +0 -117
  324. package/client/lib/typeorm/persistence/EntityPersistExecutor.d.ts +0 -22
  325. package/client/lib/typeorm/persistence/Subject.d.ts +0 -156
  326. package/client/lib/typeorm/persistence/SubjectChangeMap.d.ts +0 -24
  327. package/client/lib/typeorm/persistence/SubjectChangedColumnsComputer.d.ts +0 -19
  328. package/client/lib/typeorm/persistence/SubjectDatabaseEntityLoader.d.ts +0 -36
  329. package/client/lib/typeorm/persistence/SubjectExecutor.d.ts +0 -119
  330. package/client/lib/typeorm/persistence/SubjectTopoligicalSorter.d.ts +0 -46
  331. package/client/lib/typeorm/persistence/subject-builder/CascadesSubjectBuilder.d.ts +0 -20
  332. package/client/lib/typeorm/persistence/subject-builder/ManyToManySubjectBuilder.d.ts +0 -35
  333. package/client/lib/typeorm/persistence/subject-builder/OneToManySubjectBuilder.d.ts +0 -28
  334. package/client/lib/typeorm/persistence/subject-builder/OneToOneInverseSideSubjectBuilder.d.ts +0 -28
  335. package/client/lib/typeorm/persistence/tree/ClosureSubjectExecutor.d.ts +0 -27
  336. package/client/lib/typeorm/persistence/tree/MaterializedPathSubjectExecutor.d.ts +0 -19
  337. package/client/lib/typeorm/persistence/tree/NestedSetSubjectExecutor.d.ts +0 -39
  338. package/client/lib/typeorm/platform/PlatformTools.d.ts +0 -65
  339. package/client/lib/typeorm/query-builder/Alias.d.ts +0 -23
  340. package/client/lib/typeorm/query-builder/Brackets.d.ts +0 -17
  341. package/client/lib/typeorm/query-builder/DeleteQueryBuilder.d.ts +0 -92
  342. package/client/lib/typeorm/query-builder/InsertOrUpdateOptions.d.ts +0 -4
  343. package/client/lib/typeorm/query-builder/InsertQueryBuilder.d.ts +0 -118
  344. package/client/lib/typeorm/query-builder/JoinAttribute.d.ts +0 -84
  345. package/client/lib/typeorm/query-builder/NotBrackets.d.ts +0 -9
  346. package/client/lib/typeorm/query-builder/QueryBuilder.d.ts +0 -268
  347. package/client/lib/typeorm/query-builder/QueryBuilderCte.d.ts +0 -18
  348. package/client/lib/typeorm/query-builder/QueryBuilderUtils.d.ts +0 -11
  349. package/client/lib/typeorm/query-builder/QueryExpressionMap.d.ts +0 -306
  350. package/client/lib/typeorm/query-builder/QueryPartialEntity.d.ts +0 -16
  351. package/client/lib/typeorm/query-builder/RelationIdLoader.d.ts +0 -71
  352. package/client/lib/typeorm/query-builder/RelationLoader.d.ts +0 -60
  353. package/client/lib/typeorm/query-builder/RelationQueryBuilder.d.ts +0 -70
  354. package/client/lib/typeorm/query-builder/RelationRemover.d.ts +0 -17
  355. package/client/lib/typeorm/query-builder/RelationUpdater.d.ts +0 -17
  356. package/client/lib/typeorm/query-builder/ReturningResultsEntityUpdator.d.ts +0 -31
  357. package/client/lib/typeorm/query-builder/SelectQuery.d.ts +0 -6
  358. package/client/lib/typeorm/query-builder/SelectQueryBuilder.d.ts +0 -665
  359. package/client/lib/typeorm/query-builder/SelectQueryBuilderOption.d.ts +0 -2
  360. package/client/lib/typeorm/query-builder/SoftDeleteQueryBuilder.d.ts +0 -139
  361. package/client/lib/typeorm/query-builder/UpdateQueryBuilder.d.ts +0 -144
  362. package/client/lib/typeorm/query-builder/WhereClause.d.ts +0 -17
  363. package/client/lib/typeorm/query-builder/WhereExpressionBuilder.d.ts +0 -127
  364. package/client/lib/typeorm/query-builder/relation-count/RelationCountAttribute.d.ts +0 -54
  365. package/client/lib/typeorm/query-builder/relation-count/RelationCountLoadResult.d.ts +0 -9
  366. package/client/lib/typeorm/query-builder/relation-count/RelationCountLoader.d.ts +0 -12
  367. package/client/lib/typeorm/query-builder/relation-count/RelationCountMetadataToAttributeTransformer.d.ts +0 -8
  368. package/client/lib/typeorm/query-builder/relation-id/RelationIdAttribute.d.ts +0 -65
  369. package/client/lib/typeorm/query-builder/relation-id/RelationIdLoadResult.d.ts +0 -6
  370. package/client/lib/typeorm/query-builder/relation-id/RelationIdLoader.d.ts +0 -12
  371. package/client/lib/typeorm/query-builder/relation-id/RelationIdMetadataToAttributeTransformer.d.ts +0 -8
  372. package/client/lib/typeorm/query-builder/result/DeleteResult.d.ts +0 -17
  373. package/client/lib/typeorm/query-builder/result/InsertResult.d.ts +0 -23
  374. package/client/lib/typeorm/query-builder/result/UpdateResult.d.ts +0 -27
  375. package/client/lib/typeorm/query-builder/transformer/PlainObjectToDatabaseEntityTransformer.d.ts +0 -13
  376. package/client/lib/typeorm/query-builder/transformer/PlainObjectToNewEntityTransformer.d.ts +0 -15
  377. package/client/lib/typeorm/query-builder/transformer/RawSqlResultsToEntityTransformer.d.ts +0 -56
  378. package/client/lib/typeorm/query-runner/BaseQueryRunner.d.ts +0 -204
  379. package/client/lib/typeorm/query-runner/QueryResult.d.ts +0 -18
  380. package/client/lib/typeorm/query-runner/QueryRunner.d.ts +0 -359
  381. package/client/lib/typeorm/relation-path.d.ts +0 -7
  382. package/client/lib/typeorm/repository/AbstractRepository.d.ts +0 -52
  383. package/client/lib/typeorm/repository/BaseEntity.d.ts +0 -298
  384. package/client/lib/typeorm/repository/FindTreesOptions.d.ts +0 -10
  385. package/client/lib/typeorm/repository/RemoveOptions.d.ts +0 -28
  386. package/client/lib/typeorm/repository/Repository.d.ts +0 -292
  387. package/client/lib/typeorm/repository/SaveOptions.d.ts +0 -36
  388. package/client/lib/typeorm/repository/TreeRepository.d.ts +0 -56
  389. package/client/lib/typeorm/repository/UpsertOptions.d.ts +0 -11
  390. package/client/lib/typeorm/schema-builder/RdbmsSchemaBuilder.d.ts +0 -145
  391. package/client/lib/typeorm/schema-builder/SchemaBuilder.d.ts +0 -15
  392. package/client/lib/typeorm/schema-builder/options/TableCheckOptions.d.ts +0 -18
  393. package/client/lib/typeorm/schema-builder/options/TableColumnOptions.d.ts +0 -123
  394. package/client/lib/typeorm/schema-builder/options/TableExclusionOptions.d.ts +0 -14
  395. package/client/lib/typeorm/schema-builder/options/TableForeignKeyOptions.d.ts +0 -45
  396. package/client/lib/typeorm/schema-builder/options/TableIndexOptions.d.ts +0 -45
  397. package/client/lib/typeorm/schema-builder/options/TableOptions.d.ts +0 -62
  398. package/client/lib/typeorm/schema-builder/options/TableUniqueOptions.d.ts +0 -19
  399. package/client/lib/typeorm/schema-builder/options/ViewOptions.d.ts +0 -27
  400. package/client/lib/typeorm/schema-builder/table/Table.d.ts +0 -143
  401. package/client/lib/typeorm/schema-builder/table/TableCheck.d.ts +0 -30
  402. package/client/lib/typeorm/schema-builder/table/TableColumn.d.ts +0 -127
  403. package/client/lib/typeorm/schema-builder/table/TableExclusion.d.ts +0 -26
  404. package/client/lib/typeorm/schema-builder/table/TableForeignKey.d.ts +0 -58
  405. package/client/lib/typeorm/schema-builder/table/TableIndex.d.ts +0 -57
  406. package/client/lib/typeorm/schema-builder/table/TableUnique.d.ts +0 -31
  407. package/client/lib/typeorm/schema-builder/util/TableUtils.d.ts +0 -7
  408. package/client/lib/typeorm/schema-builder/util/ViewUtils.d.ts +0 -8
  409. package/client/lib/typeorm/schema-builder/view/View.d.ts +0 -38
  410. package/client/lib/typeorm/subscriber/Broadcaster.d.ts +0 -168
  411. package/client/lib/typeorm/subscriber/BroadcasterResult.d.ts +0 -18
  412. package/client/lib/typeorm/subscriber/EntitySubscriberInterface.d.ts +0 -93
  413. package/client/lib/typeorm/subscriber/event/InsertEvent.d.ts +0 -32
  414. package/client/lib/typeorm/subscriber/event/LoadEvent.d.ts +0 -32
  415. package/client/lib/typeorm/subscriber/event/RecoverEvent.d.ts +0 -7
  416. package/client/lib/typeorm/subscriber/event/RemoveEvent.d.ts +0 -41
  417. package/client/lib/typeorm/subscriber/event/SoftRemoveEvent.d.ts +0 -7
  418. package/client/lib/typeorm/subscriber/event/TransactionCommitEvent.d.ts +0 -23
  419. package/client/lib/typeorm/subscriber/event/TransactionRollbackEvent.d.ts +0 -23
  420. package/client/lib/typeorm/subscriber/event/TransactionStartEvent.d.ts +0 -23
  421. package/client/lib/typeorm/subscriber/event/UpdateEvent.d.ts +0 -47
  422. package/client/lib/typeorm/util/ApplyValueTransformers.d.ts +0 -6
  423. package/client/lib/typeorm/util/DateUtils.d.ts +0 -59
  424. package/client/lib/typeorm/util/DepGraph.d.ts +0 -65
  425. package/client/lib/typeorm/util/DirectoryExportedClassesLoader.d.ts +0 -10
  426. package/client/lib/typeorm/util/ImportUtils.d.ts +0 -2
  427. package/client/lib/typeorm/util/InstanceChecker.d.ts +0 -60
  428. package/client/lib/typeorm/util/ObjectUtils.d.ts +0 -38
  429. package/client/lib/typeorm/util/OrmUtils.d.ts +0 -53
  430. package/client/lib/typeorm/util/PathUtils.d.ts +0 -11
  431. package/client/lib/typeorm/util/RandomGenerator.d.ts +0 -16
  432. package/client/lib/typeorm/util/StringUtils.d.ts +0 -64
  433. package/client/lib/typeorm/util/TreeRepositoryUtils.d.ts +0 -24
  434. package/client/lib/typeorm/util/VersionUtils.d.ts +0 -5
  435. package/client/lib/typeorm/util/escapeRegExp.d.ts +0 -2
  436. package/client/public-api.d.ts +0 -2
@@ -1,562 +0,0 @@
1
- // @ts-nocheck
2
- import { QueryRunner, SelectQueryBuilder } from "..";
3
- import { ObjectLiteral } from "../common/ObjectLiteral";
4
- import { DataSource } from "../data-source/DataSource";
5
- import { OrderByCondition } from "../find-options/OrderByCondition";
6
- import { TableMetadataArgs } from "../metadata-args/TableMetadataArgs";
7
- import { TreeMetadataArgs } from "../metadata-args/TreeMetadataArgs";
8
- import { CheckMetadata } from "./CheckMetadata";
9
- import { ColumnMetadata } from "./ColumnMetadata";
10
- import { EmbeddedMetadata } from "./EmbeddedMetadata";
11
- import { EntityListenerMetadata } from "./EntityListenerMetadata";
12
- import { ExclusionMetadata } from "./ExclusionMetadata";
13
- import { ForeignKeyMetadata } from "./ForeignKeyMetadata";
14
- import { IndexMetadata } from "./IndexMetadata";
15
- import { RelationCountMetadata } from "./RelationCountMetadata";
16
- import { RelationIdMetadata } from "./RelationIdMetadata";
17
- import { RelationMetadata } from "./RelationMetadata";
18
- import { TableType } from "./types/TableTypes";
19
- import { TreeType } from "./types/TreeTypes";
20
- import { UniqueMetadata } from "./UniqueMetadata";
21
- import { ClosureTreeOptions } from "./types/ClosureTreeOptions";
22
- /**
23
- * Contains all entity metadata.
24
- */
25
- export declare class EntityMetadata {
26
- readonly "@instanceof": symbol;
27
- /**
28
- * Connection where this entity metadata is created.
29
- */
30
- connection: DataSource;
31
- /**
32
- * Metadata arguments used to build this entity metadata.
33
- */
34
- tableMetadataArgs: TableMetadataArgs;
35
- /**
36
- * If entity's table is a closure-typed table, then this entity will have a closure junction table metadata.
37
- */
38
- closureJunctionTable: EntityMetadata;
39
- /**
40
- * If this is entity metadata for a junction closure table then its owner closure table metadata will be set here.
41
- */
42
- parentClosureEntityMetadata: EntityMetadata;
43
- /**
44
- * Parent's entity metadata. Used in inheritance patterns.
45
- */
46
- parentEntityMetadata: EntityMetadata;
47
- /**
48
- * Children entity metadatas. Used in inheritance patterns.
49
- */
50
- childEntityMetadatas: EntityMetadata[];
51
- /**
52
- * All "inheritance tree" from a target entity.
53
- * For example for target Post < ContentModel < Unit it will be an array of [Post, ContentModel, Unit].
54
- * It also contains child entities for single table inheritance.
55
- */
56
- inheritanceTree: Function[];
57
- /**
58
- * Table type. Tables can be closure, junction, etc.
59
- */
60
- tableType: TableType;
61
- /**
62
- * Target class to which this entity metadata is bind.
63
- * Note, that when using table inheritance patterns target can be different rather then table's target.
64
- * For virtual tables which lack of real entity (like junction tables) target is equal to their table name.
65
- */
66
- target: Function | string;
67
- /**
68
- * Gets the name of the target.
69
- */
70
- targetName: string;
71
- /**
72
- * Entity's name.
73
- * Equal to entity target class's name if target is set to table.
74
- * If target class is not then then it equals to table name.
75
- */
76
- name: string;
77
- /**
78
- * View's expression.
79
- * Used in views
80
- */
81
- expression?: string | ((connection: DataSource) => SelectQueryBuilder<any>);
82
- /**
83
- * View's dependencies.
84
- * Used in views
85
- */
86
- dependsOn?: Set<Function | string>;
87
- /**
88
- * Enables Sqlite "WITHOUT ROWID" modifier for the "CREATE TABLE" statement
89
- */
90
- withoutRowid?: boolean;
91
- /**
92
- * Original user-given table name (taken from schema or @Entity(tableName) decorator).
93
- * If user haven't specified a table name this property will be undefined.
94
- */
95
- givenTableName?: string;
96
- /**
97
- * Entity table name in the database.
98
- * This is final table name of the entity.
99
- * This name already passed naming strategy, and generated based on
100
- * multiple criteria, including user table name and global table prefix.
101
- */
102
- tableName: string;
103
- /**
104
- * Entity table path. Contains database name, schema name and table name.
105
- * E.g. myDB.mySchema.myTable
106
- */
107
- tablePath: string;
108
- /**
109
- * Gets the table name without global table prefix.
110
- * When querying table you need a table name with prefix, but in some scenarios,
111
- * for example when you want to name a junction table that contains names of two other tables,
112
- * you may want a table name without prefix.
113
- */
114
- tableNameWithoutPrefix: string;
115
- /**
116
- * Indicates if schema will be synchronized for this entity or not.
117
- */
118
- synchronize: boolean;
119
- /**
120
- * Table's database engine type (like "InnoDB", "MyISAM", etc).
121
- */
122
- engine?: string;
123
- /**
124
- * Database name.
125
- */
126
- database?: string;
127
- /**
128
- * Schema name. Used in Postgres and Sql Server.
129
- */
130
- schema?: string;
131
- /**
132
- * Specifies a default order by used for queries from this table when no explicit order by is specified.
133
- */
134
- orderBy?: OrderByCondition;
135
- /**
136
- * If this entity metadata's table using one of the inheritance patterns,
137
- * then this will contain what pattern it uses.
138
- */
139
- inheritancePattern?: "STI";
140
- /**
141
- * Checks if there any non-nullable column exist in this entity.
142
- */
143
- hasNonNullableRelations: boolean;
144
- /**
145
- * Indicates if this entity metadata of a junction table, or not.
146
- * Junction table is a table created by many-to-many relationship.
147
- *
148
- * Its also possible to understand if entity is junction via tableType.
149
- */
150
- isJunction: boolean;
151
- /**
152
- * Indicates if the entity should be instantiated using the constructor
153
- * or via allocating a new object via `Object.create()`.
154
- */
155
- isAlwaysUsingConstructor: boolean;
156
- /**
157
- * Indicates if this entity is a tree, what type of tree it is.
158
- */
159
- treeType?: TreeType;
160
- /**
161
- * Indicates if this entity is a tree, what options of tree it has.
162
- */
163
- treeOptions?: ClosureTreeOptions;
164
- /**
165
- * Checks if this table is a junction table of the closure table.
166
- * This type is for tables that contain junction metadata of the closure tables.
167
- */
168
- isClosureJunction: boolean;
169
- /**
170
- * Checks if entity's table has multiple primary columns.
171
- */
172
- hasMultiplePrimaryKeys: boolean;
173
- /**
174
- * Indicates if this entity metadata has uuid generated columns.
175
- */
176
- hasUUIDGeneratedColumns: boolean;
177
- /**
178
- * If this entity metadata is a child table of some table, it should have a discriminator value.
179
- * Used to store a value in a discriminator column.
180
- */
181
- discriminatorValue?: string;
182
- /**
183
- * Entity's column metadatas defined by user.
184
- */
185
- ownColumns: ColumnMetadata[];
186
- /**
187
- * Columns of the entity, including columns that are coming from the embeddeds of this entity.
188
- */
189
- columns: ColumnMetadata[];
190
- /**
191
- * Ancestor columns used only in closure junction tables.
192
- */
193
- ancestorColumns: ColumnMetadata[];
194
- /**
195
- * Descendant columns used only in closure junction tables.
196
- */
197
- descendantColumns: ColumnMetadata[];
198
- /**
199
- * All columns except for virtual columns.
200
- */
201
- nonVirtualColumns: ColumnMetadata[];
202
- /**
203
- * In the case if this entity metadata is junction table's entity metadata,
204
- * this will contain all referenced columns of owner entity.
205
- */
206
- ownerColumns: ColumnMetadata[];
207
- /**
208
- * In the case if this entity metadata is junction table's entity metadata,
209
- * this will contain all referenced columns of inverse entity.
210
- */
211
- inverseColumns: ColumnMetadata[];
212
- /**
213
- * Gets the column with generated flag.
214
- */
215
- generatedColumns: ColumnMetadata[];
216
- /**
217
- * Gets the object id column used with mongodb database.
218
- */
219
- objectIdColumn?: ColumnMetadata;
220
- /**
221
- * Gets entity column which contains a create date value.
222
- */
223
- createDateColumn?: ColumnMetadata;
224
- /**
225
- * Gets entity column which contains an update date value.
226
- */
227
- updateDateColumn?: ColumnMetadata;
228
- /**
229
- * Gets entity column which contains a delete date value.
230
- */
231
- deleteDateColumn?: ColumnMetadata;
232
- /**
233
- * Gets entity column which contains an entity version.
234
- */
235
- versionColumn?: ColumnMetadata;
236
- /**
237
- * Gets the discriminator column used to store entity identificator in single-table inheritance tables.
238
- */
239
- discriminatorColumn?: ColumnMetadata;
240
- /**
241
- * Special column that stores tree level in tree entities.
242
- */
243
- treeLevelColumn?: ColumnMetadata;
244
- /**
245
- * Nested set's left value column.
246
- * Used only in tree entities with nested set pattern applied.
247
- */
248
- nestedSetLeftColumn?: ColumnMetadata;
249
- /**
250
- * Nested set's right value column.
251
- * Used only in tree entities with nested set pattern applied.
252
- */
253
- nestedSetRightColumn?: ColumnMetadata;
254
- /**
255
- * Materialized path column.
256
- * Used only in tree entities with materialized path pattern applied.
257
- */
258
- materializedPathColumn?: ColumnMetadata;
259
- /**
260
- * Gets the primary columns.
261
- */
262
- primaryColumns: ColumnMetadata[];
263
- /**
264
- * Entity's relation metadatas.
265
- */
266
- ownRelations: RelationMetadata[];
267
- /**
268
- * Relations of the entity, including relations that are coming from the embeddeds of this entity.
269
- */
270
- relations: RelationMetadata[];
271
- /**
272
- * List of eager relations this metadata has.
273
- */
274
- eagerRelations: RelationMetadata[];
275
- /**
276
- * List of eager relations this metadata has.
277
- */
278
- lazyRelations: RelationMetadata[];
279
- /**
280
- * Gets only one-to-one relations of the entity.
281
- */
282
- oneToOneRelations: RelationMetadata[];
283
- /**
284
- * Gets only owner one-to-one relations of the entity.
285
- */
286
- ownerOneToOneRelations: RelationMetadata[];
287
- /**
288
- * Gets only one-to-many relations of the entity.
289
- */
290
- oneToManyRelations: RelationMetadata[];
291
- /**
292
- * Gets only many-to-one relations of the entity.
293
- */
294
- manyToOneRelations: RelationMetadata[];
295
- /**
296
- * Gets only many-to-many relations of the entity.
297
- */
298
- manyToManyRelations: RelationMetadata[];
299
- /**
300
- * Gets only owner many-to-many relations of the entity.
301
- */
302
- ownerManyToManyRelations: RelationMetadata[];
303
- /**
304
- * Gets only owner one-to-one and many-to-one relations.
305
- */
306
- relationsWithJoinColumns: RelationMetadata[];
307
- /**
308
- * Tree parent relation. Used only in tree-tables.
309
- */
310
- treeParentRelation?: RelationMetadata;
311
- /**
312
- * Tree children relation. Used only in tree-tables.
313
- */
314
- treeChildrenRelation?: RelationMetadata;
315
- /**
316
- * Entity's relation id metadatas.
317
- */
318
- relationIds: RelationIdMetadata[];
319
- /**
320
- * Entity's relation id metadatas.
321
- */
322
- relationCounts: RelationCountMetadata[];
323
- /**
324
- * Entity's foreign key metadatas.
325
- */
326
- foreignKeys: ForeignKeyMetadata[];
327
- /**
328
- * Entity's embedded metadatas.
329
- */
330
- embeddeds: EmbeddedMetadata[];
331
- /**
332
- * All embeddeds - embeddeds from this entity metadata and from all child embeddeds, etc.
333
- */
334
- allEmbeddeds: EmbeddedMetadata[];
335
- /**
336
- * Entity's own indices.
337
- */
338
- ownIndices: IndexMetadata[];
339
- /**
340
- * Entity's index metadatas.
341
- */
342
- indices: IndexMetadata[];
343
- /**
344
- * Entity's unique metadatas.
345
- */
346
- uniques: UniqueMetadata[];
347
- /**
348
- * Entity's own uniques.
349
- */
350
- ownUniques: UniqueMetadata[];
351
- /**
352
- * Entity's check metadatas.
353
- */
354
- checks: CheckMetadata[];
355
- /**
356
- * Entity's exclusion metadatas.
357
- */
358
- exclusions: ExclusionMetadata[];
359
- /**
360
- * Entity's own listener metadatas.
361
- */
362
- ownListeners: EntityListenerMetadata[];
363
- /**
364
- * Entity listener metadatas.
365
- */
366
- listeners: EntityListenerMetadata[];
367
- /**
368
- * Listener metadatas with "AFTER LOAD" type.
369
- */
370
- afterLoadListeners: EntityListenerMetadata[];
371
- /**
372
- * Listener metadatas with "AFTER INSERT" type.
373
- */
374
- beforeInsertListeners: EntityListenerMetadata[];
375
- /**
376
- * Listener metadatas with "AFTER INSERT" type.
377
- */
378
- afterInsertListeners: EntityListenerMetadata[];
379
- /**
380
- * Listener metadatas with "AFTER UPDATE" type.
381
- */
382
- beforeUpdateListeners: EntityListenerMetadata[];
383
- /**
384
- * Listener metadatas with "AFTER UPDATE" type.
385
- */
386
- afterUpdateListeners: EntityListenerMetadata[];
387
- /**
388
- * Listener metadatas with "AFTER REMOVE" type.
389
- */
390
- beforeRemoveListeners: EntityListenerMetadata[];
391
- /**
392
- * Listener metadatas with "BEFORE SOFT REMOVE" type.
393
- */
394
- beforeSoftRemoveListeners: EntityListenerMetadata[];
395
- /**
396
- * Listener metadatas with "BEFORE RECOVER" type.
397
- */
398
- beforeRecoverListeners: EntityListenerMetadata[];
399
- /**
400
- * Listener metadatas with "AFTER REMOVE" type.
401
- */
402
- afterRemoveListeners: EntityListenerMetadata[];
403
- /**
404
- * Listener metadatas with "AFTER SOFT REMOVE" type.
405
- */
406
- afterSoftRemoveListeners: EntityListenerMetadata[];
407
- /**
408
- * Listener metadatas with "AFTER RECOVER" type.
409
- */
410
- afterRecoverListeners: EntityListenerMetadata[];
411
- /**
412
- * Map of columns and relations of the entity.
413
- *
414
- * example: Post{ id: number, name: string, counterEmbed: { count: number }, category: Category }.
415
- * This method will create following object:
416
- * { id: "id", counterEmbed: { count: "counterEmbed.count" }, category: "category" }
417
- */
418
- propertiesMap: ObjectLiteral;
419
- constructor(options: {
420
- connection: DataSource;
421
- inheritanceTree?: Function[];
422
- inheritancePattern?: "STI";
423
- tableTree?: TreeMetadataArgs;
424
- parentClosureEntityMetadata?: EntityMetadata;
425
- args: TableMetadataArgs;
426
- });
427
- /**
428
- * Creates a new entity.
429
- */
430
- create(queryRunner?: QueryRunner, options?: {
431
- fromDeserializer?: boolean;
432
- pojo?: boolean;
433
- }): any;
434
- /**
435
- * Checks if given entity has an id.
436
- */
437
- hasId(entity: ObjectLiteral): boolean;
438
- /**
439
- * Checks if given entity / object contains ALL primary keys entity must have.
440
- * Returns true if it contains all of them, false if at least one of them is not defined.
441
- */
442
- hasAllPrimaryKeys(entity: ObjectLiteral): boolean;
443
- /**
444
- * Ensures that given object is an entity id map.
445
- * If given id is an object then it means its already id map.
446
- * If given id isn't an object then it means its a value of the id column
447
- * and it creates a new id map with this value and name of the primary column.
448
- */
449
- ensureEntityIdMap(id: any): ObjectLiteral;
450
- /**
451
- * Gets primary keys of the entity and returns them in a literal object.
452
- * For example, for Post{ id: 1, title: "hello" } where id is primary it will return { id: 1 }
453
- * For multiple primary keys it returns multiple keys in object.
454
- * For primary keys inside embeds it returns complex object literal with keys in them.
455
- */
456
- getEntityIdMap(entity: ObjectLiteral | undefined): ObjectLiteral | undefined;
457
- /**
458
- * Creates a "mixed id map".
459
- * If entity has multiple primary keys (ids) then it will return just regular id map, like what getEntityIdMap returns.
460
- * But if entity has a single primary key then it will return just value of the id column of the entity, just value.
461
- * This is called mixed id map.
462
- */
463
- getEntityIdMixedMap(entity: ObjectLiteral | undefined): ObjectLiteral | undefined;
464
- /**
465
- * Compares two different entities by their ids.
466
- * Returns true if they match, false otherwise.
467
- */
468
- compareEntities(firstEntity: ObjectLiteral, secondEntity: ObjectLiteral): boolean;
469
- /**
470
- * Finds column with a given property name.
471
- */
472
- findColumnWithPropertyName(propertyName: string): ColumnMetadata | undefined;
473
- /**
474
- * Finds column with a given database name.
475
- */
476
- findColumnWithDatabaseName(databaseName: string): ColumnMetadata | undefined;
477
- /**
478
- * Checks if there is a column or relationship with a given property path.
479
- */
480
- hasColumnWithPropertyPath(propertyPath: string): boolean;
481
- /**
482
- * Finds column with a given property path.
483
- */
484
- findColumnWithPropertyPath(propertyPath: string): ColumnMetadata | undefined;
485
- /**
486
- * Finds column with a given property path.
487
- * Does not search in relation unlike findColumnWithPropertyPath.
488
- */
489
- findColumnWithPropertyPathStrict(propertyPath: string): ColumnMetadata | undefined;
490
- /**
491
- * Finds columns with a given property path.
492
- * Property path can match a relation, and relations can contain multiple columns.
493
- */
494
- findColumnsWithPropertyPath(propertyPath: string): ColumnMetadata[];
495
- /**
496
- * Checks if there is a relation with the given property path.
497
- */
498
- hasRelationWithPropertyPath(propertyPath: string): boolean;
499
- /**
500
- * Finds relation with the given property path.
501
- */
502
- findRelationWithPropertyPath(propertyPath: string): RelationMetadata | undefined;
503
- /**
504
- * Checks if there is an embedded with a given property path.
505
- */
506
- hasEmbeddedWithPropertyPath(propertyPath: string): boolean;
507
- /**
508
- * Finds embedded with a given property path.
509
- */
510
- findEmbeddedWithPropertyPath(propertyPath: string): EmbeddedMetadata | undefined;
511
- /**
512
- * Returns an array of databaseNames mapped from provided propertyPaths
513
- */
514
- mapPropertyPathsToColumns(propertyPaths: string[]): ColumnMetadata[];
515
- /**
516
- * Iterates through entity and finds and extracts all values from relations in the entity.
517
- * If relation value is an array its being flattened.
518
- */
519
- extractRelationValuesFromEntity(entity: ObjectLiteral, relations: RelationMetadata[]): [RelationMetadata, any, EntityMetadata][];
520
- private getInverseEntityMetadata;
521
- /**
522
- * Creates a property paths for a given entity.
523
- *
524
- * @deprecated
525
- */
526
- static createPropertyPath(metadata: EntityMetadata, entity: ObjectLiteral, prefix?: string): string[];
527
- /**
528
- * Finds difference between two entity id maps.
529
- * Returns items that exist in the first array and absent in the second array.
530
- */
531
- static difference(firstIdMaps: ObjectLiteral[], secondIdMaps: ObjectLiteral[]): ObjectLiteral[];
532
- /**
533
- * Creates value map from the given values and columns.
534
- * Examples of usages are primary columns map and join columns map.
535
- */
536
- static getValueMap(entity: ObjectLiteral, columns: ColumnMetadata[], options?: {
537
- skipNulls?: boolean;
538
- }): ObjectLiteral | undefined;
539
- build(): void;
540
- /**
541
- * Registers a new column in the entity and recomputes all depend properties.
542
- */
543
- registerColumn(column: ColumnMetadata): void;
544
- /**
545
- * Creates a special object - all columns and relations of the object (plus columns and relations from embeds)
546
- * in a special format - { propertyName: propertyName }.
547
- *
548
- * example: Post{ id: number, name: string, counterEmbed: { count: number }, category: Category }.
549
- * This method will create following object:
550
- * { id: "id", counterEmbed: { count: "counterEmbed.count" }, category: "category" }
551
- */
552
- createPropertiesMap(): {
553
- [name: string]: string | any;
554
- };
555
- /**
556
- * Checks if entity has any column which rely on returning data,
557
- * e.g. columns with auto generated value, DEFAULT values considered as dependant of returning data.
558
- * For example, if we need to have RETURNING after INSERT (or we need returned id for DBs not supporting RETURNING),
559
- * it means we cannot execute bulk inserts in some cases.
560
- */
561
- getInsertionReturningColumns(): ColumnMetadata[];
562
- }
@@ -1,40 +0,0 @@
1
- // @ts-nocheck
2
- import { EntityMetadata } from "./EntityMetadata";
3
- import { NamingStrategyInterface } from "../naming-strategy/NamingStrategyInterface";
4
- import { ExclusionMetadataArgs } from "../metadata-args/ExclusionMetadataArgs";
5
- /**
6
- * Exclusion metadata contains all information about table's exclusion constraints.
7
- */
8
- export declare class ExclusionMetadata {
9
- /**
10
- * Entity metadata of the class to which this exclusion constraint is applied.
11
- */
12
- entityMetadata: EntityMetadata;
13
- /**
14
- * Target class to which metadata is applied.
15
- */
16
- target?: Function | string;
17
- /**
18
- * Exclusion expression.
19
- */
20
- expression: string;
21
- /**
22
- * User specified exclusion constraint name.
23
- */
24
- givenName?: string;
25
- /**
26
- * Final exclusion constraint name.
27
- * If exclusion constraint name was given by a user then it stores normalized (by naming strategy) givenName.
28
- * If exclusion constraint name was not given then its generated.
29
- */
30
- name: string;
31
- constructor(options: {
32
- entityMetadata: EntityMetadata;
33
- args?: ExclusionMetadataArgs;
34
- });
35
- /**
36
- * Builds some depend exclusion constraint properties.
37
- * Must be called after all entity metadata's properties map, columns and relations are built.
38
- */
39
- build(namingStrategy: NamingStrategyInterface): this;
40
- }
@@ -1,78 +0,0 @@
1
- // @ts-nocheck
2
- import { ColumnMetadata } from "./ColumnMetadata";
3
- import { EntityMetadata } from "./EntityMetadata";
4
- import { NamingStrategyInterface } from "../naming-strategy/NamingStrategyInterface";
5
- import { DeferrableType } from "./types/DeferrableType";
6
- import { OnDeleteType } from "./types/OnDeleteType";
7
- import { OnUpdateType } from "./types/OnUpdateType";
8
- /**
9
- * Contains all information about entity's foreign key.
10
- */
11
- export declare class ForeignKeyMetadata {
12
- /**
13
- * Entity metadata where this foreign key is.
14
- */
15
- entityMetadata: EntityMetadata;
16
- /**
17
- * Entity metadata which this foreign key references.
18
- */
19
- referencedEntityMetadata: EntityMetadata;
20
- /**
21
- * Array of columns of this foreign key.
22
- */
23
- columns: ColumnMetadata[];
24
- /**
25
- * Array of referenced columns.
26
- */
27
- referencedColumns: ColumnMetadata[];
28
- /**
29
- * What to do with a relation on deletion of the row containing a foreign key.
30
- */
31
- onDelete?: OnDeleteType;
32
- /**
33
- * What to do with a relation on update of the row containing a foreign key.
34
- */
35
- onUpdate?: OnUpdateType;
36
- /**
37
- * When to check the constraints of a foreign key.
38
- */
39
- deferrable?: DeferrableType;
40
- /**
41
- * Gets the table name to which this foreign key is referenced.
42
- */
43
- referencedTablePath: string;
44
- /**
45
- * Gets foreign key name.
46
- * If unique constraint name was given by a user then it stores givenName.
47
- * If unique constraint name was not given then its generated.
48
- */
49
- name: string;
50
- /**
51
- * Gets array of column names.
52
- */
53
- columnNames: string[];
54
- /**
55
- * Gets array of referenced column names.
56
- */
57
- referencedColumnNames: string[];
58
- /**
59
- * User specified unique constraint name.
60
- */
61
- givenName?: string;
62
- constructor(options: {
63
- entityMetadata: EntityMetadata;
64
- referencedEntityMetadata: EntityMetadata;
65
- namingStrategy?: NamingStrategyInterface;
66
- columns: ColumnMetadata[];
67
- referencedColumns: ColumnMetadata[];
68
- onDelete?: OnDeleteType;
69
- onUpdate?: OnUpdateType;
70
- deferrable?: DeferrableType;
71
- name?: string;
72
- });
73
- /**
74
- * Builds some depend foreign key properties.
75
- * Must be called after all entity metadatas and their columns are built.
76
- */
77
- build(namingStrategy: NamingStrategyInterface): void;
78
- }