taon-typeorm 21.0.55 → 21.0.56

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 (267) hide show
  1. package/VERIFIED-BUILD-DATA.jsonc +3 -3
  2. package/browser/package.json +1 -1
  3. package/browser-prod/package.json +1 -1
  4. package/full-dts/build-info._auto-generated_.d.ts +1 -1
  5. package/lib/build-info._auto-generated_.d.ts +1 -1
  6. package/lib/build-info._auto-generated_.js +1 -1
  7. package/lib/package.json +1 -1
  8. package/lib/typeorm/cache/DbQueryResultCache____ORIGINAL____.d.ts +52 -0
  9. package/lib/typeorm/cli-ts-node-commonjs____ORIGINAL____.d.ts +2 -0
  10. package/lib/typeorm/cli-ts-node-esm____ORIGINAL____.d.ts +2 -0
  11. package/lib/typeorm/cli____ORIGINAL____.d.ts +2 -0
  12. package/lib/typeorm/commands/CacheClearCommand____ORIGINAL____.d.ts +12 -0
  13. package/lib/typeorm/commands/CommandUtils____ORIGINAL____.d.ts +24 -0
  14. package/lib/typeorm/commands/EntityCreateCommand____ORIGINAL____.d.ts +13 -0
  15. package/lib/typeorm/commands/InitCommand____ORIGINAL____.d.ts +69 -0
  16. package/lib/typeorm/commands/MigrationCreateCommand____ORIGINAL____.d.ts +22 -0
  17. package/lib/typeorm/commands/MigrationGenerateCommand____ORIGINAL____.d.ts +38 -0
  18. package/lib/typeorm/commands/MigrationRevertCommand____ORIGINAL____.d.ts +16 -0
  19. package/lib/typeorm/commands/MigrationRunCommand____ORIGINAL____.d.ts +16 -0
  20. package/lib/typeorm/commands/MigrationShowCommand____ORIGINAL____.d.ts +12 -0
  21. package/lib/typeorm/commands/QueryCommand____ORIGINAL____.d.ts +14 -0
  22. package/lib/typeorm/commands/SchemaDropCommand____ORIGINAL____.d.ts +12 -0
  23. package/lib/typeorm/commands/SchemaLogCommand____ORIGINAL____.d.ts +12 -0
  24. package/lib/typeorm/commands/SchemaSyncCommand____ORIGINAL____.d.ts +12 -0
  25. package/lib/typeorm/commands/SubscriberCreateCommand____ORIGINAL____.d.ts +13 -0
  26. package/lib/typeorm/connection/ConnectionOptionsReader____ORIGINAL____.d.ts +64 -0
  27. package/lib/typeorm/data-source/DataSourceOptions____ORIGINAL____.d.ts +22 -0
  28. package/lib/typeorm/data-source/DataSource____ORIGINAL____.d.ts +249 -0
  29. package/lib/typeorm/decorator/options/JoinTableMultipleColumnsOptions____ORIGINAL____.d.ts +35 -0
  30. package/lib/typeorm/decorator/options/JoinTableOptions____ORIGINAL____.d.ts +35 -0
  31. package/lib/typeorm/decorator/relations/JoinTable____ORIGINAL____.d.ts +17 -0
  32. package/lib/typeorm/decorator/tree/TreeChildren____ORIGINAL____.d.ts +7 -0
  33. package/lib/typeorm/decorator/tree/TreeParent____ORIGINAL____.d.ts +8 -0
  34. package/lib/typeorm/driver/DriverFactory____ORIGINAL____.d.ts +11 -0
  35. package/lib/typeorm/driver/Driver____ORIGINAL____.d.ts +211 -0
  36. package/lib/typeorm/driver/aurora-mysql/AuroraMysqlConnectionOptions____ORIGINAL____.d.ts +35 -0
  37. package/lib/typeorm/driver/aurora-mysql/AuroraMysqlDriver____ORIGINAL____.d.ts +250 -0
  38. package/lib/typeorm/driver/aurora-mysql/AuroraMysqlQueryRunner____ORIGINAL____.d.ts +327 -0
  39. package/lib/typeorm/driver/better-sqlite3/BetterSqlite3Driver____ORIGINAL____.d.ts +59 -0
  40. package/lib/typeorm/driver/better-sqlite3/BetterSqlite3QueryRunner____ORIGINAL____.d.ts +32 -0
  41. package/lib/typeorm/driver/cordova/CordovaDriver____ORIGINAL____.d.ts +26 -0
  42. package/lib/typeorm/driver/mongodb/MongoConnectionOptions____ORIGINAL____.d.ts +278 -0
  43. package/lib/typeorm/driver/mongodb/MongoDriver____ORIGINAL____.d.ts +224 -0
  44. package/lib/typeorm/driver/mongodb/MongoQueryRunner____ORIGINAL____.d.ts +548 -0
  45. package/lib/typeorm/driver/mongodb/typings____ORIGINAL____.d.ts +5350 -0
  46. package/lib/typeorm/driver/mysql/MysqlConnectionCredentialsOptions____ORIGINAL____.d.ts +39 -0
  47. package/lib/typeorm/driver/mysql/MysqlConnectionOptions____ORIGINAL____.d.ts +126 -0
  48. package/lib/typeorm/driver/mysql/MysqlDriver____ORIGINAL____.d.ts +262 -0
  49. package/lib/typeorm/driver/mysql/MysqlQueryRunner____ORIGINAL____.d.ts +328 -0
  50. package/lib/typeorm/driver/nativescript/NativescriptDriver____ORIGINAL____.d.ts +44 -0
  51. package/lib/typeorm/driver/oracle/OracleConnectionCredentialsOptions____ORIGINAL____.d.ts +41 -0
  52. package/lib/typeorm/driver/oracle/OracleConnectionOptions____ORIGINAL____.d.ts +37 -0
  53. package/lib/typeorm/driver/oracle/OracleDriver____ORIGINAL____.d.ts +241 -0
  54. package/lib/typeorm/driver/oracle/OracleQueryRunner____ORIGINAL____.d.ts +333 -0
  55. package/lib/typeorm/driver/postgres/PostgresConnectionCredentialsOptions____ORIGINAL____.d.ts +34 -0
  56. package/lib/typeorm/driver/postgres/PostgresConnectionOptions____ORIGINAL____.d.ts +83 -0
  57. package/lib/typeorm/driver/postgres/PostgresDriver____ORIGINAL____.d.ts +290 -0
  58. package/lib/typeorm/driver/postgres/PostgresQueryRunner____ORIGINAL____.d.ts +414 -0
  59. package/lib/typeorm/driver/react-native/ReactNativeDriver____ORIGINAL____.d.ts +25 -0
  60. package/lib/typeorm/driver/react-native/ReactNativeQueryRunner____ORIGINAL____.d.ts +29 -0
  61. package/lib/typeorm/driver/sap/SapDriver____ORIGINAL____.d.ts +217 -0
  62. package/lib/typeorm/driver/sqlite/SqliteConnectionOptions____ORIGINAL____.d.ts +48 -0
  63. package/lib/typeorm/driver/sqlite/SqliteDriver____ORIGINAL____.d.ts +59 -0
  64. package/lib/typeorm/driver/sqlite-abstract/AbstractSqliteDriver____ORIGINAL____.d.ts +237 -0
  65. package/lib/typeorm/driver/sqlite-abstract/AbstractSqliteQueryRunner____ORIGINAL____.d.ts +301 -0
  66. package/lib/typeorm/driver/sqljs/SqljsDriver____ORIGINAL____.d.ts +63 -0
  67. package/lib/typeorm/driver/sqljs/SqljsQueryRunner____ORIGINAL____.d.ts +35 -0
  68. package/lib/typeorm/driver/sqlserver/MssqlParameter____ORIGINAL____.d.ts +44 -0
  69. package/lib/typeorm/driver/sqlserver/SqlServerConnectionCredentialsOptions____ORIGINAL____.d.ts +49 -0
  70. package/lib/typeorm/driver/sqlserver/SqlServerConnectionOptions____ORIGINAL____.d.ts +237 -0
  71. package/lib/typeorm/driver/sqlserver/SqlServerDriver____ORIGINAL____.d.ts +253 -0
  72. package/lib/typeorm/driver/sqlserver/SqlServerQueryRunner____ORIGINAL____.d.ts +356 -0
  73. package/lib/typeorm/entity-manager/EntityManagerFactory____ORIGINAL____.d.ts +12 -0
  74. package/lib/typeorm/entity-manager/EntityManager____ORIGINAL____.d.ts +361 -0
  75. package/lib/typeorm/entity-manager/MongoEntityManager____ORIGINAL____.d.ts +300 -0
  76. package/lib/typeorm/entity-manager/SqljsEntityManager____ORIGINAL____.d.ts +26 -0
  77. package/lib/typeorm/error/index____ORIGINAL____.d.ts +62 -0
  78. package/lib/typeorm/find-options/FindOptionsOrder____ORIGINAL____.d.ts +18 -0
  79. package/lib/typeorm/find-options/FindOptionsRelations____ORIGINAL____.d.ts +18 -0
  80. package/lib/typeorm/find-options/FindOptionsSelect____ORIGINAL____.d.ts +18 -0
  81. package/lib/typeorm/find-options/FindOptionsWhere____ORIGINAL____.d.ts +13 -0
  82. package/lib/typeorm/find-options/operator/Any____ORIGINAL____.d.ts +6 -0
  83. package/lib/typeorm/find-options/operator/ArrayContainedBy____ORIGINAL____.d.ts +6 -0
  84. package/lib/typeorm/find-options/operator/ArrayContains____ORIGINAL____.d.ts +6 -0
  85. package/lib/typeorm/find-options/operator/ArrayOverlap____ORIGINAL____.d.ts +6 -0
  86. package/lib/typeorm/find-options/operator/In____ORIGINAL____.d.ts +6 -0
  87. package/lib/typeorm/globals____ORIGINAL____.d.ts +118 -0
  88. package/lib/typeorm/index____ORIGINAL____.d.ts +173 -0
  89. package/lib/typeorm/logger/FileLogger____ORIGINAL____.d.ts +46 -0
  90. package/lib/typeorm/logger/LoggerFactory____ORIGINAL____.d.ts +11 -0
  91. package/lib/typeorm/metadata/ColumnMetadata____ORIGINAL____.d.ts +315 -0
  92. package/lib/typeorm/metadata-args/JoinTableMetadataArgs____ORIGINAL____.d.ts +43 -0
  93. package/lib/typeorm/metadata-builder/JunctionEntityMetadataBuilder____ORIGINAL____.d.ts +26 -0
  94. package/lib/typeorm/migration/MigrationExecutor____ORIGINAL____.d.ts +99 -0
  95. package/lib/typeorm/migration/MigrationInterface____ORIGINAL____.d.ts +25 -0
  96. package/lib/typeorm/migration/Migration____ORIGINAL____.d.ts +28 -0
  97. package/lib/typeorm/naming-strategy/NamingStrategyInterface____ORIGINAL____.d.ts +117 -0
  98. package/lib/typeorm/persistence/EntityPersistExecutor____ORIGINAL____.d.ts +21 -0
  99. package/lib/typeorm/persistence/SubjectChangedColumnsComputer____ORIGINAL____.d.ts +18 -0
  100. package/lib/typeorm/persistence/SubjectDatabaseEntityLoader____ORIGINAL____.d.ts +35 -0
  101. package/lib/typeorm/persistence/SubjectExecutor____ORIGINAL____.d.ts +118 -0
  102. package/lib/typeorm/persistence/Subject____ORIGINAL____.d.ts +155 -0
  103. package/lib/typeorm/persistence/tree/MaterializedPathSubjectExecutor____ORIGINAL____.d.ts +19 -0
  104. package/lib/typeorm/platform/PlatformTools____ORIGINAL____.d.ts +67 -0
  105. package/lib/typeorm/query-builder/DeleteQueryBuilder____ORIGINAL____.d.ts +91 -0
  106. package/lib/typeorm/query-builder/InsertOrUpdateOptions____ORIGINAL____.d.ts +10 -0
  107. package/lib/typeorm/query-builder/InsertQueryBuilder____ORIGINAL____.d.ts +117 -0
  108. package/lib/typeorm/query-builder/QueryBuilder____ORIGINAL____.d.ts +266 -0
  109. package/lib/typeorm/query-builder/QueryExpressionMap____ORIGINAL____.d.ts +306 -0
  110. package/lib/typeorm/query-builder/RelationLoader____ORIGINAL____.d.ts +59 -0
  111. package/lib/typeorm/query-builder/RelationQueryBuilder____ORIGINAL____.d.ts +69 -0
  112. package/lib/typeorm/query-builder/SelectQueryBuilder____ORIGINAL____.d.ts +685 -0
  113. package/lib/typeorm/query-builder/SoftDeleteQueryBuilder____ORIGINAL____.d.ts +138 -0
  114. package/lib/typeorm/query-builder/UpdateQueryBuilder____ORIGINAL____.d.ts +143 -0
  115. package/lib/typeorm/query-builder/transformer/RawSqlResultsToEntityTransformer____ORIGINAL____.d.ts +55 -0
  116. package/lib/typeorm/query-runner/BaseQueryRunner____ORIGINAL____.d.ts +203 -0
  117. package/lib/typeorm/query-runner/QueryRunner____ORIGINAL____.d.ts +359 -0
  118. package/lib/typeorm/repository/MongoRepository____ORIGINAL____.d.ts +262 -0
  119. package/lib/typeorm/repository/Repository____ORIGINAL____.d.ts +295 -0
  120. package/lib/typeorm/repository/TreeRepository____ORIGINAL____.d.ts +51 -0
  121. package/lib/typeorm/repository/UpsertOptions____ORIGINAL____.d.ts +13 -0
  122. package/lib/typeorm/schema-builder/RdbmsSchemaBuilder____ORIGINAL____.d.ts +148 -0
  123. package/lib/typeorm/schema-builder/util/TableUtils____ORIGINAL____.d.ts +6 -0
  124. package/lib/typeorm/schema-builder/view/View____ORIGINAL____.d.ts +49 -0
  125. package/lib/typeorm/util/DateUtils____ORIGINAL____.d.ts +58 -0
  126. package/lib/typeorm/util/DirectoryExportedClassesLoader____ORIGINAL____.d.ts +9 -0
  127. package/lib/typeorm/util/ImportUtils____ORIGINAL____.d.ts +1 -0
  128. package/lib/typeorm/util/InstanceChecker____ORIGINAL____.d.ts +63 -0
  129. package/lib/typeorm/util/ObjectUtils____ORIGINAL____.d.ts +37 -0
  130. package/lib/typeorm/util/OrmUtils____ORIGINAL____.d.ts +52 -0
  131. package/lib/typeorm/util/PathUtils____ORIGINAL____.d.ts +10 -0
  132. package/lib/typeorm/util/StringUtils____ORIGINAL____.d.ts +63 -0
  133. package/lib/typeorm/util/TreeRepositoryUtils____ORIGINAL____.d.ts +23 -0
  134. package/lib-esm/lib/build-info._auto-generated_.d.ts +1 -1
  135. package/lib-esm/lib/build-info._auto-generated_.js +1 -1
  136. package/lib-esm/lib/typeorm/cache/DbQueryResultCache____ORIGINAL____.d.ts +52 -0
  137. package/lib-esm/lib/typeorm/cli-ts-node-commonjs____ORIGINAL____.d.ts +2 -0
  138. package/lib-esm/lib/typeorm/cli-ts-node-esm____ORIGINAL____.d.ts +2 -0
  139. package/lib-esm/lib/typeorm/cli____ORIGINAL____.d.ts +2 -0
  140. package/lib-esm/lib/typeorm/commands/CacheClearCommand____ORIGINAL____.d.ts +12 -0
  141. package/lib-esm/lib/typeorm/commands/CommandUtils____ORIGINAL____.d.ts +24 -0
  142. package/lib-esm/lib/typeorm/commands/EntityCreateCommand____ORIGINAL____.d.ts +13 -0
  143. package/lib-esm/lib/typeorm/commands/InitCommand____ORIGINAL____.d.ts +69 -0
  144. package/lib-esm/lib/typeorm/commands/MigrationCreateCommand____ORIGINAL____.d.ts +22 -0
  145. package/lib-esm/lib/typeorm/commands/MigrationGenerateCommand____ORIGINAL____.d.ts +38 -0
  146. package/lib-esm/lib/typeorm/commands/MigrationRevertCommand____ORIGINAL____.d.ts +16 -0
  147. package/lib-esm/lib/typeorm/commands/MigrationRunCommand____ORIGINAL____.d.ts +16 -0
  148. package/lib-esm/lib/typeorm/commands/MigrationShowCommand____ORIGINAL____.d.ts +12 -0
  149. package/lib-esm/lib/typeorm/commands/QueryCommand____ORIGINAL____.d.ts +14 -0
  150. package/lib-esm/lib/typeorm/commands/SchemaDropCommand____ORIGINAL____.d.ts +12 -0
  151. package/lib-esm/lib/typeorm/commands/SchemaLogCommand____ORIGINAL____.d.ts +12 -0
  152. package/lib-esm/lib/typeorm/commands/SchemaSyncCommand____ORIGINAL____.d.ts +12 -0
  153. package/lib-esm/lib/typeorm/commands/SubscriberCreateCommand____ORIGINAL____.d.ts +13 -0
  154. package/lib-esm/lib/typeorm/connection/ConnectionOptionsReader____ORIGINAL____.d.ts +64 -0
  155. package/lib-esm/lib/typeorm/data-source/DataSourceOptions____ORIGINAL____.d.ts +22 -0
  156. package/lib-esm/lib/typeorm/data-source/DataSource____ORIGINAL____.d.ts +249 -0
  157. package/lib-esm/lib/typeorm/decorator/options/JoinTableMultipleColumnsOptions____ORIGINAL____.d.ts +35 -0
  158. package/lib-esm/lib/typeorm/decorator/options/JoinTableOptions____ORIGINAL____.d.ts +35 -0
  159. package/lib-esm/lib/typeorm/decorator/relations/JoinTable____ORIGINAL____.d.ts +17 -0
  160. package/lib-esm/lib/typeorm/decorator/tree/TreeChildren____ORIGINAL____.d.ts +7 -0
  161. package/lib-esm/lib/typeorm/decorator/tree/TreeParent____ORIGINAL____.d.ts +8 -0
  162. package/lib-esm/lib/typeorm/driver/DriverFactory____ORIGINAL____.d.ts +11 -0
  163. package/lib-esm/lib/typeorm/driver/Driver____ORIGINAL____.d.ts +211 -0
  164. package/lib-esm/lib/typeorm/driver/aurora-mysql/AuroraMysqlConnectionOptions____ORIGINAL____.d.ts +35 -0
  165. package/lib-esm/lib/typeorm/driver/aurora-mysql/AuroraMysqlDriver____ORIGINAL____.d.ts +250 -0
  166. package/lib-esm/lib/typeorm/driver/aurora-mysql/AuroraMysqlQueryRunner____ORIGINAL____.d.ts +327 -0
  167. package/lib-esm/lib/typeorm/driver/better-sqlite3/BetterSqlite3Driver____ORIGINAL____.d.ts +59 -0
  168. package/lib-esm/lib/typeorm/driver/better-sqlite3/BetterSqlite3QueryRunner____ORIGINAL____.d.ts +32 -0
  169. package/lib-esm/lib/typeorm/driver/cordova/CordovaDriver____ORIGINAL____.d.ts +26 -0
  170. package/lib-esm/lib/typeorm/driver/mongodb/MongoConnectionOptions____ORIGINAL____.d.ts +278 -0
  171. package/lib-esm/lib/typeorm/driver/mongodb/MongoDriver____ORIGINAL____.d.ts +224 -0
  172. package/lib-esm/lib/typeorm/driver/mongodb/MongoQueryRunner____ORIGINAL____.d.ts +548 -0
  173. package/lib-esm/lib/typeorm/driver/mongodb/typings____ORIGINAL____.d.ts +5350 -0
  174. package/lib-esm/lib/typeorm/driver/mysql/MysqlConnectionCredentialsOptions____ORIGINAL____.d.ts +39 -0
  175. package/lib-esm/lib/typeorm/driver/mysql/MysqlConnectionOptions____ORIGINAL____.d.ts +126 -0
  176. package/lib-esm/lib/typeorm/driver/mysql/MysqlDriver____ORIGINAL____.d.ts +262 -0
  177. package/lib-esm/lib/typeorm/driver/mysql/MysqlQueryRunner____ORIGINAL____.d.ts +328 -0
  178. package/lib-esm/lib/typeorm/driver/nativescript/NativescriptDriver____ORIGINAL____.d.ts +44 -0
  179. package/lib-esm/lib/typeorm/driver/oracle/OracleConnectionCredentialsOptions____ORIGINAL____.d.ts +41 -0
  180. package/lib-esm/lib/typeorm/driver/oracle/OracleConnectionOptions____ORIGINAL____.d.ts +37 -0
  181. package/lib-esm/lib/typeorm/driver/oracle/OracleDriver____ORIGINAL____.d.ts +241 -0
  182. package/lib-esm/lib/typeorm/driver/oracle/OracleQueryRunner____ORIGINAL____.d.ts +333 -0
  183. package/lib-esm/lib/typeorm/driver/postgres/PostgresConnectionCredentialsOptions____ORIGINAL____.d.ts +34 -0
  184. package/lib-esm/lib/typeorm/driver/postgres/PostgresConnectionOptions____ORIGINAL____.d.ts +83 -0
  185. package/lib-esm/lib/typeorm/driver/postgres/PostgresDriver____ORIGINAL____.d.ts +290 -0
  186. package/lib-esm/lib/typeorm/driver/postgres/PostgresQueryRunner____ORIGINAL____.d.ts +414 -0
  187. package/lib-esm/lib/typeorm/driver/react-native/ReactNativeDriver____ORIGINAL____.d.ts +25 -0
  188. package/lib-esm/lib/typeorm/driver/react-native/ReactNativeQueryRunner____ORIGINAL____.d.ts +29 -0
  189. package/lib-esm/lib/typeorm/driver/sap/SapDriver____ORIGINAL____.d.ts +217 -0
  190. package/lib-esm/lib/typeorm/driver/sqlite/SqliteConnectionOptions____ORIGINAL____.d.ts +48 -0
  191. package/lib-esm/lib/typeorm/driver/sqlite/SqliteDriver____ORIGINAL____.d.ts +59 -0
  192. package/lib-esm/lib/typeorm/driver/sqlite-abstract/AbstractSqliteDriver____ORIGINAL____.d.ts +237 -0
  193. package/lib-esm/lib/typeorm/driver/sqlite-abstract/AbstractSqliteQueryRunner____ORIGINAL____.d.ts +301 -0
  194. package/lib-esm/lib/typeorm/driver/sqljs/SqljsDriver____ORIGINAL____.d.ts +63 -0
  195. package/lib-esm/lib/typeorm/driver/sqljs/SqljsQueryRunner____ORIGINAL____.d.ts +35 -0
  196. package/lib-esm/lib/typeorm/driver/sqlserver/MssqlParameter____ORIGINAL____.d.ts +44 -0
  197. package/lib-esm/lib/typeorm/driver/sqlserver/SqlServerConnectionCredentialsOptions____ORIGINAL____.d.ts +49 -0
  198. package/lib-esm/lib/typeorm/driver/sqlserver/SqlServerConnectionOptions____ORIGINAL____.d.ts +237 -0
  199. package/lib-esm/lib/typeorm/driver/sqlserver/SqlServerDriver____ORIGINAL____.d.ts +253 -0
  200. package/lib-esm/lib/typeorm/driver/sqlserver/SqlServerQueryRunner____ORIGINAL____.d.ts +356 -0
  201. package/lib-esm/lib/typeorm/entity-manager/EntityManagerFactory____ORIGINAL____.d.ts +12 -0
  202. package/lib-esm/lib/typeorm/entity-manager/EntityManager____ORIGINAL____.d.ts +361 -0
  203. package/lib-esm/lib/typeorm/entity-manager/MongoEntityManager____ORIGINAL____.d.ts +300 -0
  204. package/lib-esm/lib/typeorm/entity-manager/SqljsEntityManager____ORIGINAL____.d.ts +26 -0
  205. package/lib-esm/lib/typeorm/error/index____ORIGINAL____.d.ts +62 -0
  206. package/lib-esm/lib/typeorm/find-options/FindOptionsOrder____ORIGINAL____.d.ts +18 -0
  207. package/lib-esm/lib/typeorm/find-options/FindOptionsRelations____ORIGINAL____.d.ts +18 -0
  208. package/lib-esm/lib/typeorm/find-options/FindOptionsSelect____ORIGINAL____.d.ts +18 -0
  209. package/lib-esm/lib/typeorm/find-options/FindOptionsWhere____ORIGINAL____.d.ts +13 -0
  210. package/lib-esm/lib/typeorm/find-options/operator/Any____ORIGINAL____.d.ts +6 -0
  211. package/lib-esm/lib/typeorm/find-options/operator/ArrayContainedBy____ORIGINAL____.d.ts +6 -0
  212. package/lib-esm/lib/typeorm/find-options/operator/ArrayContains____ORIGINAL____.d.ts +6 -0
  213. package/lib-esm/lib/typeorm/find-options/operator/ArrayOverlap____ORIGINAL____.d.ts +6 -0
  214. package/lib-esm/lib/typeorm/find-options/operator/In____ORIGINAL____.d.ts +6 -0
  215. package/lib-esm/lib/typeorm/globals____ORIGINAL____.d.ts +118 -0
  216. package/lib-esm/lib/typeorm/index____ORIGINAL____.d.ts +173 -0
  217. package/lib-esm/lib/typeorm/logger/FileLogger____ORIGINAL____.d.ts +46 -0
  218. package/lib-esm/lib/typeorm/logger/LoggerFactory____ORIGINAL____.d.ts +11 -0
  219. package/lib-esm/lib/typeorm/metadata/ColumnMetadata____ORIGINAL____.d.ts +315 -0
  220. package/lib-esm/lib/typeorm/metadata-args/JoinTableMetadataArgs____ORIGINAL____.d.ts +43 -0
  221. package/lib-esm/lib/typeorm/metadata-builder/JunctionEntityMetadataBuilder____ORIGINAL____.d.ts +26 -0
  222. package/lib-esm/lib/typeorm/migration/MigrationExecutor____ORIGINAL____.d.ts +99 -0
  223. package/lib-esm/lib/typeorm/migration/MigrationInterface____ORIGINAL____.d.ts +25 -0
  224. package/lib-esm/lib/typeorm/migration/Migration____ORIGINAL____.d.ts +28 -0
  225. package/lib-esm/lib/typeorm/naming-strategy/NamingStrategyInterface____ORIGINAL____.d.ts +117 -0
  226. package/lib-esm/lib/typeorm/persistence/EntityPersistExecutor____ORIGINAL____.d.ts +21 -0
  227. package/lib-esm/lib/typeorm/persistence/SubjectChangedColumnsComputer____ORIGINAL____.d.ts +18 -0
  228. package/lib-esm/lib/typeorm/persistence/SubjectDatabaseEntityLoader____ORIGINAL____.d.ts +35 -0
  229. package/lib-esm/lib/typeorm/persistence/SubjectExecutor____ORIGINAL____.d.ts +118 -0
  230. package/lib-esm/lib/typeorm/persistence/Subject____ORIGINAL____.d.ts +155 -0
  231. package/lib-esm/lib/typeorm/persistence/tree/MaterializedPathSubjectExecutor____ORIGINAL____.d.ts +19 -0
  232. package/lib-esm/lib/typeorm/platform/PlatformTools____ORIGINAL____.d.ts +67 -0
  233. package/lib-esm/lib/typeorm/query-builder/DeleteQueryBuilder____ORIGINAL____.d.ts +91 -0
  234. package/lib-esm/lib/typeorm/query-builder/InsertOrUpdateOptions____ORIGINAL____.d.ts +10 -0
  235. package/lib-esm/lib/typeorm/query-builder/InsertQueryBuilder____ORIGINAL____.d.ts +117 -0
  236. package/lib-esm/lib/typeorm/query-builder/QueryBuilder____ORIGINAL____.d.ts +266 -0
  237. package/lib-esm/lib/typeorm/query-builder/QueryExpressionMap____ORIGINAL____.d.ts +306 -0
  238. package/lib-esm/lib/typeorm/query-builder/RelationLoader____ORIGINAL____.d.ts +59 -0
  239. package/lib-esm/lib/typeorm/query-builder/RelationQueryBuilder____ORIGINAL____.d.ts +69 -0
  240. package/lib-esm/lib/typeorm/query-builder/SelectQueryBuilder____ORIGINAL____.d.ts +685 -0
  241. package/lib-esm/lib/typeorm/query-builder/SoftDeleteQueryBuilder____ORIGINAL____.d.ts +138 -0
  242. package/lib-esm/lib/typeorm/query-builder/UpdateQueryBuilder____ORIGINAL____.d.ts +143 -0
  243. package/lib-esm/lib/typeorm/query-builder/transformer/RawSqlResultsToEntityTransformer____ORIGINAL____.d.ts +55 -0
  244. package/lib-esm/lib/typeorm/query-runner/BaseQueryRunner____ORIGINAL____.d.ts +203 -0
  245. package/lib-esm/lib/typeorm/query-runner/QueryRunner____ORIGINAL____.d.ts +359 -0
  246. package/lib-esm/lib/typeorm/repository/MongoRepository____ORIGINAL____.d.ts +262 -0
  247. package/lib-esm/lib/typeorm/repository/Repository____ORIGINAL____.d.ts +295 -0
  248. package/lib-esm/lib/typeorm/repository/TreeRepository____ORIGINAL____.d.ts +51 -0
  249. package/lib-esm/lib/typeorm/repository/UpsertOptions____ORIGINAL____.d.ts +13 -0
  250. package/lib-esm/lib/typeorm/schema-builder/RdbmsSchemaBuilder____ORIGINAL____.d.ts +148 -0
  251. package/lib-esm/lib/typeorm/schema-builder/util/TableUtils____ORIGINAL____.d.ts +6 -0
  252. package/lib-esm/lib/typeorm/schema-builder/view/View____ORIGINAL____.d.ts +49 -0
  253. package/lib-esm/lib/typeorm/util/DateUtils____ORIGINAL____.d.ts +58 -0
  254. package/lib-esm/lib/typeorm/util/DirectoryExportedClassesLoader____ORIGINAL____.d.ts +9 -0
  255. package/lib-esm/lib/typeorm/util/ImportUtils____ORIGINAL____.d.ts +1 -0
  256. package/lib-esm/lib/typeorm/util/InstanceChecker____ORIGINAL____.d.ts +63 -0
  257. package/lib-esm/lib/typeorm/util/ObjectUtils____ORIGINAL____.d.ts +37 -0
  258. package/lib-esm/lib/typeorm/util/OrmUtils____ORIGINAL____.d.ts +52 -0
  259. package/lib-esm/lib/typeorm/util/PathUtils____ORIGINAL____.d.ts +10 -0
  260. package/lib-esm/lib/typeorm/util/StringUtils____ORIGINAL____.d.ts +63 -0
  261. package/lib-esm/lib/typeorm/util/TreeRepositoryUtils____ORIGINAL____.d.ts +23 -0
  262. package/lib-prod/build-info._auto-generated_.d.ts +1 -1
  263. package/lib-prod/build-info._auto-generated_.js +1 -1
  264. package/lib-prod/package.json +1 -1
  265. package/package.json +1 -1
  266. package/websql/package.json +1 -1
  267. package/websql-prod/package.json +1 -1
