taon-typeorm 19.0.21 → 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 (432) 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/websql/package.json +1 -1
  25. package/client/README.md +0 -24
  26. package/client/fesm2022/taon-typeorm.mjs +0 -30436
  27. package/client/fesm2022/taon-typeorm.mjs.map +0 -1
  28. package/client/index.d.ts +0 -6
  29. package/client/lib/index.d.ts +0 -2
  30. package/client/lib/typeorm/cache/DbQueryResultCache.d.ts +0 -53
  31. package/client/lib/typeorm/cache/QueryResultCache.d.ts +0 -40
  32. package/client/lib/typeorm/cache/QueryResultCacheFactory.d.ts +0 -14
  33. package/client/lib/typeorm/cache/QueryResultCacheOptions.d.ts +0 -27
  34. package/client/lib/typeorm/cache/RedisQueryResultCache.d.ts +0 -66
  35. package/client/lib/typeorm/common/DeepPartial.d.ts +0 -7
  36. package/client/lib/typeorm/common/EntityTarget.d.ts +0 -10
  37. package/client/lib/typeorm/common/MixedList.d.ts +0 -9
  38. package/client/lib/typeorm/common/ObjectLiteral.d.ts +0 -7
  39. package/client/lib/typeorm/common/ObjectType.d.ts +0 -7
  40. package/client/lib/typeorm/common/RelationType.d.ts +0 -15
  41. package/client/lib/typeorm/connection/Connection.d.ts +0 -11
  42. package/client/lib/typeorm/connection/ConnectionManager.d.ts +0 -34
  43. package/client/lib/typeorm/connection/ConnectionMetadataBuilder.d.ts +0 -25
  44. package/client/lib/typeorm/connection/ConnectionOptions.d.ts +0 -10
  45. package/client/lib/typeorm/connection/ConnectionOptionsReader.d.ts +0 -65
  46. package/client/lib/typeorm/constants.d.ts +0 -2
  47. package/client/lib/typeorm/container.d.ts +0 -40
  48. package/client/lib/typeorm/data-source/BaseDataSourceOptions.d.ts +0 -172
  49. package/client/lib/typeorm/data-source/DataSource.d.ts +0 -247
  50. package/client/lib/typeorm/data-source/DataSourceOptions.d.ts +0 -9
  51. package/client/lib/typeorm/data-source/index.d.ts +0 -3
  52. package/client/lib/typeorm/decorator/Check.d.ts +0 -13
  53. package/client/lib/typeorm/decorator/EntityRepository.d.ts +0 -10
  54. package/client/lib/typeorm/decorator/Exclusion.d.ts +0 -13
  55. package/client/lib/typeorm/decorator/Generated.d.ts +0 -11
  56. package/client/lib/typeorm/decorator/Index.d.ts +0 -50
  57. package/client/lib/typeorm/decorator/Unique.d.ts +0 -22
  58. package/client/lib/typeorm/decorator/columns/Column.d.ts +0 -75
  59. package/client/lib/typeorm/decorator/columns/CreateDateColumn.d.ts +0 -8
  60. package/client/lib/typeorm/decorator/columns/DeleteDateColumn.d.ts +0 -7
  61. package/client/lib/typeorm/decorator/columns/ObjectIdColumn.d.ts +0 -7
  62. package/client/lib/typeorm/decorator/columns/PrimaryColumn.d.ts +0 -22
  63. package/client/lib/typeorm/decorator/columns/PrimaryGeneratedColumn.d.ts +0 -25
  64. package/client/lib/typeorm/decorator/columns/UpdateDateColumn.d.ts +0 -7
  65. package/client/lib/typeorm/decorator/columns/VersionColumn.d.ts +0 -8
  66. package/client/lib/typeorm/decorator/columns/ViewColumn.d.ts +0 -6
  67. package/client/lib/typeorm/decorator/columns/VirtualColumn.d.ts +0 -11
  68. package/client/lib/typeorm/decorator/entity/ChildEntity.d.ts +0 -5
  69. package/client/lib/typeorm/decorator/entity/Entity.d.ts +0 -12
  70. package/client/lib/typeorm/decorator/entity/TableInheritance.d.ts +0 -9
  71. package/client/lib/typeorm/decorator/entity-view/ViewEntity.d.ts +0 -12
  72. package/client/lib/typeorm/decorator/listeners/AfterInsert.d.ts +0 -5
  73. package/client/lib/typeorm/decorator/listeners/AfterLoad.d.ts +0 -5
  74. package/client/lib/typeorm/decorator/listeners/AfterRecover.d.ts +0 -5
  75. package/client/lib/typeorm/decorator/listeners/AfterRemove.d.ts +0 -5
  76. package/client/lib/typeorm/decorator/listeners/AfterSoftRemove.d.ts +0 -5
  77. package/client/lib/typeorm/decorator/listeners/AfterUpdate.d.ts +0 -5
  78. package/client/lib/typeorm/decorator/listeners/BeforeInsert.d.ts +0 -5
  79. package/client/lib/typeorm/decorator/listeners/BeforeRecover.d.ts +0 -5
  80. package/client/lib/typeorm/decorator/listeners/BeforeRemove.d.ts +0 -5
  81. package/client/lib/typeorm/decorator/listeners/BeforeSoftRemove.d.ts +0 -5
  82. package/client/lib/typeorm/decorator/listeners/BeforeUpdate.d.ts +0 -5
  83. package/client/lib/typeorm/decorator/listeners/EventSubscriber.d.ts +0 -6
  84. package/client/lib/typeorm/decorator/options/ColumnCommonOptions.d.ts +0 -58
  85. package/client/lib/typeorm/decorator/options/ColumnEmbeddedOptions.d.ts +0 -17
  86. package/client/lib/typeorm/decorator/options/ColumnEnumOptions.d.ts +0 -14
  87. package/client/lib/typeorm/decorator/options/ColumnHstoreOptions.d.ts +0 -11
  88. package/client/lib/typeorm/decorator/options/ColumnNumericOptions.d.ts +0 -25
  89. package/client/lib/typeorm/decorator/options/ColumnOptions.d.ts +0 -159
  90. package/client/lib/typeorm/decorator/options/ColumnWithLengthOptions.d.ts +0 -11
  91. package/client/lib/typeorm/decorator/options/ColumnWithWidthOptions.d.ts +0 -20
  92. package/client/lib/typeorm/decorator/options/EntityOptions.d.ts +0 -43
  93. package/client/lib/typeorm/decorator/options/IndexOptions.d.ts +0 -53
  94. package/client/lib/typeorm/decorator/options/JoinColumnOptions.d.ts +0 -18
  95. package/client/lib/typeorm/decorator/options/JoinTableMultipleColumnsOptions.d.ts +0 -30
  96. package/client/lib/typeorm/decorator/options/JoinTableOptions.d.ts +0 -30
  97. package/client/lib/typeorm/decorator/options/PrimaryGeneratedColumnIdentityOptions.d.ts +0 -27
  98. package/client/lib/typeorm/decorator/options/PrimaryGeneratedColumnNumericOptions.d.ts +0 -32
  99. package/client/lib/typeorm/decorator/options/PrimaryGeneratedColumnUUIDOptions.d.ts +0 -18
  100. package/client/lib/typeorm/decorator/options/RelationOptions.d.ts +0 -65
  101. package/client/lib/typeorm/decorator/options/SpatialColumnOptions.d.ts +0 -16
  102. package/client/lib/typeorm/decorator/options/UniqueOptions.d.ts +0 -11
  103. package/client/lib/typeorm/decorator/options/ValueTransformer.d.ts +0 -14
  104. package/client/lib/typeorm/decorator/options/ViewColumnOptions.d.ts +0 -16
  105. package/client/lib/typeorm/decorator/options/ViewEntityOptions.d.ts +0 -40
  106. package/client/lib/typeorm/decorator/options/VirtualColumnOptions.d.ts +0 -28
  107. package/client/lib/typeorm/decorator/relations/JoinColumn.d.ts +0 -20
  108. package/client/lib/typeorm/decorator/relations/JoinTable.d.ts +0 -18
  109. package/client/lib/typeorm/decorator/relations/ManyToMany.d.ts +0 -15
  110. package/client/lib/typeorm/decorator/relations/ManyToOne.d.ts +0 -15
  111. package/client/lib/typeorm/decorator/relations/OneToMany.d.ts +0 -9
  112. package/client/lib/typeorm/decorator/relations/OneToOne.d.ts +0 -13
  113. package/client/lib/typeorm/decorator/relations/RelationCount.d.ts +0 -8
  114. package/client/lib/typeorm/decorator/relations/RelationId.d.ts +0 -8
  115. package/client/lib/typeorm/decorator/tree/Tree.d.ts +0 -10
  116. package/client/lib/typeorm/decorator/tree/TreeChildren.d.ts +0 -8
  117. package/client/lib/typeorm/decorator/tree/TreeLevelColumn.d.ts +0 -5
  118. package/client/lib/typeorm/decorator/tree/TreeParent.d.ts +0 -9
  119. package/client/lib/typeorm/driver/Driver.d.ts +0 -208
  120. package/client/lib/typeorm/driver/DriverFactory.d.ts +0 -12
  121. package/client/lib/typeorm/driver/DriverUtils.d.ts +0 -62
  122. package/client/lib/typeorm/driver/Query.d.ts +0 -10
  123. package/client/lib/typeorm/driver/SqlInMemory.d.ts +0 -9
  124. package/client/lib/typeorm/driver/cordova/CordovaConnectionOptions.d.ts +0 -25
  125. package/client/lib/typeorm/driver/cordova/CordovaDriver.d.ts +0 -26
  126. package/client/lib/typeorm/driver/cordova/CordovaQueryRunner.d.ts +0 -81
  127. package/client/lib/typeorm/driver/mongodb/typings.d.ts +0 -46
  128. package/client/lib/typeorm/driver/nativescript/NativescriptConnectionOptions.d.ts +0 -46
  129. package/client/lib/typeorm/driver/nativescript/NativescriptDriver.d.ts +0 -45
  130. package/client/lib/typeorm/driver/nativescript/NativescriptQueryRunner.d.ts +0 -30
  131. package/client/lib/typeorm/driver/react-native/ReactNativeConnectionOptions.d.ts +0 -25
  132. package/client/lib/typeorm/driver/react-native/ReactNativeDriver.d.ts +0 -26
  133. package/client/lib/typeorm/driver/react-native/ReactNativeQueryRunner.d.ts +0 -30
  134. package/client/lib/typeorm/driver/sqlite-abstract/AbstractSqliteDriver.d.ts +0 -238
  135. package/client/lib/typeorm/driver/sqlite-abstract/AbstractSqliteQueryRunner.d.ts +0 -301
  136. package/client/lib/typeorm/driver/sqljs/SqljsConnectionOptions.d.ts +0 -47
  137. package/client/lib/typeorm/driver/sqljs/SqljsDriver.d.ts +0 -68
  138. package/client/lib/typeorm/driver/sqljs/SqljsQueryRunner.d.ts +0 -36
  139. package/client/lib/typeorm/driver/types/ColumnTypes.d.ts +0 -26
  140. package/client/lib/typeorm/driver/types/CteCapabilities.d.ts +0 -19
  141. package/client/lib/typeorm/driver/types/DataTypeDefaults.d.ts +0 -9
  142. package/client/lib/typeorm/driver/types/DatabaseType.d.ts +0 -5
  143. package/client/lib/typeorm/driver/types/IsolationLevel.d.ts +0 -2
  144. package/client/lib/typeorm/driver/types/MappedColumnTypes.d.ts +0 -113
  145. package/client/lib/typeorm/driver/types/MetadataTableType.d.ts +0 -6
  146. package/client/lib/typeorm/driver/types/ReplicationMode.d.ts +0 -2
  147. package/client/lib/typeorm/driver/types/UpsertType.d.ts +0 -2
  148. package/client/lib/typeorm/entity-manager/EntityManager.d.ts +0 -353
  149. package/client/lib/typeorm/entity-manager/EntityManagerFactory.d.ts +0 -13
  150. package/client/lib/typeorm/entity-manager/SqljsEntityManager.d.ts +0 -27
  151. package/client/lib/typeorm/entity-schema/EntitySchema.d.ts +0 -10
  152. package/client/lib/typeorm/entity-schema/EntitySchemaCheckOptions.d.ts +0 -11
  153. package/client/lib/typeorm/entity-schema/EntitySchemaColumnOptions.d.ts +0 -175
  154. package/client/lib/typeorm/entity-schema/EntitySchemaEmbeddedColumnOptions.d.ts +0 -19
  155. package/client/lib/typeorm/entity-schema/EntitySchemaEmbeddedError.d.ts +0 -7
  156. package/client/lib/typeorm/entity-schema/EntitySchemaExclusionOptions.d.ts +0 -11
  157. package/client/lib/typeorm/entity-schema/EntitySchemaIndexOptions.d.ts +0 -54
  158. package/client/lib/typeorm/entity-schema/EntitySchemaOptions.d.ts +0 -104
  159. package/client/lib/typeorm/entity-schema/EntitySchemaRelationIdOptions.d.ts +0 -16
  160. package/client/lib/typeorm/entity-schema/EntitySchemaRelationOptions.d.ts +0 -96
  161. package/client/lib/typeorm/entity-schema/EntitySchemaTransformer.d.ts +0 -14
  162. package/client/lib/typeorm/entity-schema/EntitySchemaUniqueOptions.d.ts +0 -18
  163. package/client/lib/typeorm/error/AlreadyHasActiveConnectionError.d.ts +0 -8
  164. package/client/lib/typeorm/error/CannotAttachTreeChildrenEntityError.d.ts +0 -8
  165. package/client/lib/typeorm/error/CannotConnectAlreadyConnectedError.d.ts +0 -8
  166. package/client/lib/typeorm/error/CannotCreateEntityIdMapError.d.ts +0 -10
  167. package/client/lib/typeorm/error/CannotDetermineEntityError.d.ts +0 -8
  168. package/client/lib/typeorm/error/CannotExecuteNotConnectedError.d.ts +0 -8
  169. package/client/lib/typeorm/error/CannotGetEntityManagerNotConnectedError.d.ts +0 -8
  170. package/client/lib/typeorm/error/CannotReflectMethodParameterTypeError.d.ts +0 -9
  171. package/client/lib/typeorm/error/CircularRelationsError.d.ts +0 -8
  172. package/client/lib/typeorm/error/ColumnTypeUndefinedError.d.ts +0 -9
  173. package/client/lib/typeorm/error/ConnectionIsNotSetError.d.ts +0 -8
  174. package/client/lib/typeorm/error/ConnectionNotFoundError.d.ts +0 -8
  175. package/client/lib/typeorm/error/CustomRepositoryCannotInheritRepositoryError.d.ts +0 -8
  176. package/client/lib/typeorm/error/CustomRepositoryDoesNotHaveEntityError.d.ts +0 -8
  177. package/client/lib/typeorm/error/CustomRepositoryNotFoundError.d.ts +0 -8
  178. package/client/lib/typeorm/error/DataTypeNotSupportedError.d.ts +0 -8
  179. package/client/lib/typeorm/error/DriverOptionNotSetError.d.ts +0 -8
  180. package/client/lib/typeorm/error/DriverPackageNotInstalledError.d.ts +0 -8
  181. package/client/lib/typeorm/error/EntityMetadataNotFoundError.d.ts +0 -7
  182. package/client/lib/typeorm/error/EntityNotFoundError.d.ts +0 -11
  183. package/client/lib/typeorm/error/EntityPropertyNotFoundError.d.ts +0 -9
  184. package/client/lib/typeorm/error/FindRelationsNotFoundError.d.ts +0 -8
  185. package/client/lib/typeorm/error/InitializedRelationError.d.ts +0 -12
  186. package/client/lib/typeorm/error/InsertValuesMissingError.d.ts +0 -8
  187. package/client/lib/typeorm/error/LimitOnUpdateNotSupportedError.d.ts +0 -8
  188. package/client/lib/typeorm/error/LockNotSupportedOnGivenDriverError.d.ts +0 -8
  189. package/client/lib/typeorm/error/MetadataAlreadyExistsError.d.ts +0 -5
  190. package/client/lib/typeorm/error/MetadataWithSuchNameAlreadyExistsError.d.ts +0 -5
  191. package/client/lib/typeorm/error/MissingDeleteDateColumnError.d.ts +0 -6
  192. package/client/lib/typeorm/error/MissingDriverError.d.ts +0 -8
  193. package/client/lib/typeorm/error/MissingJoinColumnError.d.ts +0 -7
  194. package/client/lib/typeorm/error/MissingJoinTableError.d.ts +0 -7
  195. package/client/lib/typeorm/error/MissingPrimaryColumnError.d.ts +0 -6
  196. package/client/lib/typeorm/error/MustBeEntityError.d.ts +0 -8
  197. package/client/lib/typeorm/error/NamingStrategyNotFoundError.d.ts +0 -8
  198. package/client/lib/typeorm/error/NestedSetMultipleRootError.d.ts +0 -5
  199. package/client/lib/typeorm/error/NoConnectionForRepositoryError.d.ts +0 -8
  200. package/client/lib/typeorm/error/NoConnectionOptionError.d.ts +0 -8
  201. package/client/lib/typeorm/error/NoNeedToReleaseEntityManagerError.d.ts +0 -8
  202. package/client/lib/typeorm/error/NoVersionOrUpdateDateColumnError.d.ts +0 -8
  203. package/client/lib/typeorm/error/OffsetWithoutLimitNotSupportedError.d.ts +0 -8
  204. package/client/lib/typeorm/error/OptimisticLockCanNotBeUsedError.d.ts +0 -8
  205. package/client/lib/typeorm/error/OptimisticLockVersionMismatchError.d.ts +0 -8
  206. package/client/lib/typeorm/error/PersistedEntityNotFoundError.d.ts +0 -8
  207. package/client/lib/typeorm/error/PessimisticLockTransactionRequiredError.d.ts +0 -8
  208. package/client/lib/typeorm/error/PrimaryColumnCannotBeNullableError.d.ts +0 -5
  209. package/client/lib/typeorm/error/QueryFailedError.d.ts +0 -11
  210. package/client/lib/typeorm/error/QueryRunnerAlreadyReleasedError.d.ts +0 -5
  211. package/client/lib/typeorm/error/QueryRunnerProviderAlreadyReleasedError.d.ts +0 -8
  212. package/client/lib/typeorm/error/RepositoryNotTreeError.d.ts +0 -9
  213. package/client/lib/typeorm/error/ReturningStatementNotSupportedError.d.ts +0 -9
  214. package/client/lib/typeorm/error/SubjectRemovedAndUpdatedError.d.ts +0 -9
  215. package/client/lib/typeorm/error/SubjectWithoutIdentifierError.d.ts +0 -11
  216. package/client/lib/typeorm/error/TransactionAlreadyStartedError.d.ts +0 -8
  217. package/client/lib/typeorm/error/TransactionNotStartedError.d.ts +0 -8
  218. package/client/lib/typeorm/error/TreeRepositoryNotSupportedError.d.ts +0 -6
  219. package/client/lib/typeorm/error/TypeORMError.d.ts +0 -5
  220. package/client/lib/typeorm/error/UpdateValuesMissingError.d.ts +0 -5
  221. package/client/lib/typeorm/error/UsingJoinColumnIsNotAllowedError.d.ts +0 -7
  222. package/client/lib/typeorm/error/UsingJoinColumnOnlyOnOneSideAllowedError.d.ts +0 -7
  223. package/client/lib/typeorm/error/UsingJoinTableIsNotAllowedError.d.ts +0 -7
  224. package/client/lib/typeorm/error/UsingJoinTableOnlyOnOneSideAllowedError.d.ts +0 -7
  225. package/client/lib/typeorm/error/index.d.ts +0 -62
  226. package/client/lib/typeorm/find-options/EqualOperator.d.ts +0 -6
  227. package/client/lib/typeorm/find-options/FindManyOptions.d.ts +0 -15
  228. package/client/lib/typeorm/find-options/FindOneOptions.d.ts +0 -89
  229. package/client/lib/typeorm/find-options/FindOperator.d.ts +0 -66
  230. package/client/lib/typeorm/find-options/FindOperatorType.d.ts +0 -5
  231. package/client/lib/typeorm/find-options/FindOptionsOrder.d.ts +0 -19
  232. package/client/lib/typeorm/find-options/FindOptionsRelations.d.ts +0 -19
  233. package/client/lib/typeorm/find-options/FindOptionsSelect.d.ts +0 -18
  234. package/client/lib/typeorm/find-options/FindOptionsUtils.d.ts +0 -191
  235. package/client/lib/typeorm/find-options/FindOptionsWhere.d.ts +0 -14
  236. package/client/lib/typeorm/find-options/FindTreeOptions.d.ts +0 -14
  237. package/client/lib/typeorm/find-options/JoinOptions.d.ts +0 -77
  238. package/client/lib/typeorm/find-options/OrderByCondition.d.ts +0 -18
  239. package/client/lib/typeorm/find-options/operator/Any.d.ts +0 -7
  240. package/client/lib/typeorm/find-options/operator/ArrayContainedBy.d.ts +0 -7
  241. package/client/lib/typeorm/find-options/operator/ArrayContains.d.ts +0 -7
  242. package/client/lib/typeorm/find-options/operator/ArrayOverlap.d.ts +0 -7
  243. package/client/lib/typeorm/find-options/operator/Between.d.ts +0 -7
  244. package/client/lib/typeorm/find-options/operator/Equal.d.ts +0 -12
  245. package/client/lib/typeorm/find-options/operator/ILike.d.ts +0 -7
  246. package/client/lib/typeorm/find-options/operator/In.d.ts +0 -7
  247. package/client/lib/typeorm/find-options/operator/IsNull.d.ts +0 -7
  248. package/client/lib/typeorm/find-options/operator/LessThan.d.ts +0 -7
  249. package/client/lib/typeorm/find-options/operator/LessThanOrEqual.d.ts +0 -7
  250. package/client/lib/typeorm/find-options/operator/Like.d.ts +0 -7
  251. package/client/lib/typeorm/find-options/operator/MoreThan.d.ts +0 -7
  252. package/client/lib/typeorm/find-options/operator/MoreThanOrEqual.d.ts +0 -7
  253. package/client/lib/typeorm/find-options/operator/Not.d.ts +0 -8
  254. package/client/lib/typeorm/find-options/operator/Raw.d.ts +0 -19
  255. package/client/lib/typeorm/globals.d.ts +0 -104
  256. package/client/lib/typeorm/index.d.ts +0 -168
  257. package/client/lib/typeorm/logger/AdvancedConsoleLogger.d.ts +0 -42
  258. package/client/lib/typeorm/logger/DebugLogger.d.ts +0 -41
  259. package/client/lib/typeorm/logger/Logger.d.ts +0 -32
  260. package/client/lib/typeorm/logger/LoggerFactory.d.ts +0 -12
  261. package/client/lib/typeorm/logger/LoggerOptions.d.ts +0 -14
  262. package/client/lib/typeorm/logger/SimpleConsoleLogger.d.ts +0 -42
  263. package/client/lib/typeorm/metadata/CheckMetadata.d.ts +0 -40
  264. package/client/lib/typeorm/metadata/ColumnMetadata.d.ts +0 -316
  265. package/client/lib/typeorm/metadata/EmbeddedMetadata.d.ts +0 -166
  266. package/client/lib/typeorm/metadata/EntityListenerMetadata.d.ts +0 -49
  267. package/client/lib/typeorm/metadata/EntityMetadata.d.ts +0 -562
  268. package/client/lib/typeorm/metadata/ExclusionMetadata.d.ts +0 -40
  269. package/client/lib/typeorm/metadata/ForeignKeyMetadata.d.ts +0 -78
  270. package/client/lib/typeorm/metadata/IndexMetadata.d.ts +0 -112
  271. package/client/lib/typeorm/metadata/RelationCountMetadata.d.ts +0 -47
  272. package/client/lib/typeorm/metadata/RelationIdMetadata.d.ts +0 -54
  273. package/client/lib/typeorm/metadata/RelationMetadata.d.ts +0 -291
  274. package/client/lib/typeorm/metadata/UniqueMetadata.d.ts +0 -66
  275. package/client/lib/typeorm/metadata/types/ClosureTreeOptions.d.ts +0 -11
  276. package/client/lib/typeorm/metadata/types/DeferrableType.d.ts +0 -5
  277. package/client/lib/typeorm/metadata/types/EventListenerTypes.d.ts +0 -21
  278. package/client/lib/typeorm/metadata/types/OnDeleteType.d.ts +0 -5
  279. package/client/lib/typeorm/metadata/types/OnUpdateType.d.ts +0 -5
  280. package/client/lib/typeorm/metadata/types/PropertyTypeInFunction.d.ts +0 -5
  281. package/client/lib/typeorm/metadata/types/RelationTypeInFunction.d.ts +0 -6
  282. package/client/lib/typeorm/metadata/types/RelationTypes.d.ts +0 -5
  283. package/client/lib/typeorm/metadata/types/TableTypes.d.ts +0 -5
  284. package/client/lib/typeorm/metadata/types/TreeTypes.d.ts +0 -6
  285. package/client/lib/typeorm/metadata-args/CheckMetadataArgs.d.ts +0 -18
  286. package/client/lib/typeorm/metadata-args/ColumnMetadataArgs.d.ts +0 -26
  287. package/client/lib/typeorm/metadata-args/DiscriminatorValueMetadataArgs.d.ts +0 -14
  288. package/client/lib/typeorm/metadata-args/EmbeddedMetadataArgs.d.ts +0 -27
  289. package/client/lib/typeorm/metadata-args/EntityListenerMetadataArgs.d.ts +0 -19
  290. package/client/lib/typeorm/metadata-args/EntityRepositoryMetadataArgs.d.ts +0 -15
  291. package/client/lib/typeorm/metadata-args/EntitySubscriberMetadataArgs.d.ts +0 -10
  292. package/client/lib/typeorm/metadata-args/ExclusionMetadataArgs.d.ts +0 -18
  293. package/client/lib/typeorm/metadata-args/GeneratedMetadataArgs.d.ts +0 -18
  294. package/client/lib/typeorm/metadata-args/IndexMetadataArgs.d.ts +0 -71
  295. package/client/lib/typeorm/metadata-args/InheritanceMetadataArgs.d.ts +0 -19
  296. package/client/lib/typeorm/metadata-args/JoinColumnMetadataArgs.d.ts +0 -27
  297. package/client/lib/typeorm/metadata-args/JoinTableMetadataArgs.d.ts +0 -38
  298. package/client/lib/typeorm/metadata-args/MetadataArgsStorage.d.ts +0 -109
  299. package/client/lib/typeorm/metadata-args/NamingStrategyMetadataArgs.d.ts +0 -14
  300. package/client/lib/typeorm/metadata-args/RelationCountMetadataArgs.d.ts +0 -27
  301. package/client/lib/typeorm/metadata-args/RelationIdMetadataArgs.d.ts +0 -27
  302. package/client/lib/typeorm/metadata-args/RelationMetadataArgs.d.ts +0 -56
  303. package/client/lib/typeorm/metadata-args/TableMetadataArgs.d.ts +0 -62
  304. package/client/lib/typeorm/metadata-args/TransactionEntityMetadataArgs.d.ts +0 -18
  305. package/client/lib/typeorm/metadata-args/TransactionRepositoryMetadataArgs.d.ts +0 -26
  306. package/client/lib/typeorm/metadata-args/TreeMetadataArgs.d.ts +0 -20
  307. package/client/lib/typeorm/metadata-args/UniqueMetadataArgs.d.ts +0 -25
  308. package/client/lib/typeorm/metadata-args/types/ColumnMode.d.ts +0 -8
  309. package/client/lib/typeorm/metadata-builder/ClosureJunctionEntityMetadataBuilder.d.ts +0 -15
  310. package/client/lib/typeorm/metadata-builder/EntityMetadataBuilder.d.ts +0 -58
  311. package/client/lib/typeorm/metadata-builder/EntityMetadataValidator.d.ts +0 -24
  312. package/client/lib/typeorm/metadata-builder/JunctionEntityMetadataBuilder.d.ts +0 -27
  313. package/client/lib/typeorm/metadata-builder/MetadataUtils.d.ts +0 -24
  314. package/client/lib/typeorm/metadata-builder/RelationJoinColumnBuilder.d.ts +0 -57
  315. package/client/lib/typeorm/migration/Migration.d.ts +0 -25
  316. package/client/lib/typeorm/migration/MigrationExecutor.d.ts +0 -100
  317. package/client/lib/typeorm/migration/MigrationInterface.d.ts +0 -19
  318. package/client/lib/typeorm/naming-strategy/DefaultNamingStrategy.d.ts +0 -50
  319. package/client/lib/typeorm/naming-strategy/NamingStrategyInterface.d.ts +0 -117
  320. package/client/lib/typeorm/persistence/EntityPersistExecutor.d.ts +0 -22
  321. package/client/lib/typeorm/persistence/Subject.d.ts +0 -156
  322. package/client/lib/typeorm/persistence/SubjectChangeMap.d.ts +0 -24
  323. package/client/lib/typeorm/persistence/SubjectChangedColumnsComputer.d.ts +0 -19
  324. package/client/lib/typeorm/persistence/SubjectDatabaseEntityLoader.d.ts +0 -36
  325. package/client/lib/typeorm/persistence/SubjectExecutor.d.ts +0 -119
  326. package/client/lib/typeorm/persistence/SubjectTopoligicalSorter.d.ts +0 -46
  327. package/client/lib/typeorm/persistence/subject-builder/CascadesSubjectBuilder.d.ts +0 -20
  328. package/client/lib/typeorm/persistence/subject-builder/ManyToManySubjectBuilder.d.ts +0 -35
  329. package/client/lib/typeorm/persistence/subject-builder/OneToManySubjectBuilder.d.ts +0 -28
  330. package/client/lib/typeorm/persistence/subject-builder/OneToOneInverseSideSubjectBuilder.d.ts +0 -28
  331. package/client/lib/typeorm/persistence/tree/ClosureSubjectExecutor.d.ts +0 -27
  332. package/client/lib/typeorm/persistence/tree/MaterializedPathSubjectExecutor.d.ts +0 -19
  333. package/client/lib/typeorm/persistence/tree/NestedSetSubjectExecutor.d.ts +0 -39
  334. package/client/lib/typeorm/platform/PlatformTools.d.ts +0 -65
  335. package/client/lib/typeorm/query-builder/Alias.d.ts +0 -23
  336. package/client/lib/typeorm/query-builder/Brackets.d.ts +0 -17
  337. package/client/lib/typeorm/query-builder/DeleteQueryBuilder.d.ts +0 -92
  338. package/client/lib/typeorm/query-builder/InsertOrUpdateOptions.d.ts +0 -4
  339. package/client/lib/typeorm/query-builder/InsertQueryBuilder.d.ts +0 -118
  340. package/client/lib/typeorm/query-builder/JoinAttribute.d.ts +0 -84
  341. package/client/lib/typeorm/query-builder/NotBrackets.d.ts +0 -9
  342. package/client/lib/typeorm/query-builder/QueryBuilder.d.ts +0 -268
  343. package/client/lib/typeorm/query-builder/QueryBuilderCte.d.ts +0 -18
  344. package/client/lib/typeorm/query-builder/QueryBuilderUtils.d.ts +0 -11
  345. package/client/lib/typeorm/query-builder/QueryExpressionMap.d.ts +0 -306
  346. package/client/lib/typeorm/query-builder/QueryPartialEntity.d.ts +0 -16
  347. package/client/lib/typeorm/query-builder/RelationIdLoader.d.ts +0 -71
  348. package/client/lib/typeorm/query-builder/RelationLoader.d.ts +0 -60
  349. package/client/lib/typeorm/query-builder/RelationQueryBuilder.d.ts +0 -70
  350. package/client/lib/typeorm/query-builder/RelationRemover.d.ts +0 -17
  351. package/client/lib/typeorm/query-builder/RelationUpdater.d.ts +0 -17
  352. package/client/lib/typeorm/query-builder/ReturningResultsEntityUpdator.d.ts +0 -31
  353. package/client/lib/typeorm/query-builder/SelectQuery.d.ts +0 -6
  354. package/client/lib/typeorm/query-builder/SelectQueryBuilder.d.ts +0 -665
  355. package/client/lib/typeorm/query-builder/SelectQueryBuilderOption.d.ts +0 -2
  356. package/client/lib/typeorm/query-builder/SoftDeleteQueryBuilder.d.ts +0 -139
  357. package/client/lib/typeorm/query-builder/UpdateQueryBuilder.d.ts +0 -144
  358. package/client/lib/typeorm/query-builder/WhereClause.d.ts +0 -17
  359. package/client/lib/typeorm/query-builder/WhereExpressionBuilder.d.ts +0 -127
  360. package/client/lib/typeorm/query-builder/relation-count/RelationCountAttribute.d.ts +0 -54
  361. package/client/lib/typeorm/query-builder/relation-count/RelationCountLoadResult.d.ts +0 -9
  362. package/client/lib/typeorm/query-builder/relation-count/RelationCountLoader.d.ts +0 -12
  363. package/client/lib/typeorm/query-builder/relation-count/RelationCountMetadataToAttributeTransformer.d.ts +0 -8
  364. package/client/lib/typeorm/query-builder/relation-id/RelationIdAttribute.d.ts +0 -65
  365. package/client/lib/typeorm/query-builder/relation-id/RelationIdLoadResult.d.ts +0 -6
  366. package/client/lib/typeorm/query-builder/relation-id/RelationIdLoader.d.ts +0 -12
  367. package/client/lib/typeorm/query-builder/relation-id/RelationIdMetadataToAttributeTransformer.d.ts +0 -8
  368. package/client/lib/typeorm/query-builder/result/DeleteResult.d.ts +0 -17
  369. package/client/lib/typeorm/query-builder/result/InsertResult.d.ts +0 -23
  370. package/client/lib/typeorm/query-builder/result/UpdateResult.d.ts +0 -27
  371. package/client/lib/typeorm/query-builder/transformer/PlainObjectToDatabaseEntityTransformer.d.ts +0 -13
  372. package/client/lib/typeorm/query-builder/transformer/PlainObjectToNewEntityTransformer.d.ts +0 -15
  373. package/client/lib/typeorm/query-builder/transformer/RawSqlResultsToEntityTransformer.d.ts +0 -56
  374. package/client/lib/typeorm/query-runner/BaseQueryRunner.d.ts +0 -204
  375. package/client/lib/typeorm/query-runner/QueryResult.d.ts +0 -18
  376. package/client/lib/typeorm/query-runner/QueryRunner.d.ts +0 -359
  377. package/client/lib/typeorm/relation-path.d.ts +0 -7
  378. package/client/lib/typeorm/repository/AbstractRepository.d.ts +0 -52
  379. package/client/lib/typeorm/repository/BaseEntity.d.ts +0 -298
  380. package/client/lib/typeorm/repository/FindTreesOptions.d.ts +0 -10
  381. package/client/lib/typeorm/repository/RemoveOptions.d.ts +0 -28
  382. package/client/lib/typeorm/repository/Repository.d.ts +0 -292
  383. package/client/lib/typeorm/repository/SaveOptions.d.ts +0 -36
  384. package/client/lib/typeorm/repository/TreeRepository.d.ts +0 -56
  385. package/client/lib/typeorm/repository/UpsertOptions.d.ts +0 -11
  386. package/client/lib/typeorm/schema-builder/RdbmsSchemaBuilder.d.ts +0 -145
  387. package/client/lib/typeorm/schema-builder/SchemaBuilder.d.ts +0 -15
  388. package/client/lib/typeorm/schema-builder/options/TableCheckOptions.d.ts +0 -18
  389. package/client/lib/typeorm/schema-builder/options/TableColumnOptions.d.ts +0 -123
  390. package/client/lib/typeorm/schema-builder/options/TableExclusionOptions.d.ts +0 -14
  391. package/client/lib/typeorm/schema-builder/options/TableForeignKeyOptions.d.ts +0 -45
  392. package/client/lib/typeorm/schema-builder/options/TableIndexOptions.d.ts +0 -45
  393. package/client/lib/typeorm/schema-builder/options/TableOptions.d.ts +0 -62
  394. package/client/lib/typeorm/schema-builder/options/TableUniqueOptions.d.ts +0 -19
  395. package/client/lib/typeorm/schema-builder/options/ViewOptions.d.ts +0 -27
  396. package/client/lib/typeorm/schema-builder/table/Table.d.ts +0 -143
  397. package/client/lib/typeorm/schema-builder/table/TableCheck.d.ts +0 -30
  398. package/client/lib/typeorm/schema-builder/table/TableColumn.d.ts +0 -127
  399. package/client/lib/typeorm/schema-builder/table/TableExclusion.d.ts +0 -26
  400. package/client/lib/typeorm/schema-builder/table/TableForeignKey.d.ts +0 -58
  401. package/client/lib/typeorm/schema-builder/table/TableIndex.d.ts +0 -57
  402. package/client/lib/typeorm/schema-builder/table/TableUnique.d.ts +0 -31
  403. package/client/lib/typeorm/schema-builder/util/TableUtils.d.ts +0 -7
  404. package/client/lib/typeorm/schema-builder/util/ViewUtils.d.ts +0 -8
  405. package/client/lib/typeorm/schema-builder/view/View.d.ts +0 -38
  406. package/client/lib/typeorm/subscriber/Broadcaster.d.ts +0 -168
  407. package/client/lib/typeorm/subscriber/BroadcasterResult.d.ts +0 -18
  408. package/client/lib/typeorm/subscriber/EntitySubscriberInterface.d.ts +0 -93
  409. package/client/lib/typeorm/subscriber/event/InsertEvent.d.ts +0 -32
  410. package/client/lib/typeorm/subscriber/event/LoadEvent.d.ts +0 -32
  411. package/client/lib/typeorm/subscriber/event/RecoverEvent.d.ts +0 -7
  412. package/client/lib/typeorm/subscriber/event/RemoveEvent.d.ts +0 -41
  413. package/client/lib/typeorm/subscriber/event/SoftRemoveEvent.d.ts +0 -7
  414. package/client/lib/typeorm/subscriber/event/TransactionCommitEvent.d.ts +0 -23
  415. package/client/lib/typeorm/subscriber/event/TransactionRollbackEvent.d.ts +0 -23
  416. package/client/lib/typeorm/subscriber/event/TransactionStartEvent.d.ts +0 -23
  417. package/client/lib/typeorm/subscriber/event/UpdateEvent.d.ts +0 -47
  418. package/client/lib/typeorm/util/ApplyValueTransformers.d.ts +0 -6
  419. package/client/lib/typeorm/util/DateUtils.d.ts +0 -59
  420. package/client/lib/typeorm/util/DepGraph.d.ts +0 -65
  421. package/client/lib/typeorm/util/DirectoryExportedClassesLoader.d.ts +0 -10
  422. package/client/lib/typeorm/util/ImportUtils.d.ts +0 -2
  423. package/client/lib/typeorm/util/InstanceChecker.d.ts +0 -60
  424. package/client/lib/typeorm/util/ObjectUtils.d.ts +0 -38
  425. package/client/lib/typeorm/util/OrmUtils.d.ts +0 -53
  426. package/client/lib/typeorm/util/PathUtils.d.ts +0 -11
  427. package/client/lib/typeorm/util/RandomGenerator.d.ts +0 -16
  428. package/client/lib/typeorm/util/StringUtils.d.ts +0 -64
  429. package/client/lib/typeorm/util/TreeRepositoryUtils.d.ts +0 -24
  430. package/client/lib/typeorm/util/VersionUtils.d.ts +0 -5
  431. package/client/lib/typeorm/util/escapeRegExp.d.ts +0 -2
  432. package/client/public-api.d.ts +0 -2
