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,25 +0,0 @@
1
- // @ts-nocheck
2
- import { BaseDataSourceOptions } from "../../data-source/BaseDataSourceOptions";
3
- /**
4
- * Sqlite-specific connection options.
5
- */
6
- export interface CordovaConnectionOptions extends BaseDataSourceOptions {
7
- /**
8
- * Database type.
9
- */
10
- readonly type: "cordova";
11
- /**
12
- * Database name.
13
- */
14
- readonly database: string;
15
- /**
16
- * The driver object
17
- * This defaults to `window.sqlitePlugin`
18
- */
19
- readonly driver?: any;
20
- /**
21
- * Storage Location
22
- */
23
- readonly location: string;
24
- readonly poolSize?: never;
25
- }
@@ -1,26 +0,0 @@
1
- // @ts-nocheck
2
- import { AbstractSqliteDriver } from "../sqlite-abstract/AbstractSqliteDriver";
3
- import { CordovaConnectionOptions } from "./CordovaConnectionOptions";
4
- import { QueryRunner } from "../../query-runner/QueryRunner";
5
- import { DataSource } from "../../data-source/DataSource";
6
- import { ReplicationMode } from "../types/ReplicationMode";
7
- export declare class CordovaDriver extends AbstractSqliteDriver {
8
- options: CordovaConnectionOptions;
9
- constructor(connection: DataSource);
10
- /**
11
- * Closes connection with database.
12
- */
13
- disconnect(): Promise<void>;
14
- /**
15
- * Creates a query runner used to execute database queries.
16
- */
17
- createQueryRunner(mode: ReplicationMode): QueryRunner;
18
- /**
19
- * Creates connection with the database.
20
- */
21
- protected createDatabaseConnection(): Promise<any>;
22
- /**
23
- * If driver dependency is not given explicitly, then try to load it via "require".
24
- */
25
- protected loadDependencies(): void;
26
- }
@@ -1,81 +0,0 @@
1
- // @ts-nocheck
2
- import { ObjectLiteral } from "../../common/ObjectLiteral";
3
- import { AbstractSqliteQueryRunner } from "../sqlite-abstract/AbstractSqliteQueryRunner";
4
- import { CordovaDriver } from "./CordovaDriver";
5
- /**
6
- * Runs queries on a single sqlite database connection.
7
- */
8
- export declare class CordovaQueryRunner extends AbstractSqliteQueryRunner {
9
- /**
10
- * Database driver used by connection.
11
- */
12
- driver: CordovaDriver;
13
- constructor(driver: CordovaDriver);
14
- /**
15
- * Called before migrations are run.
16
- */
17
- beforeMigration(): Promise<void>;
18
- /**
19
- * Called after migrations are run.
20
- */
21
- afterMigration(): Promise<void>;
22
- /**
23
- * Executes a given SQL query.
24
- */
25
- query(query: string, parameters?: any[], useStructuredResult?: boolean): Promise<any>;
26
- /**
27
- * Insert a new row with given values into the given table.
28
- * Returns value of the generated column if given and generate column exist in the table.
29
- // todo: implement new syntax
30
- async insert(tableName: string, keyValues: ObjectLiteral): Promise<InsertResult> {
31
- const keys = Object.keys(keyValues);
32
- const columns = keys.map(key => `"${key}"`).join(", ");
33
- const values = keys.map(key => "?").join(",");
34
- const generatedColumns = this.connection.hasMetadata(tableName) ? this.connection.getMetadata(tableName).generatedColumns : [];
35
- const sql = columns.length > 0 ? (`INSERT INTO "${tableName}"(${columns}) VALUES (${values})`) : `INSERT INTO "${tableName}" DEFAULT VALUES`;
36
- const parameters = keys.map(key => keyValues[key]);
37
-
38
- return new Promise<InsertResult>(async (ok, fail) => {
39
- this.driver.connection.logger.logQuery(sql, parameters, this);
40
- const __this = this;
41
- const databaseConnection = await this.connect();
42
- databaseConnection.executeSql(sql, parameters, (resultSet: any) => {
43
- const generatedMap = generatedColumns.reduce((map, generatedColumn) => {
44
- const value = generatedColumn.isPrimary && generatedColumn.generationStrategy === "increment" && resultSet.insertId ? resultSet.insertId : keyValues[generatedColumn.databaseName];
45
- if (!value) return map;
46
- return OrmUtils.mergeDeep(map, generatedColumn.createValueMap(value));
47
- }, {} as ObjectLiteral);
48
-
49
- ok({
50
- result: undefined,
51
- generatedMap: Object.keys(generatedMap).length > 0 ? generatedMap : undefined
52
- });
53
- }, (err: any) => {
54
- __this.driver.connection.logger.logQueryError(err, sql, parameters, this);
55
- fail(err);
56
- });
57
- });
58
- }*/
59
- /**
60
- * Would start a transaction but this driver does not support transactions.
61
- */
62
- startTransaction(): Promise<void>;
63
- /**
64
- * Would start a transaction but this driver does not support transactions.
65
- */
66
- commitTransaction(): Promise<void>;
67
- /**
68
- * Would start a transaction but this driver does not support transactions.
69
- */
70
- rollbackTransaction(): Promise<void>;
71
- /**
72
- * Removes all tables from the currently connected database.
73
- * Be careful with using this method and avoid using it in production or migrations
74
- * (because it can clear all your database).
75
- */
76
- clearDatabase(): Promise<void>;
77
- /**
78
- * Parametrizes given object of values. Used to create column=value queries.
79
- */
80
- protected parametrize(objectLiteral: ObjectLiteral, startIndex?: number): string[];
81
- }
@@ -1,46 +0,0 @@
1
- // @ts-nocheck
2
- /**
3
- * Create a new ObjectID instance.
4
- *
5
- * @see http://mongodb.github.io/node-mongodb-native/2.1/api/ObjectID.html
6
- */
7
- export declare class ObjectID {
8
- constructor(s?: string | number);
9
- /**
10
- * The generation time of this ObjectId instance.
11
- */
12
- generationTime: number;
13
- /**
14
- * Creates an ObjectID from a hex string representation of an ObjectID.
15
- */
16
- static createFromHexString(hexString: string): ObjectID;
17
- /**
18
- * Creates an ObjectID from a second based number, with the rest of the ObjectID zeroed out. Used for comparisons or sorting the ObjectID.
19
- */
20
- static createFromTime(time: number): ObjectID;
21
- /**
22
- * Checks if a value is a valid bson ObjectId.
23
- */
24
- static isValid(id: any): boolean;
25
- /**
26
- * Compares the equality of this ObjectID with otherID.
27
- */
28
- equals(otherID: ObjectID): boolean;
29
- /**
30
- * Generate a 12 byte id buffer used in ObjectID's.
31
- */
32
- generate(time?: number): string;
33
- /**
34
- * Returns the generation date (accurate up to the second) that this ID was generated.
35
- *
36
- */
37
- getTimestamp(): Date;
38
- /**
39
- * Return the ObjectID id as a 24 byte hex string representation.
40
- */
41
- toHexString(): string;
42
- /**
43
- * Get the timestamp and validate correctness.
44
- */
45
- toString(): string;
46
- }
@@ -1,46 +0,0 @@
1
- // @ts-nocheck
2
- import { BaseDataSourceOptions } from "../../data-source/BaseDataSourceOptions";
3
- /**
4
- * NativeScript-specific connection options.
5
- */
6
- export interface NativescriptConnectionOptions extends BaseDataSourceOptions {
7
- /**
8
- * Database type.
9
- */
10
- readonly type: "nativescript";
11
- /**
12
- * Database name.
13
- */
14
- readonly database: string;
15
- /**
16
- * The driver object
17
- * you should pass `require('nativescript-sqlite') here
18
- */
19
- readonly driver: any;
20
- /**
21
- * Whether to mark the mark the database as read only on open (iOS only).
22
- */
23
- readonly readOnly?: boolean;
24
- /**
25
- * The key to use for for using/opening encrypted databases. (requires the "Encrypted Plugin")
26
- */
27
- readonly key?: string;
28
- /**
29
- * Whether to enable background multitasking. All SQL is ran on a background worker thread. (requires the "Commercial Plugin")
30
- */
31
- readonly multithreading?: boolean;
32
- /**
33
- * Migrates a Encrypted Sql database from v3 to the new v4. If you are a new user you do not need to set this flag as new created databases will already be in v4.
34
- * If you are upgrading a app that used v1.3.0 or earlier of NS-Sqlite-Encrypted; then you will probably want to set this flag to true. (requires the "Encrypted Plugin")
35
- */
36
- readonly migrate?: boolean;
37
- /**
38
- * Flags to pass to SQLite when opening the database on iOS. (see https://www.sqlite.org/c3ref/open.html)
39
- */
40
- readonly iosFlags?: number;
41
- /**
42
- * Flags to pass to SQLite when opening the database on Android. (see https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html)
43
- */
44
- readonly androidFlags?: number;
45
- readonly poolSize?: never;
46
- }
@@ -1,45 +0,0 @@
1
- // @ts-nocheck
2
- import { AbstractSqliteDriver } from "../sqlite-abstract/AbstractSqliteDriver";
3
- import { NativescriptConnectionOptions } from "./NativescriptConnectionOptions";
4
- import { QueryRunner } from "../../query-runner/QueryRunner";
5
- import { DataSource } from "../../data-source/DataSource";
6
- import { ColumnType } from "../types/ColumnTypes";
7
- import { ReplicationMode } from "../types/ReplicationMode";
8
- /**
9
- * Organizes communication with sqlite DBMS within Nativescript.
10
- */
11
- export declare class NativescriptDriver extends AbstractSqliteDriver {
12
- /**
13
- * Connection options.
14
- */
15
- options: NativescriptConnectionOptions;
16
- /**
17
- * Nativescript driver module
18
- * this is most likely `nativescript-sqlite`
19
- * but user can pass his own
20
- */
21
- driver: any;
22
- constructor(connection: DataSource);
23
- /**
24
- * Closes connection with database.
25
- */
26
- disconnect(): Promise<void>;
27
- /**
28
- * Creates a query runner used to execute database queries.
29
- */
30
- createQueryRunner(mode: ReplicationMode): QueryRunner;
31
- normalizeType(column: {
32
- type?: ColumnType;
33
- length?: number | string;
34
- precision?: number | null;
35
- scale?: number;
36
- }): string;
37
- /**
38
- * Creates connection with the database.
39
- */
40
- protected createDatabaseConnection(): Promise<void>;
41
- /**
42
- * If driver dependency is not given explicitly, then try to load it via "require".
43
- */
44
- protected loadDependencies(): void;
45
- }
@@ -1,30 +0,0 @@
1
- // @ts-nocheck
2
- import { ObjectLiteral } from "../../common/ObjectLiteral";
3
- import { AbstractSqliteQueryRunner } from "../sqlite-abstract/AbstractSqliteQueryRunner";
4
- import { NativescriptDriver } from "./NativescriptDriver";
5
- /**
6
- * Runs queries on a single sqlite database connection.
7
- */
8
- export declare class NativescriptQueryRunner extends AbstractSqliteQueryRunner {
9
- /**
10
- * Database driver used by connection.
11
- */
12
- driver: NativescriptDriver;
13
- constructor(driver: NativescriptDriver);
14
- /**
15
- * Called before migrations are run.
16
- */
17
- beforeMigration(): Promise<void>;
18
- /**
19
- * Called after migrations are run.
20
- */
21
- afterMigration(): Promise<void>;
22
- /**
23
- * Executes a given SQL query.
24
- */
25
- query(query: string, parameters?: any[], useStructuredResult?: boolean): Promise<any>;
26
- /**
27
- * Parametrizes given object of values. Used to create column=value queries.
28
- */
29
- protected parametrize(objectLiteral: ObjectLiteral, startIndex?: number): string[];
30
- }
@@ -1,25 +0,0 @@
1
- // @ts-nocheck
2
- import { BaseDataSourceOptions } from "../../data-source/BaseDataSourceOptions";
3
- /**
4
- * Sqlite-specific connection options.
5
- */
6
- export interface ReactNativeConnectionOptions extends BaseDataSourceOptions {
7
- /**
8
- * Database type.
9
- */
10
- readonly type: "react-native";
11
- /**
12
- * Database name.
13
- */
14
- readonly database: string;
15
- /**
16
- * The driver object
17
- * This defaults to require("react-native-sqlite-storage")
18
- */
19
- readonly driver?: any;
20
- /**
21
- * Storage Location
22
- */
23
- readonly location: string;
24
- readonly poolSize?: never;
25
- }
@@ -1,26 +0,0 @@
1
- // @ts-nocheck
2
- import { AbstractSqliteDriver } from "../sqlite-abstract/AbstractSqliteDriver";
3
- import { ReactNativeConnectionOptions } from "./ReactNativeConnectionOptions";
4
- import { QueryRunner } from "../../query-runner/QueryRunner";
5
- import { DataSource } from "../../data-source/DataSource";
6
- import { ReplicationMode } from "../types/ReplicationMode";
7
- export declare class ReactNativeDriver extends AbstractSqliteDriver {
8
- options: ReactNativeConnectionOptions;
9
- constructor(connection: DataSource);
10
- /**
11
- * Closes connection with database.
12
- */
13
- disconnect(): Promise<void>;
14
- /**
15
- * Creates a query runner used to execute database queries.
16
- */
17
- createQueryRunner(mode: ReplicationMode): QueryRunner;
18
- /**
19
- * Creates connection with the database.
20
- */
21
- protected createDatabaseConnection(): Promise<void>;
22
- /**
23
- * If driver dependency is not given explicitly, then try to load it via "require".
24
- */
25
- protected loadDependencies(): void;
26
- }
@@ -1,30 +0,0 @@
1
- // @ts-nocheck
2
- import { ObjectLiteral } from "../../common/ObjectLiteral";
3
- import { AbstractSqliteQueryRunner } from "../sqlite-abstract/AbstractSqliteQueryRunner";
4
- import { ReactNativeDriver } from "./ReactNativeDriver";
5
- /**
6
- * Runs queries on a single sqlite database connection.
7
- */
8
- export declare class ReactNativeQueryRunner extends AbstractSqliteQueryRunner {
9
- /**
10
- * Database driver used by connection.
11
- */
12
- driver: ReactNativeDriver;
13
- constructor(driver: ReactNativeDriver);
14
- /**
15
- * Called before migrations are run.
16
- */
17
- beforeMigration(): Promise<void>;
18
- /**
19
- * Called after migrations are run.
20
- */
21
- afterMigration(): Promise<void>;
22
- /**
23
- * Executes a given SQL query.
24
- */
25
- query(query: string, parameters?: any[], useStructuredResult?: boolean): Promise<any>;
26
- /**
27
- * Parametrizes given object of values. Used to create column=value queries.
28
- */
29
- protected parametrize(objectLiteral: ObjectLiteral, startIndex?: number): string[];
30
- }
@@ -1,238 +0,0 @@
1
- // @ts-nocheck
2
- import { Driver } from "../Driver";
3
- import { ObjectLiteral } from "../../common/ObjectLiteral";
4
- import { ColumnMetadata } from "../../metadata/ColumnMetadata";
5
- import { DataSource } from "../../data-source/DataSource";
6
- import { RdbmsSchemaBuilder } from "../../schema-builder/RdbmsSchemaBuilder";
7
- import { CteCapabilities } from "../types/CteCapabilities";
8
- import { MappedColumnTypes } from "../types/MappedColumnTypes";
9
- import { ColumnType } from "../types/ColumnTypes";
10
- import { QueryRunner } from "../../query-runner/QueryRunner";
11
- import { DataTypeDefaults } from "../types/DataTypeDefaults";
12
- import { TableColumn } from "../../schema-builder/table/TableColumn";
13
- import { BaseDataSourceOptions } from "../../data-source/BaseDataSourceOptions";
14
- import { EntityMetadata } from "../../metadata/EntityMetadata";
15
- import { ReplicationMode } from "../types/ReplicationMode";
16
- import { Table } from "../../schema-builder/table/Table";
17
- import { View } from "../../schema-builder/view/View";
18
- import { TableForeignKey } from "../../schema-builder/table/TableForeignKey";
19
- type DatabasesMap = Record<string, {
20
- attachFilepathAbsolute: string;
21
- attachFilepathRelative: string;
22
- attachHandle: string;
23
- }>;
24
- /**
25
- * Organizes communication with sqlite DBMS.
26
- */
27
- export declare abstract class AbstractSqliteDriver implements Driver {
28
- /**
29
- * Connection used by driver.
30
- */
31
- connection: DataSource;
32
- /**
33
- * Sqlite has a single QueryRunner because it works on a single database connection.
34
- */
35
- queryRunner?: QueryRunner;
36
- /**
37
- * Real database connection with sqlite database.
38
- */
39
- databaseConnection: any;
40
- /**
41
- * Connection options.
42
- */
43
- options: BaseDataSourceOptions;
44
- /**
45
- * Master database used to perform all write queries.
46
- */
47
- database?: string;
48
- /**
49
- * Indicates if replication is enabled.
50
- */
51
- isReplicated: boolean;
52
- /**
53
- * SQLite underlying library.
54
- */
55
- sqlite: any;
56
- /**
57
- * Indicates if tree tables are supported by this driver.
58
- */
59
- treeSupport: boolean;
60
- /**
61
- * Represent transaction support by this driver
62
- */
63
- transactionSupport: "simple" | "nested" | "none";
64
- /**
65
- * Gets list of supported column data types by a driver.
66
- *
67
- * @see https://www.tutorialspoint.com/sqlite/sqlite_data_types.htm
68
- * @see https://sqlite.org/datatype3.html
69
- */
70
- supportedDataTypes: ColumnType[];
71
- /**
72
- * Returns type of upsert supported by driver if any
73
- */
74
- readonly supportedUpsertType = "on-conflict-do-update";
75
- /**
76
- * Gets list of column data types that support length by a driver.
77
- */
78
- withLengthColumnTypes: ColumnType[];
79
- /**
80
- * Gets list of spatial column data types.
81
- */
82
- spatialTypes: ColumnType[];
83
- /**
84
- * Gets list of column data types that support precision by a driver.
85
- */
86
- withPrecisionColumnTypes: ColumnType[];
87
- /**
88
- * Gets list of column data types that support scale by a driver.
89
- */
90
- withScaleColumnTypes: ColumnType[];
91
- /**
92
- * Orm has special columns and we need to know what database column types should be for those types.
93
- * Column types are driver dependant.
94
- */
95
- mappedDataTypes: MappedColumnTypes;
96
- /**
97
- * Default values of length, precision and scale depends on column data type.
98
- * Used in the cases when length/precision/scale is not specified by user.
99
- */
100
- dataTypeDefaults: DataTypeDefaults;
101
- /**
102
- * No documentation specifying a maximum length for identifiers could be found
103
- * for SQLite.
104
- */
105
- maxAliasLength?: number;
106
- cteCapabilities: CteCapabilities;
107
- /**
108
- * Any attached databases (excepting default 'main')
109
- */
110
- attachedDatabases: DatabasesMap;
111
- constructor(connection: DataSource);
112
- /**
113
- * Creates a query runner used to execute database queries.
114
- */
115
- abstract createQueryRunner(mode: ReplicationMode): QueryRunner;
116
- /**
117
- * Performs connection to the database.
118
- */
119
- connect(): Promise<void>;
120
- /**
121
- * Makes any action after connection (e.g. create extensions in Postgres driver).
122
- */
123
- afterConnect(): Promise<void>;
124
- /**
125
- * Closes connection with database.
126
- */
127
- disconnect(): Promise<void>;
128
- hasAttachedDatabases(): boolean;
129
- getAttachedDatabaseHandleByRelativePath(path: string): string | undefined;
130
- getAttachedDatabasePathRelativeByHandle(handle: string): string | undefined;
131
- /**
132
- * Creates a schema builder used to build and sync a schema.
133
- */
134
- createSchemaBuilder(): RdbmsSchemaBuilder;
135
- /**
136
- * Prepares given value to a value to be persisted, based on its column type and metadata.
137
- */
138
- preparePersistentValue(value: any, columnMetadata: ColumnMetadata): any;
139
- /**
140
- * Prepares given value to a value to be hydrated, based on its column type or metadata.
141
- */
142
- prepareHydratedValue(value: any, columnMetadata: ColumnMetadata): any;
143
- /**
144
- * Replaces parameters in the given sql with special escaping character
145
- * and an array of parameter names to be passed to a query.
146
- */
147
- escapeQueryWithParameters(sql: string, parameters: ObjectLiteral, nativeParameters: ObjectLiteral): [string, any[]];
148
- /**
149
- * Escapes a column name.
150
- */
151
- escape(columnName: string): string;
152
- /**
153
- * Build full table name with database name, schema name and table name.
154
- * E.g. myDB.mySchema.myTable
155
- *
156
- * Returns only simple table name because all inherited drivers does not supports schema and database.
157
- */
158
- buildTableName(tableName: string, schema?: string, database?: string): string;
159
- /**
160
- * Parse a target table name or other types and return a normalized table definition.
161
- */
162
- parseTableName(target: EntityMetadata | Table | View | TableForeignKey | string): {
163
- database?: string;
164
- schema?: string;
165
- tableName: string;
166
- };
167
- /**
168
- * Creates a database type from a given column metadata.
169
- */
170
- normalizeType(column: {
171
- type?: ColumnType;
172
- length?: number | string;
173
- precision?: number | null;
174
- scale?: number;
175
- }): string;
176
- /**
177
- * Normalizes "default" value of the column.
178
- */
179
- normalizeDefault(columnMetadata: ColumnMetadata): string | undefined;
180
- /**
181
- * Normalizes "isUnique" value of the column.
182
- */
183
- normalizeIsUnique(column: ColumnMetadata): boolean;
184
- /**
185
- * Calculates column length taking into account the default length values.
186
- */
187
- getColumnLength(column: ColumnMetadata): string;
188
- /**
189
- * Normalizes "default" value of the column.
190
- */
191
- createFullType(column: TableColumn): string;
192
- /**
193
- * Obtains a new database connection to a master server.
194
- * Used for replication.
195
- * If replication is not setup then returns default connection's database connection.
196
- */
197
- obtainMasterConnection(): Promise<any>;
198
- /**
199
- * Obtains a new database connection to a slave server.
200
- * Used for replication.
201
- * If replication is not setup then returns master (default) connection's database connection.
202
- */
203
- obtainSlaveConnection(): Promise<any>;
204
- /**
205
- * Creates generated map of values generated or returned by database after INSERT query.
206
- */
207
- createGeneratedMap(metadata: EntityMetadata, insertResult: any, entityIndex: number, entityNum: number): any;
208
- /**
209
- * Differentiate columns of this table and columns from the given column metadatas columns
210
- * and returns only changed.
211
- */
212
- findChangedColumns(tableColumns: TableColumn[], columnMetadatas: ColumnMetadata[]): ColumnMetadata[];
213
- /**
214
- * Returns true if driver supports RETURNING / OUTPUT statement.
215
- */
216
- isReturningSqlSupported(): boolean;
217
- /**
218
- * Returns true if driver supports uuid values generation on its own.
219
- */
220
- isUUIDGenerationSupported(): boolean;
221
- /**
222
- * Returns true if driver supports fulltext indices.
223
- */
224
- isFullTextColumnTypeSupported(): boolean;
225
- /**
226
- * Creates an escaped parameter.
227
- */
228
- createParameter(parameterName: string, index: number): string;
229
- /**
230
- * Creates connection with the database.
231
- */
232
- protected createDatabaseConnection(): void;
233
- /**
234
- * If driver dependency is not given explicitly, then try to load it via "require".
235
- */
236
- protected loadDependencies(): void;
237
- }
238
- export {};