@@ -0,0 +1,249 @@
1
+ import { Driver } from "../driver/Driver";
2
+ import { Repository } from "../repository/Repository";
3
+ import { EntitySubscriberInterface } from "../subscriber/EntitySubscriberInterface";
4
+ import { EntityTarget } from "../common/EntityTarget";
5
+ import { ObjectType } from "../common/ObjectType";
6
+ import { EntityManager } from "../entity-manager/EntityManager";
7
+ import { TreeRepository } from "../repository/TreeRepository";
8
+ import { NamingStrategyInterface } from "../naming-strategy/NamingStrategyInterface";
9
+ import { EntityMetadata } from "../metadata/EntityMetadata";
10
+ import { Logger } from "../logger/Logger";
11
+ import { MigrationInterface } from "../migration/MigrationInterface";
12
+ import { Migration } from "../migration/Migration";
13
+ import { MongoRepository } from "../repository/MongoRepository";
14
+ import { MongoEntityManager } from "../entity-manager/MongoEntityManager";
15
+ import { DataSourceOptions } from "./DataSourceOptions";
16
+ import { QueryRunner } from "../query-runner/QueryRunner";
17
+ import { SelectQueryBuilder } from "../query-builder/SelectQueryBuilder";
18
+ import { QueryResultCache } from "../cache/QueryResultCache";
19
+ import { SqljsEntityManager } from "../entity-manager/SqljsEntityManager";
20
+ import { RelationLoader } from "../query-builder/RelationLoader";
21
+ import { IsolationLevel } from "../driver/types/IsolationLevel";
22
+ import { ReplicationMode } from "../driver/types/ReplicationMode";
23
+ import { RelationIdLoader } from "../query-builder/RelationIdLoader";
24
+ import { ObjectLiteral } from "../common/ObjectLiteral";
25
+ /**
26
+ * DataSource is a pre-defined connection configuration to a specific database.
27
+ * You can have multiple data sources connected (with multiple connections in it),
28
+ * connected to multiple databases in your application.
29
+ *
30
+ * Before, it was called `Connection`, but now `Connection` is deprecated
31
+ * because `Connection` isn't the best name for what it's actually is.
32
+ */
33
+ export declare class DataSource {
34
+ readonly "@instanceof": symbol;
35
+ /**
36
+ * Connection name.
37
+ *
38
+ * @deprecated we don't need names anymore since we are going to drop all related methods relying on this property.
39
+ */
40
+ readonly name: string;
41
+ /**
42
+ * Connection options.
43
+ */
44
+ readonly options: DataSourceOptions;
45
+ /**
46
+ * Indicates if DataSource is initialized or not.
47
+ */
48
+ readonly isInitialized: boolean;
49
+ /**
50
+ * Database driver used by this connection.
51
+ */
52
+ driver: Driver;
53
+ /**
54
+ * EntityManager of this connection.
55
+ */
56
+ readonly manager: EntityManager;
57
+ /**
58
+ * Naming strategy used in the connection.
59
+ */
60
+ namingStrategy: NamingStrategyInterface;
61
+ /**
62
+ * Name for the metadata table
63
+ */
64
+ readonly metadataTableName: string;
65
+ /**
66
+ * Logger used to log orm events.
67
+ */
68
+ logger: Logger;
69
+ /**
70
+ * Migration instances that are registered for this connection.
71
+ */
72
+ readonly migrations: MigrationInterface[];
73
+ /**
74
+ * Entity subscriber instances that are registered for this connection.
75
+ */
76
+ readonly subscribers: EntitySubscriberInterface<any>[];
77
+ /**
78
+ * All entity metadatas that are registered for this connection.
79
+ */
80
+ readonly entityMetadatas: EntityMetadata[];
81
+ /**
82
+ * Used to work with query result cache.
83
+ */
84
+ queryResultCache?: QueryResultCache;
85
+ /**
86
+ * Used to load relations and work with lazy relations.
87
+ */
88
+ readonly relationLoader: RelationLoader;
89
+ readonly relationIdLoader: RelationIdLoader;
90
+ constructor(options: DataSourceOptions);
91
+ /**
92
+ Indicates if DataSource is initialized or not.
93
+ *
94
+ * @deprecated use .isInitialized instead
95
+ */
96
+ get isConnected(): boolean;
97
+ /**
98
+ * Gets the mongodb entity manager that allows to perform mongodb-specific repository operations
99
+ * with any entity in this connection.
100
+ *
101
+ * Available only in mongodb connections.
102
+ */
103
+ get mongoManager(): MongoEntityManager;
104
+ /**
105
+ * Gets a sql.js specific Entity Manager that allows to perform special load and save operations
106
+ *
107
+ * Available only in connection with the sqljs driver.
108
+ */
109
+ get sqljsManager(): SqljsEntityManager;
110
+ /**
111
+ * Updates current connection options with provided options.
112
+ */
113
+ setOptions(options: Partial<DataSourceOptions>): this;
114
+ /**
115
+ * Performs connection to the database.
116
+ * This method should be called once on application bootstrap.
117
+ * This method not necessarily creates database connection (depend on database type),
118
+ * but it also can setup a connection pool with database to use.
119
+ */
120
+ initialize(): Promise<this>;
121
+ /**
122
+ * Performs connection to the database.
123
+ * This method should be called once on application bootstrap.
124
+ * This method not necessarily creates database connection (depend on database type),
125
+ * but it also can setup a connection pool with database to use.
126
+ *
127
+ * @deprecated use .initialize method instead
128
+ */
129
+ connect(): Promise<this>;
130
+ /**
131
+ * Closes connection with the database.
132
+ * Once connection is closed, you cannot use repositories or perform any operations except opening connection again.
133
+ */
134
+ destroy(): Promise<void>;
135
+ /**
136
+ * Closes connection with the database.
137
+ * Once connection is closed, you cannot use repositories or perform any operations except opening connection again.
138
+ *
139
+ * @deprecated use .destroy method instead
140
+ */
141
+ close(): Promise<void>;
142
+ /**
143
+ * Creates database schema for all entities registered in this connection.
144
+ * Can be used only after connection to the database is established.
145
+ *
146
+ * @param dropBeforeSync If set to true then it drops the database with all its tables and data
147
+ */
148
+ synchronize(dropBeforeSync?: boolean): Promise<void>;
149
+ /**
150
+ * Drops the database and all its data.
151
+ * Be careful with this method on production since this method will erase all your database tables and their data.
152
+ * Can be used only after connection to the database is established.
153
+ */
154
+ dropDatabase(): Promise<void>;
155
+ /**
156
+ * Runs all pending migrations.
157
+ * Can be used only after connection to the database is established.
158
+ */
159
+ runMigrations(options?: {
160
+ transaction?: "all" | "none" | "each";
161
+ fake?: boolean;
162
+ }): Promise<Migration[]>;
163
+ /**
164
+ * Reverts last executed migration.
165
+ * Can be used only after connection to the database is established.
166
+ */
167
+ undoLastMigration(options?: {
168
+ transaction?: "all" | "none" | "each";
169
+ fake?: boolean;
170
+ }): Promise<void>;
171
+ /**
172
+ * Lists all migrations and whether they have been run.
173
+ * Returns true if there are pending migrations
174
+ */
175
+ showMigrations(): Promise<boolean>;
176
+ /**
177
+ * Checks if entity metadata exist for the given entity class, target name or table name.
178
+ */
179
+ hasMetadata(target: EntityTarget<any>): boolean;
180
+ /**
181
+ * Gets entity metadata for the given entity class or schema name.
182
+ */
183
+ getMetadata(target: EntityTarget<any>): EntityMetadata;
184
+ /**
185
+ * Gets repository for the given entity.
186
+ */
187
+ getRepository<Entity extends ObjectLiteral>(target: EntityTarget<Entity>): Repository<Entity>;
188
+ /**
189
+ * Gets tree repository for the given entity class or name.
190
+ * Only tree-type entities can have a TreeRepository, like ones decorated with @Tree decorator.
191
+ */
192
+ getTreeRepository<Entity extends ObjectLiteral>(target: EntityTarget<Entity>): TreeRepository<Entity>;
193
+ /**
194
+ * Gets mongodb-specific repository for the given entity class or name.
195
+ * Works only if connection is mongodb-specific.
196
+ */
197
+ getMongoRepository<Entity extends ObjectLiteral>(target: EntityTarget<Entity>): MongoRepository<Entity>;
198
+ /**
199
+ * Gets custom entity repository marked with @EntityRepository decorator.
200
+ *
201
+ * @deprecated use Repository.extend function to create a custom repository
202
+ */
203
+ getCustomRepository<T>(customRepository: ObjectType<T>): T;
204
+ /**
205
+ * Wraps given function execution (and all operations made there) into a transaction.
206
+ * All database operations must be executed using provided entity manager.
207
+ */
208
+ transaction<T>(runInTransaction: (entityManager: EntityManager) => Promise<T>): Promise<T>;
209
+ transaction<T>(isolationLevel: IsolationLevel, runInTransaction: (entityManager: EntityManager) => Promise<T>): Promise<T>;
210
+ /**
211
+ * Executes raw SQL query and returns raw database results.
212
+ */
213
+ query(query: string, parameters?: any[], queryRunner?: QueryRunner): Promise<any>;
214
+ /**
215
+ * Creates a new query builder that can be used to build a SQL query.
216
+ */
217
+ createQueryBuilder<Entity extends ObjectLiteral>(entityClass: EntityTarget<Entity>, alias: string, queryRunner?: QueryRunner): SelectQueryBuilder<Entity>;
218
+ /**
219
+ * Creates a new query builder that can be used to build a SQL query.
220
+ */
221
+ createQueryBuilder(queryRunner?: QueryRunner): SelectQueryBuilder<any>;
222
+ /**
223
+ * Creates a query runner used for perform queries on a single database connection.
224
+ * Using query runners you can control your queries to execute using single database connection and
225
+ * manually control your database transaction.
226
+ *
227
+ * Mode is used in replication mode and indicates whatever you want to connect
228
+ * to master database or any of slave databases.
229
+ * If you perform writes you must use master database,
230
+ * if you perform reads you can use slave databases.
231
+ */
232
+ createQueryRunner(mode?: ReplicationMode): QueryRunner;
233
+ /**
234
+ * Gets entity metadata of the junction table (many-to-many table).
235
+ */
236
+ getManyToManyMetadata(entityTarget: EntityTarget<any>, relationPropertyPath: string): EntityMetadata;
237
+ /**
238
+ * Creates an Entity Manager for the current connection with the help of the EntityManagerFactory.
239
+ */
240
+ createEntityManager(queryRunner?: QueryRunner): EntityManager;
241
+ /**
242
+ * Finds exist entity metadata by the given entity class, target name or table name.
243
+ */
244
+ protected findMetadata(target: EntityTarget<any>): EntityMetadata | undefined;
245
+ /**
246
+ * Builds metadatas for all registered classes inside this connection.
247
+ */
248
+ protected buildMetadatas(): Promise<void>;
249
+ }
@@ -0,0 +1,35 @@
1
+ import { JoinColumnOptions } from "./JoinColumnOptions";
2
+ /**
3
+ * Describes all join table with multiple column options.
4
+ */
5
+ export interface JoinTableMultipleColumnsOptions {
6
+ /**
7
+ * Name of the table that will be created to store values of the both tables (join table).
8
+ * By default is auto generated.
9
+ */
10
+ name?: string;
11
+ /**
12
+ * First column of the join table.
13
+ */
14
+ joinColumns?: JoinColumnOptions[];
15
+ /**
16
+ * Second (inverse) column of the join table.
17
+ */
18
+ inverseJoinColumns?: JoinColumnOptions[];
19
+ /**
20
+ * Database where join table will be created.
21
+ * Works only in some databases (like mysql and mssql).
22
+ */
23
+ database?: string;
24
+ /**
25
+ * Schema where join table will be created.
26
+ * Works only in some databases (like postgres and mssql).
27
+ */
28
+ schema?: string;
29
+ /**
30
+ * Indicates if schema synchronization is enabled or disabled junction table.
31
+ * If it will be set to false then schema sync will and migrations ignores junction table.
32
+ * By default schema synchronization is enabled.
33
+ */
34
+ readonly synchronize?: boolean;
35
+ }
@@ -0,0 +1,35 @@
1
+ import { JoinColumnOptions } from "./JoinColumnOptions";
2
+ /**
3
+ * Describes join table options.
4
+ */
5
+ export interface JoinTableOptions {
6
+ /**
7
+ * Name of the table that will be created to store values of the both tables (join table).
8
+ * By default is auto generated.
9
+ */
10
+ name?: string;
11
+ /**
12
+ * First column of the join table.
13
+ */
14
+ joinColumn?: JoinColumnOptions;
15
+ /**
16
+ * Second (inverse) column of the join table.
17
+ */
18
+ inverseJoinColumn?: JoinColumnOptions;
19
+ /**
20
+ * Database where join table will be created.
21
+ * Works only in some databases (like mysql and mssql).
22
+ */
23
+ database?: string;
24
+ /**
25
+ * Schema where join table will be created.
26
+ * Works only in some databases (like postgres and mssql).
27
+ */
28
+ schema?: string;
29
+ /**
30
+ * Indicates if schema synchronization is enabled or disabled junction table.
31
+ * If it will be set to false then schema sync will and migrations ignores junction table.
32
+ * By default schema synchronization is enabled.
33
+ */
34
+ synchronize?: boolean;
35
+ }
@@ -0,0 +1,17 @@
1
+ import { JoinTableMultipleColumnsOptions } from "../options/JoinTableMultipleColumnsOptions";
2
+ import { JoinTableOptions } from "../options/JoinTableOptions";
3
+ /**
4
+ * JoinTable decorator is used in many-to-many relationship to specify owner side of relationship.
5
+ * Its also used to set a custom junction table's name, column names and referenced columns.
6
+ */
7
+ export declare function JoinTable(): PropertyDecorator;
8
+ /**
9
+ * JoinTable decorator is used in many-to-many relationship to specify owner side of relationship.
10
+ * Its also used to set a custom junction table's name, column names and referenced columns.
11
+ */
12
+ export declare function JoinTable(options: JoinTableOptions): PropertyDecorator;
13
+ /**
14
+ * JoinTable decorator is used in many-to-many relationship to specify owner side of relationship.
15
+ * Its also used to set a custom junction table's name, column names and referenced columns.
16
+ */
17
+ export declare function JoinTable(options: JoinTableMultipleColumnsOptions): PropertyDecorator;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Marks a entity property as a children of the tree.
3
+ * "Tree children" will contain all children (bind) of this entity.
4
+ */
5
+ export declare function TreeChildren(options?: {
6
+ cascade?: boolean | ("insert" | "update" | "remove" | "soft-remove" | "recover")[];
7
+ }): PropertyDecorator;
@@ -0,0 +1,8 @@
1
+ import { OnDeleteType } from "../../metadata/types/OnDeleteType";
2
+ /**
3
+ * Marks a entity property as a parent of the tree.
4
+ * "Tree parent" indicates who owns (is a parent) of this entity in tree structure.
5
+ */
6
+ export declare function TreeParent(options?: {
7
+ onDelete?: OnDeleteType;
8
+ }): PropertyDecorator;
@@ -0,0 +1,11 @@
1
+ import { Driver } from "./Driver";
2
+ import { DataSource } from "../data-source/DataSource";
3
+ /**
4
+ * Helps to create drivers.
5
+ */
6
+ export declare class DriverFactory {
7
+ /**
8
+ * Creates a new driver depend on a given connection's driver type.
9
+ */
10
+ create(connection: DataSource): Driver;
11
+ }
@@ -0,0 +1,211 @@
1
+ import { QueryRunner } from "../query-runner/QueryRunner";
2
+ import { ColumnMetadata } from "../metadata/ColumnMetadata";
3
+ import { ObjectLiteral } from "../common/ObjectLiteral";
4
+ import { ColumnType } from "./types/ColumnTypes";
5
+ import { CteCapabilities } from "./types/CteCapabilities";
6
+ import { MappedColumnTypes } from "./types/MappedColumnTypes";
7
+ import { SchemaBuilder } from "../schema-builder/SchemaBuilder";
8
+ import { DataTypeDefaults } from "./types/DataTypeDefaults";
9
+ import { BaseDataSourceOptions } from "../data-source/BaseDataSourceOptions";
10
+ import { TableColumn } from "../schema-builder/table/TableColumn";
11
+ import { EntityMetadata } from "../metadata/EntityMetadata";
12
+ import { ReplicationMode } from "./types/ReplicationMode";
13
+ import { Table } from "../schema-builder/table/Table";
14
+ import { View } from "../schema-builder/view/View";
15
+ import { TableForeignKey } from "../schema-builder/table/TableForeignKey";
16
+ import { UpsertType } from "./types/UpsertType";
17
+ export type ReturningType = "insert" | "update" | "delete";
18
+ /**
19
+ * Driver organizes TypeORM communication with specific database management system.
20
+ */
21
+ export interface Driver {
22
+ /**
23
+ * Connection options.
24
+ */
25
+ options: BaseDataSourceOptions;
26
+ /**
27
+ * Database version/release. Often requires a SQL query to the DB, so it is not always set
28
+ */
29
+ version?: string;
30
+ /**
31
+ * Database name used to perform all write queries.
32
+ *
33
+ * todo: probably move into query runner.
34
+ */
35
+ database?: string;
36
+ /**
37
+ * Schema name used to perform all write queries.
38
+ */
39
+ schema?: string;
40
+ /**
41
+ * Indicates if replication is enabled.
42
+ */
43
+ isReplicated: boolean;
44
+ /**
45
+ * Indicates if tree tables are supported by this driver.
46
+ */
47
+ treeSupport: boolean;
48
+ /**
49
+ * Represent transaction support by this driver
50
+ */
51
+ transactionSupport: "simple" | "nested" | "none";
52
+ /**
53
+ * Gets list of supported column data types by a driver.
54
+ */
55
+ supportedDataTypes: ColumnType[];
56
+ /**
57
+ * Returns type of upsert supported by driver if any
58
+ */
59
+ supportedUpsertType?: UpsertType;
60
+ /**
61
+ * Default values of length, precision and scale depends on column data type.
62
+ * Used in the cases when length/precision/scale is not specified by user.
63
+ */
64
+ dataTypeDefaults: DataTypeDefaults;
65
+ /**
66
+ * Gets list of spatial column data types.
67
+ */
68
+ spatialTypes: ColumnType[];
69
+ /**
70
+ * Gets list of column data types that support length by a driver.
71
+ */
72
+ withLengthColumnTypes: ColumnType[];
73
+ /**
74
+ * Gets list of column data types that support precision by a driver.
75
+ */
76
+ withPrecisionColumnTypes: ColumnType[];
77
+ /**
78
+ * Gets list of column data types that support scale by a driver.
79
+ */
80
+ withScaleColumnTypes: ColumnType[];
81
+ /**
82
+ * Orm has special columns and we need to know what database column types should be for those types.
83
+ * Column types are driver dependant.
84
+ */
85
+ mappedDataTypes: MappedColumnTypes;
86
+ /**
87
+ * Max length allowed by the DBMS for aliases (execution of queries).
88
+ */
89
+ maxAliasLength?: number;
90
+ cteCapabilities: CteCapabilities;
91
+ /**
92
+ * Dummy table name
93
+ */
94
+ dummyTableName?: string;
95
+ /**
96
+ * Performs connection to the database.
97
+ * Depend on driver type it may create a connection pool.
98
+ */
99
+ connect(): Promise<void>;
100
+ /**
101
+ * Makes any action after connection (e.g. create extensions in Postgres driver).
102
+ */
103
+ afterConnect(): Promise<void>;
104
+ /**
105
+ * Closes connection with database and releases all resources.
106
+ */
107
+ disconnect(): Promise<void>;
108
+ /**
109
+ * Synchronizes database schema (creates tables, indices, etc).
110
+ */
111
+ createSchemaBuilder(): SchemaBuilder;
112
+ /**
113
+ * Creates a query runner used for common queries.
114
+ */
115
+ createQueryRunner(mode: ReplicationMode): QueryRunner;
116
+ /**
117
+ * Replaces parameters in the given sql with special escaping character
118
+ * and an array of parameter names to be passed to a query.
119
+ */
120
+ escapeQueryWithParameters(sql: string, parameters: ObjectLiteral, nativeParameters: ObjectLiteral): [string, any[]];
121
+ /**
122
+ * Escapes a table name, column name or an alias.
123
+ *
124
+ * todo: probably escape should be able to handle dots in the names and automatically escape them
125
+ */
126
+ escape(name: string): string;
127
+ /**
128
+ * Build full table name with database name, schema name and table name.
129
+ * E.g. myDB.mySchema.myTable
130
+ */
131
+ buildTableName(tableName: string, schema?: string, database?: string): string;
132
+ /**
133
+ * Parse a target table name or other types and return a normalized table definition.
134
+ */
135
+ parseTableName(target: EntityMetadata | Table | View | TableForeignKey | string): {
136
+ tableName: string;
137
+ schema?: string;
138
+ database?: string;
139
+ };
140
+ /**
141
+ * Prepares given value to a value to be persisted, based on its column type and metadata.
142
+ */
143
+ preparePersistentValue(value: any, column: ColumnMetadata): any;
144
+ /**
145
+ * Prepares given value to a value to be persisted, based on its column type.
146
+ */
147
+ prepareHydratedValue(value: any, column: ColumnMetadata): any;
148
+ /**
149
+ * Transforms type of the given column to a database column type.
150
+ */
151
+ normalizeType(column: {
152
+ type?: ColumnType | string;
153
+ length?: number | string;
154
+ precision?: number | null;
155
+ scale?: number;
156
+ isArray?: boolean;
157
+ }): string;
158
+ /**
159
+ * Normalizes "default" value of the column.
160
+ */
161
+ normalizeDefault(columnMetadata: ColumnMetadata): string | undefined;
162
+ /**
163
+ * Normalizes "isUnique" value of the column.
164
+ */
165
+ normalizeIsUnique(column: ColumnMetadata): boolean;
166
+ /**
167
+ * Calculates column length taking into account the default length values.
168
+ */
169
+ getColumnLength(column: ColumnMetadata): string;
170
+ /**
171
+ * Normalizes "default" value of the column.
172
+ */
173
+ createFullType(column: TableColumn): string;
174
+ /**
175
+ * Obtains a new database connection to a master server.
176
+ * Used for replication.
177
+ * If replication is not setup then returns default connection's database connection.
178
+ */
179
+ obtainMasterConnection(): Promise<any>;
180
+ /**
181
+ * Obtains a new database connection to a slave server.
182
+ * Used for replication.
183
+ * If replication is not setup then returns master (default) connection's database connection.
184
+ */
185
+ obtainSlaveConnection(): Promise<any>;
186
+ /**
187
+ * Creates generated map of values generated or returned by database after INSERT query.
188
+ */
189
+ createGeneratedMap(metadata: EntityMetadata, insertResult: any, entityIndex?: number, entityNum?: number): ObjectLiteral | undefined;
190
+ /**
191
+ * Differentiate columns of this table and columns from the given column metadatas columns
192
+ * and returns only changed.
193
+ */
194
+ findChangedColumns(tableColumns: TableColumn[], columnMetadatas: ColumnMetadata[]): ColumnMetadata[];
195
+ /**
196
+ * Returns true if driver supports RETURNING / OUTPUT statement.
197
+ */
198
+ isReturningSqlSupported(returningType: ReturningType): boolean;
199
+ /**
200
+ * Returns true if driver supports uuid values generation on its own.
201
+ */
202
+ isUUIDGenerationSupported(): boolean;
203
+ /**
204
+ * Returns true if driver supports fulltext indices.
205
+ */
206
+ isFullTextColumnTypeSupported(): boolean;
207
+ /**
208
+ * Creates an escaped parameter.
209
+ */
210
+ createParameter(parameterName: string, index: number): string;
211
+ }
@@ -0,0 +1,35 @@
1
+ import { AuroraMysqlConnectionCredentialsOptions } from "./AuroraMysqlConnectionCredentialsOptions";
2
+ import { BaseDataSourceOptions } from "../../data-source/BaseDataSourceOptions";
3
+ /**
4
+ * MySQL specific connection options.
5
+ *
6
+ * @see https://github.com/mysqljs/mysql#connection-options
7
+ */
8
+ export interface AuroraMysqlConnectionOptions extends BaseDataSourceOptions, AuroraMysqlConnectionCredentialsOptions {
9
+ /**
10
+ * Database type.
11
+ */
12
+ readonly type: "aurora-mysql";
13
+ readonly region: string;
14
+ readonly secretArn: string;
15
+ readonly resourceArn: string;
16
+ readonly database: string;
17
+ /**
18
+ * The driver object
19
+ * This defaults to require("typeorm-aurora-data-api-driver")
20
+ */
21
+ readonly driver?: any;
22
+ readonly serviceConfigOptions?: {
23
+ [key: string]: any;
24
+ };
25
+ readonly formatOptions?: {
26
+ [key: string]: any;
27
+ castParameters: boolean;
28
+ };
29
+ /**
30
+ * Use spatial functions like GeomFromText and AsText which are removed in MySQL 8.
31
+ * (Default: true)
32
+ */
33
+ readonly legacySpatialSupport?: boolean;
34
+ readonly poolSize?: never;
35
+ }