@@ -1,56 +0,0 @@
1
- // @ts-nocheck
2
- import { ObjectLiteral } from "../common/ObjectLiteral";
3
- import { FindTreeOptions } from "../find-options/FindTreeOptions";
4
- import { SelectQueryBuilder } from "../query-builder/SelectQueryBuilder";
5
- import { Repository } from "./Repository";
6
- /**
7
- * Repository with additional functions to work with trees.
8
- *
9
- * @see Repository
10
- */
11
- export declare class TreeRepository<Entity extends ObjectLiteral> extends Repository<Entity> {
12
- /**
13
- * Gets complete trees for all roots in the table.
14
- */
15
- findTrees(options?: FindTreeOptions): Promise<Entity[]>;
16
- /**
17
- * Roots are entities that have no ancestors. Finds them all.
18
- */
19
- findRoots(options?: FindTreeOptions): Promise<Entity[]>;
20
- /**
21
- * Gets all children (descendants) of the given entity. Returns them all in a flat array.
22
- */
23
- findDescendants(entity: Entity, options?: FindTreeOptions): Promise<Entity[]>;
24
- /**
25
- * Gets all children (descendants) of the given entity. Returns them in a tree - nested into each other.
26
- */
27
- findDescendantsTree(entity: Entity, options?: FindTreeOptions): Promise<Entity>;
28
- /**
29
- * Gets number of descendants of the entity.
30
- */
31
- countDescendants(entity: Entity): Promise<number>;
32
- /**
33
- * Creates a query builder used to get descendants of the entities in a tree.
34
- */
35
- createDescendantsQueryBuilder(alias: string, closureTableAlias: string, entity: Entity): SelectQueryBuilder<Entity>;
36
- /**
37
- * Gets all parents (ancestors) of the given entity. Returns them all in a flat array.
38
- */
39
- findAncestors(entity: Entity, options?: FindTreeOptions): Promise<Entity[]>;
40
- /**
41
- * Gets all parents (ancestors) of the given entity. Returns them in a tree - nested into each other.
42
- */
43
- findAncestorsTree(entity: Entity, options?: FindTreeOptions): Promise<Entity>;
44
- /**
45
- * Gets number of ancestors of the entity.
46
- */
47
- countAncestors(entity: Entity): Promise<number>;
48
- /**
49
- * Creates a query builder used to get ancestors of the entities in the tree.
50
- */
51
- createAncestorsQueryBuilder(alias: string, closureTableAlias: string, entity: Entity): SelectQueryBuilder<Entity>;
52
- /**
53
- * Extends tree repository with provided functions.
54
- */
55
- extend<CustomRepository>(custom: CustomRepository & ThisType<TreeRepository<Entity> & CustomRepository>): TreeRepository<Entity> & CustomRepository;
56
- }
@@ -1,11 +0,0 @@
1
- // @ts-nocheck
2
- /**
3
- * Special options passed to Repository#upsert
4
- */
5
- export interface UpsertOptions<Entity> {
6
- conflictPaths: string[];
7
- /**
8
- * If true, postgres will skip the update if no values would be changed (reduces writes)
9
- */
10
- skipUpdateIfNoValuesChanged?: boolean;
11
- }
@@ -1,145 +0,0 @@
1
- // @ts-nocheck
2
- import { QueryRunner } from "../query-runner/QueryRunner";
3
- import { ColumnMetadata } from "../metadata/ColumnMetadata";
4
- import { EntityMetadata } from "../metadata/EntityMetadata";
5
- import { DataSource } from "../data-source/DataSource";
6
- import { SchemaBuilder } from "./SchemaBuilder";
7
- import { SqlInMemory } from "../driver/SqlInMemory";
8
- import { TableColumnOptions } from "./options/TableColumnOptions";
9
- /**
10
- * Creates complete tables schemas in the database based on the entity metadatas.
11
- *
12
- * Steps how schema is being built:
13
- * 1. load list of all tables with complete column and keys information from the db
14
- * 2. drop all (old) foreign keys that exist in the table, but does not exist in the metadata
15
- * 3. create new tables that does not exist in the db, but exist in the metadata
16
- * 4. drop all columns exist (left old) in the db table, but does not exist in the metadata
17
- * 5. add columns from metadata which does not exist in the table
18
- * 6. update all exist columns which metadata has changed
19
- * 7. update primary keys - update old and create new primary key from changed columns
20
- * 8. create foreign keys which does not exist in the table yet
21
- * 9. create indices which are missing in db yet, and drops indices which exist in the db, but does not exist in the metadata anymore
22
- */
23
- export declare class RdbmsSchemaBuilder implements SchemaBuilder {
24
- protected connection: DataSource;
25
- readonly "@instanceof": symbol;
26
- /**
27
- * Used to execute schema creation queries in a single connection.
28
- */
29
- protected queryRunner: QueryRunner;
30
- private currentDatabase?;
31
- private currentSchema?;
32
- constructor(connection: DataSource);
33
- /**
34
- * Creates complete schemas for the given entity metadatas.
35
- */
36
- build(): Promise<void>;
37
- /**
38
- * Create the typeorm_metadata table if necessary.
39
- */
40
- createMetadataTableIfNecessary(queryRunner: QueryRunner): Promise<void>;
41
- /**
42
- * Returns sql queries to be executed by schema builder.
43
- */
44
- log(): Promise<SqlInMemory>;
45
- /**
46
- * Returns only entities that should be synced in the database.
47
- */
48
- protected get entityToSyncMetadatas(): EntityMetadata[];
49
- /**
50
- * Returns only entities that should be synced in the database.
51
- */
52
- protected get viewEntityToSyncMetadatas(): EntityMetadata[];
53
- /**
54
- * Checks if there are at least one generated column.
55
- */
56
- protected hasGeneratedColumns(): boolean;
57
- /**
58
- * Executes schema sync operations in a proper order.
59
- * Order of operations matter here.
60
- */
61
- protected executeSchemaSyncOperationsInProperOrder(): Promise<void>;
62
- private getTablePath;
63
- /**
64
- * Drops all (old) foreign keys that exist in the tables, but do not exist in the entity metadata.
65
- */
66
- protected dropOldForeignKeys(): Promise<void>;
67
- /**
68
- * Rename tables
69
- */
70
- protected renameTables(): Promise<void>;
71
- /**
72
- * Renames columns.
73
- * Works if only one column per table was changed.
74
- * Changes only column name. If something besides name was changed, these changes will be ignored.
75
- */
76
- protected renameColumns(): Promise<void>;
77
- protected dropOldIndices(): Promise<void>;
78
- protected dropOldChecks(): Promise<void>;
79
- protected dropCompositeUniqueConstraints(): Promise<void>;
80
- protected dropOldExclusions(): Promise<void>;
81
- /**
82
- * Creates tables that do not exist in the database yet.
83
- * New tables are created without foreign and primary keys.
84
- * Primary key only can be created in conclusion with auto generated column.
85
- */
86
- protected createNewTables(): Promise<void>;
87
- protected createViews(): Promise<void>;
88
- protected dropOldViews(): Promise<void>;
89
- /**
90
- * Drops all columns that exist in the table, but does not exist in the metadata (left old).
91
- * We drop their keys too, since it should be safe.
92
- */
93
- protected dropRemovedColumns(): Promise<void>;
94
- /**
95
- * Adds columns from metadata which does not exist in the table.
96
- * Columns are created without keys.
97
- */
98
- protected addNewColumns(): Promise<void>;
99
- /**
100
- * Updates composite primary keys.
101
- */
102
- protected updatePrimaryKeys(): Promise<void>;
103
- /**
104
- * Update all exist columns which metadata has changed.
105
- * Still don't create keys. Also we don't touch foreign keys of the changed columns.
106
- */
107
- protected updateExistColumns(): Promise<void>;
108
- /**
109
- * Creates composite indices which are missing in db yet.
110
- */
111
- protected createNewIndices(): Promise<void>;
112
- protected createNewChecks(): Promise<void>;
113
- /**
114
- * Creates composite uniques which are missing in db yet.
115
- */
116
- protected createCompositeUniqueConstraints(): Promise<void>;
117
- /**
118
- * Creates exclusions which are missing in db yet.
119
- */
120
- protected createNewExclusions(): Promise<void>;
121
- /**
122
- * Creates foreign keys which does not exist in the table yet.
123
- */
124
- protected createForeignKeys(): Promise<void>;
125
- /**
126
- * Drops all foreign keys where given column of the given table is being used.
127
- */
128
- protected dropColumnReferencedForeignKeys(tablePath: string, columnName: string): Promise<void>;
129
- /**
130
- * Drops all composite indices, related to given column.
131
- */
132
- protected dropColumnCompositeIndices(tablePath: string, columnName: string): Promise<void>;
133
- /**
134
- * Drops all composite uniques, related to given column.
135
- */
136
- protected dropColumnCompositeUniques(tablePath: string, columnName: string): Promise<void>;
137
- /**
138
- * Creates new columns from the given column metadatas.
139
- */
140
- protected metadataColumnsToTableColumnOptions(columns: ColumnMetadata[]): TableColumnOptions[];
141
- /**
142
- * Creates typeorm service table for storing user defined Views and generate columns.
143
- */
144
- protected createTypeormMetadataTable(queryRunner: QueryRunner): Promise<void>;
145
- }
@@ -1,15 +0,0 @@
1
- // @ts-nocheck
2
- import { SqlInMemory } from "../driver/SqlInMemory";
3
- /**
4
- * Creates complete tables schemas in the database based on the entity metadatas.
5
- */
6
- export interface SchemaBuilder {
7
- /**
8
- * Creates complete schemas for the given entity metadatas.
9
- */
10
- build(): Promise<void>;
11
- /**
12
- * Returns queries to be executed by schema builder.
13
- */
14
- log(): Promise<SqlInMemory>;
15
- }
@@ -1,18 +0,0 @@
1
- // @ts-nocheck
2
- /**
3
- * Database's table check constraint options.
4
- */
5
- export interface TableCheckOptions {
6
- /**
7
- * Constraint name.
8
- */
9
- name?: string;
10
- /**
11
- * Column that contains this constraint.
12
- */
13
- columnNames?: string[];
14
- /**
15
- * Check expression.
16
- */
17
- expression?: string;
18
- }
@@ -1,123 +0,0 @@
1
- // @ts-nocheck
2
- /**
3
- * Table's column options.
4
- */
5
- export interface TableColumnOptions {
6
- /**
7
- * Column name.
8
- */
9
- name: string;
10
- /**
11
- * Column type.
12
- */
13
- type: string;
14
- /**
15
- * Column's default value.
16
- */
17
- default?: any;
18
- /**
19
- * ON UPDATE trigger. Works only for MySQL.
20
- */
21
- onUpdate?: string;
22
- /**
23
- * Indicates if column is NULL, or is NOT NULL in the database.
24
- */
25
- isNullable?: boolean;
26
- /**
27
- * Indicates if column is auto-generated sequence.
28
- */
29
- isGenerated?: boolean;
30
- /**
31
- * Specifies generation strategy if this column will use auto increment.
32
- */
33
- generationStrategy?: "uuid" | "increment" | "rowid" | "identity";
34
- /**
35
- * Indicates if column is a primary key.
36
- */
37
- isPrimary?: boolean;
38
- /**
39
- * Indicates if column has unique value.
40
- */
41
- isUnique?: boolean;
42
- /**
43
- * Indicates if column stores array.
44
- */
45
- isArray?: boolean;
46
- /**
47
- * Column's comment.
48
- */
49
- comment?: string;
50
- /**
51
- * Column type's length. Used only on some column types.
52
- * For example type = "string" and length = "100" means that ORM will create a column with type varchar(100).
53
- */
54
- length?: string;
55
- /**
56
- * Column type's display width. Used only on some column types in MySQL.
57
- * For example, INT(4) specifies an INT with a display width of four digits.
58
- */
59
- width?: number;
60
- /**
61
- * Defines column character set.
62
- */
63
- charset?: string;
64
- /**
65
- * Defines column collation.
66
- */
67
- collation?: string;
68
- /**
69
- * The precision for a decimal (exact numeric) column (applies only for decimal column), which is the maximum
70
- * number of digits that are stored for the values.
71
- */
72
- precision?: number | null;
73
- /**
74
- * The scale for a decimal (exact numeric) column (applies only for decimal column), which represents the number
75
- * of digits to the right of the decimal point and must not be greater than precision.
76
- */
77
- scale?: number;
78
- /**
79
- * Puts ZEROFILL attribute on to numeric column. Works only for MySQL.
80
- * If you specify ZEROFILL for a numeric column, MySQL automatically adds the UNSIGNED attribute to the column
81
- */
82
- zerofill?: boolean;
83
- /**
84
- * Puts UNSIGNED attribute on to numeric column. Works only for MySQL.
85
- */
86
- unsigned?: boolean;
87
- /**
88
- * Array of possible enumerated values.
89
- */
90
- enum?: string[];
91
- /**
92
- * Exact name of enum
93
- */
94
- enumName?: string;
95
- /**
96
- * If this column is primary key then this specifies the name for it.
97
- */
98
- primaryKeyConstraintName?: string;
99
- /**
100
- * If this column is foreign key then this specifies the name for it.
101
- */
102
- foreignKeyConstraintName?: string;
103
- /**
104
- * Generated column expression.
105
- */
106
- asExpression?: string;
107
- /**
108
- * Generated column type.
109
- */
110
- generatedType?: "VIRTUAL" | "STORED";
111
- /**
112
- * Identity column type. Supports only in Postgres 10+.
113
- */
114
- generatedIdentity?: "ALWAYS" | "BY DEFAULT";
115
- /**
116
- * Spatial Feature Type (Geometry, Point, Polygon, etc.)
117
- */
118
- spatialFeatureType?: string;
119
- /**
120
- * SRID (Spatial Reference ID (EPSG code))
121
- */
122
- srid?: number;
123
- }
@@ -1,14 +0,0 @@
1
- // @ts-nocheck
2
- /**
3
- * Database's table exclusion constraint options.
4
- */
5
- export interface TableExclusionOptions {
6
- /**
7
- * Constraint name.
8
- */
9
- name?: string;
10
- /**
11
- * Exclusion expression.
12
- */
13
- expression?: string;
14
- }
@@ -1,45 +0,0 @@
1
- // @ts-nocheck
2
- /**
3
- * Foreign key options.
4
- */
5
- export interface TableForeignKeyOptions {
6
- /**
7
- * Name of the foreign key.
8
- */
9
- name?: string;
10
- /**
11
- * Column names which included by this foreign key.
12
- */
13
- columnNames: string[];
14
- /**
15
- * Database of the Table referenced in the foreign key.
16
- */
17
- referencedDatabase?: string;
18
- /**
19
- * Schema of the Table referenced in the foreign key.
20
- */
21
- referencedSchema?: string;
22
- /**
23
- * Table referenced in the foreign key.
24
- */
25
- referencedTableName: string;
26
- /**
27
- * Column names which included by this foreign key.
28
- */
29
- referencedColumnNames: string[];
30
- /**
31
- * "ON DELETE" of this foreign key, e.g. what action database should perform when
32
- * referenced stuff is being deleted.
33
- */
34
- onDelete?: string;
35
- /**
36
- * "ON UPDATE" of this foreign key, e.g. what action database should perform when
37
- * referenced stuff is being updated.
38
- */
39
- onUpdate?: string;
40
- /**
41
- * Set this foreign key constraint as "DEFERRABLE" e.g. check constraints at start
42
- * or at the end of a transaction
43
- */
44
- deferrable?: string;
45
- }
@@ -1,45 +0,0 @@
1
- // @ts-nocheck
2
- /**
3
- * Database's table index options.
4
- */
5
- export interface TableIndexOptions {
6
- /**
7
- * Constraint name.
8
- */
9
- name?: string;
10
- /**
11
- * Columns included in this index.
12
- */
13
- columnNames: string[];
14
- /**
15
- * Indicates if this index is unique.
16
- */
17
- isUnique?: boolean;
18
- /**
19
- * The SPATIAL modifier indexes the entire column and does not allow indexed columns to contain NULL values.
20
- * Works only in MySQL.
21
- */
22
- isSpatial?: boolean;
23
- /**
24
- * The FULLTEXT modifier indexes the entire column and does not allow prefixing.
25
- * Supported only in MySQL & SAP HANA.
26
- */
27
- isFulltext?: boolean;
28
- /**
29
- * NULL_FILTERED indexes are particularly useful for indexing sparse columns, where most rows contain a NULL value.
30
- * In these cases, the NULL_FILTERED index can be considerably smaller and more efficient to maintain than
31
- * a normal index that includes NULL values.
32
- *
33
- * Works only in Spanner.
34
- */
35
- isNullFiltered?: boolean;
36
- /**
37
- * Fulltext parser.
38
- * Works only in MySQL.
39
- */
40
- parser?: string;
41
- /**
42
- * Index filter condition.
43
- */
44
- where?: string;
45
- }
@@ -1,62 +0,0 @@
1
- // @ts-nocheck
2
- import { TableColumnOptions } from "./TableColumnOptions";
3
- import { TableIndexOptions } from "./TableIndexOptions";
4
- import { TableForeignKeyOptions } from "./TableForeignKeyOptions";
5
- import { TableUniqueOptions } from "./TableUniqueOptions";
6
- import { TableCheckOptions } from "./TableCheckOptions";
7
- import { TableExclusionOptions } from "./TableExclusionOptions";
8
- /**
9
- * Table options.
10
- */
11
- export interface TableOptions {
12
- /**
13
- * Table schema.
14
- */
15
- schema?: string;
16
- /**
17
- * Table database.
18
- */
19
- database?: string;
20
- /**
21
- * Table name.
22
- */
23
- name: string;
24
- /**
25
- * Table columns.
26
- */
27
- columns?: TableColumnOptions[];
28
- /**
29
- * Table indices.
30
- */
31
- indices?: TableIndexOptions[];
32
- /**
33
- * Table foreign keys.
34
- */
35
- foreignKeys?: TableForeignKeyOptions[];
36
- /**
37
- * Table unique constraints.
38
- */
39
- uniques?: TableUniqueOptions[];
40
- /**
41
- * Table check constraints.
42
- */
43
- checks?: TableCheckOptions[];
44
- /**
45
- * Table check constraints.
46
- */
47
- exclusions?: TableExclusionOptions[];
48
- /**
49
- * Indicates if table was just created.
50
- * This is needed, for example to check if we need to skip primary keys creation
51
- * for new tables.
52
- */
53
- justCreated?: boolean;
54
- /**
55
- * Enables Sqlite "WITHOUT ROWID" modifier for the "CREATE TABLE" statement
56
- */
57
- withoutRowid?: boolean;
58
- /**
59
- * Table engine.
60
- */
61
- engine?: string;
62
- }
@@ -1,19 +0,0 @@
1
- // @ts-nocheck
2
- /**
3
- * Database's table unique constraint options.
4
- */
5
- export interface TableUniqueOptions {
6
- /**
7
- * Constraint name.
8
- */
9
- name?: string;
10
- /**
11
- * Columns that contains this constraint.
12
- */
13
- columnNames: string[];
14
- /**
15
- * Set this foreign key constraint as "DEFERRABLE" e.g. check constraints at start
16
- * or at the end of a transaction
17
- */
18
- deferrable?: string;
19
- }
@@ -1,27 +0,0 @@
1
- // @ts-nocheck
2
- import { DataSource, SelectQueryBuilder } from "../..";
3
- /**
4
- * View options.
5
- */
6
- export interface ViewOptions {
7
- /**
8
- * Database name that this table resides in if it applies.
9
- */
10
- database?: string;
11
- /**
12
- * Schema name that this table resides in if it applies.
13
- */
14
- schema?: string;
15
- /**
16
- * View name.
17
- */
18
- name: string;
19
- /**
20
- * View expression.
21
- */
22
- expression: string | ((connection: DataSource) => SelectQueryBuilder<any>);
23
- /**
24
- * Indicates if view is materialized
25
- */
26
- materialized?: boolean;
27
- }