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,301 +0,0 @@
1
- // @ts-nocheck
2
- import { QueryRunner } from "../../query-runner/QueryRunner";
3
- import { TableColumn } from "../../schema-builder/table/TableColumn";
4
- import { Table } from "../../schema-builder/table/Table";
5
- import { TableIndex } from "../../schema-builder/table/TableIndex";
6
- import { TableForeignKey } from "../../schema-builder/table/TableForeignKey";
7
- import { View } from "../../schema-builder/view/View";
8
- import { Query } from "../Query";
9
- import { AbstractSqliteDriver } from "./AbstractSqliteDriver";
10
- import { TableUnique } from "../../schema-builder/table/TableUnique";
11
- import { BaseQueryRunner } from "../../query-runner/BaseQueryRunner";
12
- import { TableCheck } from "../../schema-builder/table/TableCheck";
13
- import { IsolationLevel } from "../types/IsolationLevel";
14
- import { TableExclusion } from "../../schema-builder/table/TableExclusion";
15
- /**
16
- * Runs queries on a single sqlite database connection.
17
- */
18
- export declare abstract class AbstractSqliteQueryRunner extends BaseQueryRunner implements QueryRunner {
19
- /**
20
- * Database driver used by connection.
21
- */
22
- driver: AbstractSqliteDriver;
23
- protected transactionPromise: Promise<any> | null;
24
- constructor();
25
- /**
26
- * Creates/uses database connection from the connection pool to perform further operations.
27
- * Returns obtained database connection.
28
- */
29
- connect(): Promise<any>;
30
- /**
31
- * Releases used database connection.
32
- * We just clear loaded tables and sql in memory, because sqlite do not support multiple connections thus query runners.
33
- */
34
- release(): Promise<void>;
35
- /**
36
- * Starts transaction.
37
- */
38
- startTransaction(isolationLevel?: IsolationLevel): Promise<void>;
39
- /**
40
- * Commits transaction.
41
- * Error will be thrown if transaction was not started.
42
- */
43
- commitTransaction(): Promise<void>;
44
- /**
45
- * Rollbacks transaction.
46
- * Error will be thrown if transaction was not started.
47
- */
48
- rollbackTransaction(): Promise<void>;
49
- /**
50
- * Returns raw data stream.
51
- */
52
- stream(query: string, parameters?: any[], onEnd?: Function, onError?: Function): void;
53
- /**
54
- * Returns all available database names including system databases.
55
- */
56
- getDatabases(): Promise<string[]>;
57
- /**
58
- * Returns all available schema names including system schemas.
59
- * If database parameter specified, returns schemas of that database.
60
- */
61
- getSchemas(database?: string): Promise<string[]>;
62
- /**
63
- * Checks if database with the given name exist.
64
- */
65
- hasDatabase(database: string): Promise<boolean>;
66
- /**
67
- * Loads currently using database
68
- */
69
- getCurrentDatabase(): Promise<undefined>;
70
- /**
71
- * Checks if schema with the given name exist.
72
- */
73
- hasSchema(schema: string): Promise<boolean>;
74
- /**
75
- * Loads currently using database schema
76
- */
77
- getCurrentSchema(): Promise<undefined>;
78
- /**
79
- * Checks if table with the given name exist in the database.
80
- */
81
- hasTable(tableOrName: Table | string): Promise<boolean>;
82
- /**
83
- * Checks if column with the given name exist in the given table.
84
- */
85
- hasColumn(tableOrName: Table | string, columnName: string): Promise<boolean>;
86
- /**
87
- * Creates a new database.
88
- */
89
- createDatabase(database: string, ifNotExist?: boolean): Promise<void>;
90
- /**
91
- * Drops database.
92
- */
93
- dropDatabase(database: string, ifExist?: boolean): Promise<void>;
94
- /**
95
- * Creates a new table schema.
96
- */
97
- createSchema(schemaPath: string, ifNotExist?: boolean): Promise<void>;
98
- /**
99
- * Drops table schema.
100
- */
101
- dropSchema(schemaPath: string, ifExist?: boolean): Promise<void>;
102
- /**
103
- * Creates a new table.
104
- */
105
- createTable(table: Table, ifNotExist?: boolean, createForeignKeys?: boolean, createIndices?: boolean): Promise<void>;
106
- /**
107
- * Drops the table.
108
- */
109
- dropTable(tableOrName: Table | string, ifExist?: boolean, dropForeignKeys?: boolean, dropIndices?: boolean): Promise<void>;
110
- /**
111
- * Creates a new view.
112
- */
113
- createView(view: View, syncWithMetadata?: boolean): Promise<void>;
114
- /**
115
- * Drops the view.
116
- */
117
- dropView(target: View | string): Promise<void>;
118
- /**
119
- * Renames the given table.
120
- */
121
- renameTable(oldTableOrName: Table | string, newTableName: string): Promise<void>;
122
- /**
123
- * Creates a new column from the column in the table.
124
- */
125
- addColumn(tableOrName: Table | string, column: TableColumn): Promise<void>;
126
- /**
127
- * Creates a new columns from the column in the table.
128
- */
129
- addColumns(tableOrName: Table | string, columns: TableColumn[]): Promise<void>;
130
- /**
131
- * Renames column in the given table.
132
- */
133
- renameColumn(tableOrName: Table | string, oldTableColumnOrName: TableColumn | string, newTableColumnOrName: TableColumn | string): Promise<void>;
134
- /**
135
- * Changes a column in the table.
136
- */
137
- changeColumn(tableOrName: Table | string, oldTableColumnOrName: TableColumn | string, newColumn: TableColumn): Promise<void>;
138
- /**
139
- * Changes a column in the table.
140
- * Changed column looses all its keys in the db.
141
- */
142
- changeColumns(tableOrName: Table | string, changedColumns: {
143
- oldColumn: TableColumn;
144
- newColumn: TableColumn;
145
- }[]): Promise<void>;
146
- /**
147
- * Drops column in the table.
148
- */
149
- dropColumn(tableOrName: Table | string, columnOrName: TableColumn | string): Promise<void>;
150
- /**
151
- * Drops the columns in the table.
152
- */
153
- dropColumns(tableOrName: Table | string, columns: TableColumn[] | string[]): Promise<void>;
154
- /**
155
- * Creates a new primary key.
156
- */
157
- createPrimaryKey(tableOrName: Table | string, columnNames: string[]): Promise<void>;
158
- /**
159
- * Updates composite primary keys.
160
- */
161
- updatePrimaryKeys(tableOrName: Table | string, columns: TableColumn[]): Promise<void>;
162
- /**
163
- * Drops a primary key.
164
- */
165
- dropPrimaryKey(tableOrName: Table | string): Promise<void>;
166
- /**
167
- * Creates a new unique constraint.
168
- */
169
- createUniqueConstraint(tableOrName: Table | string, uniqueConstraint: TableUnique): Promise<void>;
170
- /**
171
- * Creates a new unique constraints.
172
- */
173
- createUniqueConstraints(tableOrName: Table | string, uniqueConstraints: TableUnique[]): Promise<void>;
174
- /**
175
- * Drops an unique constraint.
176
- */
177
- dropUniqueConstraint(tableOrName: Table | string, uniqueOrName: TableUnique | string): Promise<void>;
178
- /**
179
- * Creates an unique constraints.
180
- */
181
- dropUniqueConstraints(tableOrName: Table | string, uniqueConstraints: TableUnique[]): Promise<void>;
182
- /**
183
- * Creates new check constraint.
184
- */
185
- createCheckConstraint(tableOrName: Table | string, checkConstraint: TableCheck): Promise<void>;
186
- /**
187
- * Creates new check constraints.
188
- */
189
- createCheckConstraints(tableOrName: Table | string, checkConstraints: TableCheck[]): Promise<void>;
190
- /**
191
- * Drops check constraint.
192
- */
193
- dropCheckConstraint(tableOrName: Table | string, checkOrName: TableCheck | string): Promise<void>;
194
- /**
195
- * Drops check constraints.
196
- */
197
- dropCheckConstraints(tableOrName: Table | string, checkConstraints: TableCheck[]): Promise<void>;
198
- /**
199
- * Creates a new exclusion constraint.
200
- */
201
- createExclusionConstraint(tableOrName: Table | string, exclusionConstraint: TableExclusion): Promise<void>;
202
- /**
203
- * Creates a new exclusion constraints.
204
- */
205
- createExclusionConstraints(tableOrName: Table | string, exclusionConstraints: TableExclusion[]): Promise<void>;
206
- /**
207
- * Drops exclusion constraint.
208
- */
209
- dropExclusionConstraint(tableOrName: Table | string, exclusionOrName: TableExclusion | string): Promise<void>;
210
- /**
211
- * Drops exclusion constraints.
212
- */
213
- dropExclusionConstraints(tableOrName: Table | string, exclusionConstraints: TableExclusion[]): Promise<void>;
214
- /**
215
- * Creates a new foreign key.
216
- */
217
- createForeignKey(tableOrName: Table | string, foreignKey: TableForeignKey): Promise<void>;
218
- /**
219
- * Creates a new foreign keys.
220
- */
221
- createForeignKeys(tableOrName: Table | string, foreignKeys: TableForeignKey[]): Promise<void>;
222
- /**
223
- * Drops a foreign key from the table.
224
- */
225
- dropForeignKey(tableOrName: Table | string, foreignKeyOrName: TableForeignKey | string): Promise<void>;
226
- /**
227
- * Drops a foreign keys from the table.
228
- */
229
- dropForeignKeys(tableOrName: Table | string, foreignKeys: TableForeignKey[]): Promise<void>;
230
- /**
231
- * Creates a new index.
232
- */
233
- createIndex(tableOrName: Table | string, index: TableIndex): Promise<void>;
234
- /**
235
- * Creates a new indices
236
- */
237
- createIndices(tableOrName: Table | string, indices: TableIndex[]): Promise<void>;
238
- /**
239
- * Drops an index from the table.
240
- */
241
- dropIndex(tableOrName: Table | string, indexOrName: TableIndex | string): Promise<void>;
242
- /**
243
- * Drops an indices from the table.
244
- */
245
- dropIndices(tableOrName: Table | string, indices: TableIndex[]): Promise<void>;
246
- /**
247
- * Clears all table contents.
248
- * Note: this operation uses SQL's TRUNCATE query which cannot be reverted in transactions.
249
- */
250
- clearTable(tableName: string): Promise<void>;
251
- /**
252
- * Removes all tables from the currently connected database.
253
- */
254
- clearDatabase(database?: string): Promise<void>;
255
- protected loadViews(viewNames?: string[]): Promise<View[]>;
256
- protected loadTableRecords(tablePath: string, tableOrIndex: "table" | "index"): Promise<any>;
257
- protected loadPragmaRecords(tablePath: string, pragma: string): Promise<any>;
258
- /**
259
- * Loads all tables (with given names) from the database and creates a Table from them.
260
- */
261
- protected loadTables(tableNames?: string[]): Promise<Table[]>;
262
- /**
263
- * Builds create table sql.
264
- */
265
- protected createTableSql(table: Table, createForeignKeys?: boolean, temporaryTable?: boolean): Query;
266
- /**
267
- * Builds drop table sql.
268
- */
269
- protected dropTableSql(tableOrName: Table | string, ifExist?: boolean): Query;
270
- protected createViewSql(view: View): Query;
271
- protected insertViewDefinitionSql(view: View): Query;
272
- /**
273
- * Builds drop view sql.
274
- */
275
- protected dropViewSql(viewOrPath: View | string): Query;
276
- /**
277
- * Builds remove view sql.
278
- */
279
- protected deleteViewDefinitionSql(viewOrPath: View | string): Query;
280
- /**
281
- * Builds create index sql.
282
- */
283
- protected createIndexSql(table: Table, index: TableIndex): Query;
284
- /**
285
- * Builds drop index sql.
286
- */
287
- protected dropIndexSql(indexOrName: TableIndex | string): Query;
288
- /**
289
- * Builds a query for create column.
290
- */
291
- protected buildCreateColumnSql(column: TableColumn, skipPrimary?: boolean): string;
292
- protected recreateTable(newTable: Table, oldTable: Table, migrateData?: boolean): Promise<void>;
293
- /**
294
- * tablePath e.g. "myDB.myTable", "myTable"
295
- */
296
- protected splitTablePath(tablePath: string): [string | undefined, string];
297
- /**
298
- * Escapes given table or view path. Tolerates leading/trailing dots
299
- */
300
- protected escapePath(target: Table | View | string, disableEscape?: boolean): string;
301
- }
@@ -1,47 +0,0 @@
1
- // @ts-nocheck
2
- import { BaseDataSourceOptions } from "../../data-source/BaseDataSourceOptions";
3
- /**
4
- * Sql.js-specific connection options.
5
- */
6
- export interface SqljsConnectionOptions extends BaseDataSourceOptions {
7
- /**
8
- * Database type.
9
- */
10
- readonly type: "sqljs";
11
- /**
12
- * A Uint8Array that gets imported when the connection is opened.
13
- */
14
- readonly database?: Uint8Array;
15
- /**
16
- * The driver object
17
- * This defaults to require("sql.js")
18
- */
19
- readonly driver?: any;
20
- /**
21
- * Config that's used to initialize sql.js.
22
- */
23
- readonly sqlJsConfig?: any;
24
- /**
25
- * Enables the autoSave mechanism which either saves to location
26
- * or calls autoSaveCallback every time a change to the database is made.
27
- */
28
- readonly autoSave?: boolean;
29
- /**
30
- * A function that gets called on every change instead of the internal autoSave function.
31
- * autoSave has to be enabled for this to work.
32
- */
33
- readonly autoSaveCallback?: Function;
34
- /**
35
- * File path (Node.js) or local storage key (browser) to load and save database from.
36
- * If this is specified without autoSave, the database is loaded from the location
37
- * and can be saved manually via the SqljsEntityManager. If autoSave is enabled,
38
- * location is used to automatically save the database.
39
- */
40
- readonly location?: string;
41
- /**
42
- * Enables the usage of the localforage library to save & load the database asynchronously from the
43
- * indexedDB instead of using the synchron local storage methods in a browser environment.
44
- */
45
- readonly useLocalForage?: boolean;
46
- readonly poolSize?: never;
47
- }
@@ -1,68 +0,0 @@
1
- // @ts-nocheck
2
- import { AbstractSqliteDriver } from "../sqlite-abstract/AbstractSqliteDriver";
3
- import { SqljsConnectionOptions } from "./SqljsConnectionOptions";
4
- import { QueryRunner } from "../../query-runner/QueryRunner";
5
- import { DataSource } from "../../data-source/DataSource";
6
- import { EntityMetadata } from "../../metadata/EntityMetadata";
7
- import { ReplicationMode } from "../types/ReplicationMode";
8
- import { _ } from 'tnp-core/browser';
9
- export declare class SqljsDriver extends AbstractSqliteDriver {
10
- options: SqljsConnectionOptions;
11
- localForgeInstance: any;
12
- databaseArrayFast: {};
13
- debounceSave: ((path: any) => Promise<void>) & _.Cancelable;
14
- constructor(connection: DataSource);
15
- /**
16
- * Performs connection to the database.
17
- */
18
- connect(): Promise<void>;
19
- /**
20
- * Closes connection with database.
21
- */
22
- disconnect(): Promise<void>;
23
- /**
24
- * Creates a query runner used to execute database queries.
25
- */
26
- createQueryRunner(mode: ReplicationMode): QueryRunner;
27
- /**
28
- * Loads a database from a given file (Node.js), local storage key (browser) or array.
29
- * This will delete the current database!
30
- */
31
- load(fileNameOrLocalStorageOrData: string | Uint8Array, checkIfFileOrLocalStorageExists?: boolean): Promise<any>;
32
- /**
33
- * Saved the current database to the given file (Node.js), local storage key (browser) or
34
- * indexedDB key (browser with enabled useLocalForage option).
35
- * If no location path is given, the location path in the options (if specified) will be used.
36
- */
37
- save(location?: string): Promise<void>;
38
- /**
39
- * This gets called by the QueryRunner when a change to the database is made.
40
- * If a custom autoSaveCallback is specified, it get's called with the database as Uint8Array,
41
- * otherwise the save method is called which saves it to file (Node.js), local storage (browser)
42
- * or indexedDB (browser with enabled useLocalForage option).
43
- * Don't auto-save when in transaction as the call to export will end the current transaction
44
- */
45
- autoSave(): Promise<void>;
46
- /**
47
- * Returns the current database as Uint8Array.
48
- */
49
- export(): Uint8Array;
50
- /**
51
- * Creates generated map of values generated or returned by database after INSERT query.
52
- */
53
- createGeneratedMap(metadata: EntityMetadata, insertResult: any): any;
54
- /**
55
- * Creates connection with the database.
56
- * If the location option is set, the database is loaded first.
57
- */
58
- protected createDatabaseConnection(): Promise<any>;
59
- /**
60
- * Creates connection with an optional database.
61
- * If database is specified it is loaded, otherwise a new empty database is created.
62
- */
63
- protected createDatabaseConnectionWithImport(database?: Uint8Array): Promise<any>;
64
- /**
65
- * If driver dependency is not given explicitly, then try to load it via "require".
66
- */
67
- protected loadDependencies(): void;
68
- }
@@ -1,36 +0,0 @@
1
- // @ts-nocheck
2
- import { AbstractSqliteQueryRunner } from "../sqlite-abstract/AbstractSqliteQueryRunner";
3
- import { SqljsDriver } from "./SqljsDriver";
4
- /**
5
- * Runs queries on a single sqlite database connection.
6
- */
7
- export declare class SqljsQueryRunner extends AbstractSqliteQueryRunner {
8
- /**
9
- * Flag to determine if a modification has happened since the last time this query runner has requested a save.
10
- */
11
- private isDirty;
12
- /**
13
- * Database driver used by connection.
14
- */
15
- driver: SqljsDriver;
16
- constructor(driver: SqljsDriver);
17
- /**
18
- * Called before migrations are run.
19
- */
20
- beforeMigration(): Promise<void>;
21
- /**
22
- * Called after migrations are run.
23
- */
24
- afterMigration(): Promise<void>;
25
- private flush;
26
- release(): Promise<void>;
27
- /**
28
- * Commits transaction.
29
- * Error will be thrown if transaction was not started.
30
- */
31
- commitTransaction(): Promise<void>;
32
- /**
33
- * Executes a given SQL query.
34
- */
35
- query(query: string, parameters?: any[], useStructuredResult?: boolean): Promise<any>;
36
- }
@@ -1,26 +0,0 @@
1
- // @ts-nocheck
2
- /**
3
- * Column types used for @PrimaryGeneratedColumn() decorator.
4
- */
5
- export type PrimaryGeneratedColumnType = "int" | "int2" | "int4" | "int8" | "integer" | "tinyint" | "smallint" | "mediumint" | "bigint" | "dec" | "decimal" | "smalldecimal" | "fixed" | "numeric" | "number";
6
- /**
7
- * Column types where spatial properties are used.
8
- */
9
- export type SpatialColumnType = "geometry" | "geography" | "st_geometry" | "st_point";
10
- /**
11
- * Column types where precision and scale properties are used.
12
- */
13
- export type WithPrecisionColumnType = "float" | "double" | "dec" | "decimal" | "smalldecimal" | "fixed" | "numeric" | "real" | "double precision" | "number" | "datetime" | "datetime2" | "datetimeoffset" | "time" | "time with time zone" | "time without time zone" | "timestamp" | "timestamp without time zone" | "timestamp with time zone" | "timestamp with local time zone";
14
- /**
15
- * Column types where column length is used.
16
- */
17
- export type WithLengthColumnType = "character varying" | "varying character" | "char varying" | "nvarchar" | "national varchar" | "character" | "native character" | "varchar" | "char" | "nchar" | "national char" | "varchar2" | "nvarchar2" | "alphanum" | "shorttext" | "raw" | "binary" | "varbinary" | "string";
18
- export type WithWidthColumnType = "tinyint" | "smallint" | "mediumint" | "int" | "bigint";
19
- /**
20
- * All other regular column types.
21
- */
22
- export type SimpleColumnType = "simple-array" | "simple-json" | "simple-enum" | "int2" | "integer" | "int4" | "int8" | "int64" | "unsigned big int" | "float" | "float4" | "float8" | "float64" | "smallmoney" | "money" | "boolean" | "bool" | "tinyblob" | "tinytext" | "mediumblob" | "mediumtext" | "blob" | "text" | "ntext" | "citext" | "hstore" | "longblob" | "longtext" | "alphanum" | "shorttext" | "bytes" | "bytea" | "long" | "raw" | "long raw" | "bfile" | "clob" | "nclob" | "image" | "timetz" | "timestamptz" | "timestamp with local time zone" | "smalldatetime" | "date" | "interval year to month" | "interval day to second" | "interval" | "year" | "seconddate" | "point" | "line" | "lseg" | "box" | "circle" | "path" | "polygon" | "geography" | "geometry" | "linestring" | "multipoint" | "multilinestring" | "multipolygon" | "geometrycollection" | "st_geometry" | "st_point" | "int4range" | "int8range" | "numrange" | "tsrange" | "tstzrange" | "daterange" | "enum" | "set" | "cidr" | "inet" | "macaddr" | "bit" | "bit varying" | "varbit" | "tsvector" | "tsquery" | "uuid" | "xml" | "json" | "jsonb" | "varbinary" | "hierarchyid" | "sql_variant" | "rowid" | "urowid" | "uniqueidentifier" | "rowversion" | "array" | "cube" | "ltree";
23
- /**
24
- * Any column type column can be.
25
- */
26
- export type ColumnType = WithPrecisionColumnType | WithLengthColumnType | WithWidthColumnType | SpatialColumnType | SimpleColumnType | BooleanConstructor | DateConstructor | NumberConstructor | StringConstructor;
@@ -1,19 +0,0 @@
1
- // @ts-nocheck
2
- export interface CteCapabilities {
3
- /**
4
- * Are CTEs supported at all?
5
- */
6
- enabled: boolean;
7
- /**
8
- * Are RETURNING clauses supported in CTEs?
9
- */
10
- writable?: boolean;
11
- /**
12
- * Is RECURSIVE clause required for recursive CTEs?
13
- */
14
- requiresRecursiveHint?: boolean;
15
- /**
16
- * Is MATERIALIZED clause supported?
17
- */
18
- materializedHint?: boolean;
19
- }
@@ -1,9 +0,0 @@
1
- // @ts-nocheck
2
- export interface DataTypeDefaults {
3
- [type: string]: {
4
- length?: number;
5
- width?: number;
6
- precision?: number;
7
- scale?: number;
8
- };
9
- }
@@ -1,5 +0,0 @@
1
- // @ts-nocheck
2
- /**
3
- * Database type.
4
- */
5
- export type DatabaseType = "mysql" | "postgres" | "cockroachdb" | "sap" | "mariadb" | "sqlite" | "cordova" | "react-native" | "nativescript" | "sqljs" | "oracle" | "mssql" | "mongodb" | "aurora-mysql" | "aurora-postgres" | "expo" | "better-sqlite3" | "capacitor" | "spanner";
@@ -1,2 +0,0 @@
1
- // @ts-nocheck
2
- export type IsolationLevel = "READ UNCOMMITTED" | "READ COMMITTED" | "REPEATABLE READ" | "SERIALIZABLE";
@@ -1,113 +0,0 @@
1
- // @ts-nocheck
2
- import { ColumnType } from "./ColumnTypes";
3
- /**
4
- * Orm has special columns and we need to know what database column types should be for those types.
5
- * Column types are driver dependant.
6
- */
7
- export interface MappedColumnTypes {
8
- /**
9
- * Column type for the create date column.
10
- */
11
- createDate: ColumnType;
12
- /**
13
- * Precision of datetime column. Used in MySql to define milliseconds.
14
- */
15
- createDatePrecision?: number;
16
- /**
17
- * Default value should be used by a database for "created date" column.
18
- */
19
- createDateDefault: string;
20
- /**
21
- * Column type for the update date column.
22
- */
23
- updateDate: ColumnType;
24
- /**
25
- * Precision of datetime column. Used in MySql to define milliseconds.
26
- */
27
- updateDatePrecision?: number;
28
- /**
29
- * Default value should be used by a database for "updated date" column.
30
- */
31
- updateDateDefault: string;
32
- /**
33
- * Column type for the delete date column.
34
- */
35
- deleteDate: ColumnType;
36
- /**
37
- * Precision of datetime column. Used in MySql to define milliseconds.
38
- */
39
- deleteDatePrecision?: number;
40
- /**
41
- * Nullable value should be used by a database for "deleted date" column.
42
- */
43
- deleteDateNullable: boolean;
44
- /**
45
- * Column type for the version column.
46
- */
47
- version: ColumnType;
48
- /**
49
- * Column type for the tree level column.
50
- */
51
- treeLevel: ColumnType;
52
- /**
53
- * Column type of id column used for migrations table.
54
- */
55
- migrationId: ColumnType;
56
- /**
57
- * Column type of timestamp column used for migrations table.
58
- */
59
- migrationTimestamp: ColumnType;
60
- /**
61
- * Column type for migration name column used for migrations table.
62
- */
63
- migrationName: ColumnType;
64
- /**
65
- * Column type for identifier column in query result cache table.
66
- */
67
- cacheId: ColumnType;
68
- /**
69
- * Column type for identifier column in query result cache table.
70
- */
71
- cacheIdentifier: ColumnType;
72
- /**
73
- * Column type for time column in query result cache table.
74
- */
75
- cacheTime: ColumnType;
76
- /**
77
- * Column type for duration column in query result cache table.
78
- */
79
- cacheDuration: ColumnType;
80
- /**
81
- * Column type for query column in query result cache table.
82
- */
83
- cacheQuery: ColumnType;
84
- /**
85
- * Column type for result column in query result cache table.
86
- */
87
- cacheResult: ColumnType;
88
- /**
89
- * Column type for metadata type column in typeorm metadata table.
90
- * Stores type of metadata. E.g. 'VIEW' or 'CHECK'
91
- */
92
- metadataType: ColumnType;
93
- /**
94
- * Column type for metadata database name column in typeorm metadata table.
95
- */
96
- metadataDatabase: ColumnType;
97
- /**
98
- * Column type for metadata schema name column in typeorm metadata table.
99
- */
100
- metadataSchema: ColumnType;
101
- /**
102
- * Column type for metadata table name column in typeorm metadata table.
103
- */
104
- metadataTable: ColumnType;
105
- /**
106
- * Column type for metadata name column in typeorm metadata table.
107
- */
108
- metadataName: ColumnType;
109
- /**
110
- * Column type for metadata value column in typeorm metadata table.
111
- */
112
- metadataValue: ColumnType;
113
- }
@@ -1,6 +0,0 @@
1
- // @ts-nocheck
2
- export declare enum MetadataTableType {
3
- VIEW = "VIEW",
4
- MATERIALIZED_VIEW = "MATERIALIZED_VIEW",
5
- GENERATED_COLUMN = "GENERATED_COLUMN"
6
- }
@@ -1,2 +0,0 @@
1
- // @ts-nocheck
2
- export type ReplicationMode = "master" | "slave";
@@ -1,2 +0,0 @@
1
- // @ts-nocheck
2
- export type UpsertType = "on-conflict-do-update" | "on-duplicate-key-update";