velocious 1.0.428 → 1.0.430

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 (933) hide show
  1. package/README.md +2 -0
  2. package/build/src/application.d.ts +96 -9
  3. package/build/src/application.d.ts.map +1 -1
  4. package/build/src/application.js +127 -28
  5. package/build/src/authorization/ability.d.ts +72 -31
  6. package/build/src/authorization/ability.d.ts.map +1 -1
  7. package/build/src/authorization/ability.js +59 -22
  8. package/build/src/authorization/base-resource.d.ts +47 -20
  9. package/build/src/authorization/base-resource.d.ts.map +1 -1
  10. package/build/src/authorization/base-resource.js +43 -14
  11. package/build/src/background-jobs/client.d.ts +4 -2
  12. package/build/src/background-jobs/client.d.ts.map +1 -1
  13. package/build/src/background-jobs/client.js +4 -2
  14. package/build/src/background-jobs/cron-expression.d.ts +9 -5
  15. package/build/src/background-jobs/cron-expression.d.ts.map +1 -1
  16. package/build/src/background-jobs/cron-expression.js +16 -6
  17. package/build/src/background-jobs/forked-runner-child.js +12 -5
  18. package/build/src/background-jobs/job-registry.d.ts +7 -1
  19. package/build/src/background-jobs/job-registry.d.ts.map +1 -1
  20. package/build/src/background-jobs/job-registry.js +8 -2
  21. package/build/src/background-jobs/job-runner.d.ts +1 -0
  22. package/build/src/background-jobs/job-runner.d.ts.map +1 -1
  23. package/build/src/background-jobs/job-runner.js +8 -3
  24. package/build/src/background-jobs/job.d.ts +12 -8
  25. package/build/src/background-jobs/job.d.ts.map +1 -1
  26. package/build/src/background-jobs/job.js +12 -6
  27. package/build/src/background-jobs/json-socket.d.ts +17 -5
  28. package/build/src/background-jobs/json-socket.d.ts.map +1 -1
  29. package/build/src/background-jobs/json-socket.js +18 -6
  30. package/build/src/background-jobs/main.d.ts +118 -32
  31. package/build/src/background-jobs/main.d.ts.map +1 -1
  32. package/build/src/background-jobs/main.js +123 -35
  33. package/build/src/background-jobs/normalize-error.d.ts +2 -1
  34. package/build/src/background-jobs/normalize-error.d.ts.map +1 -1
  35. package/build/src/background-jobs/normalize-error.js +5 -3
  36. package/build/src/background-jobs/scheduler.d.ts +31 -10
  37. package/build/src/background-jobs/scheduler.d.ts.map +1 -1
  38. package/build/src/background-jobs/scheduler.js +33 -11
  39. package/build/src/background-jobs/socket-request.d.ts +2 -0
  40. package/build/src/background-jobs/socket-request.d.ts.map +1 -1
  41. package/build/src/background-jobs/socket-request.js +11 -3
  42. package/build/src/background-jobs/status-reporter.d.ts +5 -2
  43. package/build/src/background-jobs/status-reporter.d.ts.map +1 -1
  44. package/build/src/background-jobs/status-reporter.js +6 -3
  45. package/build/src/background-jobs/store.d.ts +57 -19
  46. package/build/src/background-jobs/store.d.ts.map +1 -1
  47. package/build/src/background-jobs/store.js +70 -20
  48. package/build/src/background-jobs/types.d.ts +7 -7
  49. package/build/src/background-jobs/types.d.ts.map +1 -1
  50. package/build/src/background-jobs/types.js +6 -6
  51. package/build/src/background-jobs/web/authorization.d.ts.map +1 -1
  52. package/build/src/background-jobs/web/authorization.js +3 -1
  53. package/build/src/background-jobs/web/controller.d.ts +40 -14
  54. package/build/src/background-jobs/web/controller.d.ts.map +1 -1
  55. package/build/src/background-jobs/web/controller.js +46 -15
  56. package/build/src/background-jobs/web/registry.d.ts +5 -0
  57. package/build/src/background-jobs/web/registry.d.ts.map +1 -1
  58. package/build/src/background-jobs/web/registry.js +4 -1
  59. package/build/src/background-jobs/worker.d.ts +41 -8
  60. package/build/src/background-jobs/worker.d.ts.map +1 -1
  61. package/build/src/background-jobs/worker.js +64 -16
  62. package/build/src/beacon/client.d.ts +39 -12
  63. package/build/src/beacon/client.d.ts.map +1 -1
  64. package/build/src/beacon/client.js +45 -15
  65. package/build/src/beacon/in-process-broker.d.ts +4 -0
  66. package/build/src/beacon/in-process-broker.d.ts.map +1 -1
  67. package/build/src/beacon/in-process-broker.js +8 -3
  68. package/build/src/beacon/in-process-client.d.ts +28 -9
  69. package/build/src/beacon/in-process-client.d.ts.map +1 -1
  70. package/build/src/beacon/in-process-client.js +27 -9
  71. package/build/src/beacon/server.d.ts +13 -2
  72. package/build/src/beacon/server.d.ts.map +1 -1
  73. package/build/src/beacon/server.js +21 -5
  74. package/build/src/beacon/types.d.ts +3 -3
  75. package/build/src/beacon/types.d.ts.map +1 -1
  76. package/build/src/beacon/types.js +2 -2
  77. package/build/src/cli/base-command.d.ts +18 -4
  78. package/build/src/cli/base-command.d.ts.map +1 -1
  79. package/build/src/cli/base-command.js +15 -4
  80. package/build/src/cli/browser-cli.d.ts +3 -0
  81. package/build/src/cli/browser-cli.d.ts.map +1 -1
  82. package/build/src/cli/browser-cli.js +7 -2
  83. package/build/src/cli/commands/background-jobs-main.d.ts +0 -1
  84. package/build/src/cli/commands/background-jobs-main.d.ts.map +1 -1
  85. package/build/src/cli/commands/background-jobs-runner.d.ts +0 -1
  86. package/build/src/cli/commands/background-jobs-runner.d.ts.map +1 -1
  87. package/build/src/cli/commands/background-jobs-worker.d.ts +0 -1
  88. package/build/src/cli/commands/background-jobs-worker.d.ts.map +1 -1
  89. package/build/src/cli/commands/beacon.d.ts +0 -1
  90. package/build/src/cli/commands/beacon.d.ts.map +1 -1
  91. package/build/src/cli/commands/console.d.ts +0 -2
  92. package/build/src/cli/commands/console.d.ts.map +1 -1
  93. package/build/src/cli/commands/console.js +5 -2
  94. package/build/src/cli/commands/db/base-command.d.ts +11 -2
  95. package/build/src/cli/commands/db/base-command.d.ts.map +1 -1
  96. package/build/src/cli/commands/db/base-command.js +12 -3
  97. package/build/src/cli/commands/db/create.d.ts +3 -0
  98. package/build/src/cli/commands/db/create.d.ts.map +1 -1
  99. package/build/src/cli/commands/db/create.js +4 -1
  100. package/build/src/cli/commands/db/drop.d.ts +3 -0
  101. package/build/src/cli/commands/db/drop.d.ts.map +1 -1
  102. package/build/src/cli/commands/db/drop.js +4 -1
  103. package/build/src/cli/commands/db/schema/dump.d.ts +0 -2
  104. package/build/src/cli/commands/db/schema/dump.d.ts.map +1 -1
  105. package/build/src/cli/commands/db/schema/dump.js +5 -2
  106. package/build/src/cli/commands/db/schema/load.d.ts +0 -2
  107. package/build/src/cli/commands/db/schema/load.d.ts.map +1 -1
  108. package/build/src/cli/commands/db/schema/load.js +5 -2
  109. package/build/src/cli/commands/db/seed.d.ts +0 -2
  110. package/build/src/cli/commands/db/seed.d.ts.map +1 -1
  111. package/build/src/cli/commands/db/seed.js +5 -2
  112. package/build/src/cli/commands/db/tenants/check.d.ts +4 -1
  113. package/build/src/cli/commands/db/tenants/check.d.ts.map +1 -1
  114. package/build/src/cli/commands/db/tenants/check.js +5 -2
  115. package/build/src/cli/commands/db/tenants/create.d.ts +4 -1
  116. package/build/src/cli/commands/db/tenants/create.d.ts.map +1 -1
  117. package/build/src/cli/commands/db/tenants/create.js +5 -2
  118. package/build/src/cli/commands/db/tenants/migrate.d.ts +4 -1
  119. package/build/src/cli/commands/db/tenants/migrate.d.ts.map +1 -1
  120. package/build/src/cli/commands/db/tenants/migrate.js +5 -2
  121. package/build/src/cli/commands/destroy/migration.d.ts +0 -1
  122. package/build/src/cli/commands/destroy/migration.d.ts.map +1 -1
  123. package/build/src/cli/commands/generate/base-models.d.ts +0 -1
  124. package/build/src/cli/commands/generate/base-models.d.ts.map +1 -1
  125. package/build/src/cli/commands/generate/frontend-models.d.ts +0 -2
  126. package/build/src/cli/commands/generate/frontend-models.d.ts.map +1 -1
  127. package/build/src/cli/commands/generate/frontend-models.js +5 -2
  128. package/build/src/cli/commands/generate/migration.d.ts +0 -1
  129. package/build/src/cli/commands/generate/migration.d.ts.map +1 -1
  130. package/build/src/cli/commands/generate/model.d.ts +0 -1
  131. package/build/src/cli/commands/generate/model.d.ts.map +1 -1
  132. package/build/src/cli/commands/init.d.ts +0 -1
  133. package/build/src/cli/commands/init.d.ts.map +1 -1
  134. package/build/src/cli/commands/routes.d.ts +0 -1
  135. package/build/src/cli/commands/routes.d.ts.map +1 -1
  136. package/build/src/cli/commands/run-script.d.ts +0 -2
  137. package/build/src/cli/commands/run-script.d.ts.map +1 -1
  138. package/build/src/cli/commands/run-script.js +5 -2
  139. package/build/src/cli/commands/runner.d.ts +0 -2
  140. package/build/src/cli/commands/runner.d.ts.map +1 -1
  141. package/build/src/cli/commands/runner.js +5 -2
  142. package/build/src/cli/commands/server.d.ts +0 -1
  143. package/build/src/cli/commands/server.d.ts.map +1 -1
  144. package/build/src/cli/commands/test.d.ts +0 -1
  145. package/build/src/cli/commands/test.d.ts.map +1 -1
  146. package/build/src/cli/index.d.ts +18 -5
  147. package/build/src/cli/index.d.ts.map +1 -1
  148. package/build/src/cli/index.js +25 -8
  149. package/build/src/cli/tenant-database-command-helper.d.ts +24 -9
  150. package/build/src/cli/tenant-database-command-helper.d.ts.map +1 -1
  151. package/build/src/cli/tenant-database-command-helper.js +30 -11
  152. package/build/src/cli/use-browser-cli.d.ts +1 -0
  153. package/build/src/cli/use-browser-cli.d.ts.map +1 -1
  154. package/build/src/cli/use-browser-cli.js +5 -2
  155. package/build/src/configuration-resolver.d.ts +1 -0
  156. package/build/src/configuration-resolver.d.ts.map +1 -1
  157. package/build/src/configuration-resolver.js +2 -1
  158. package/build/src/configuration-types.d.ts +44 -44
  159. package/build/src/configuration-types.d.ts.map +1 -1
  160. package/build/src/configuration-types.js +27 -27
  161. package/build/src/configuration.d.ts +350 -114
  162. package/build/src/configuration.d.ts.map +1 -1
  163. package/build/src/configuration.js +416 -128
  164. package/build/src/controller.d.ts +67 -18
  165. package/build/src/controller.d.ts.map +1 -1
  166. package/build/src/controller.js +88 -23
  167. package/build/src/current-configuration.d.ts +2 -0
  168. package/build/src/current-configuration.d.ts.map +1 -1
  169. package/build/src/current-configuration.js +6 -2
  170. package/build/src/current.d.ts +16 -9
  171. package/build/src/current.d.ts.map +1 -1
  172. package/build/src/current.js +15 -8
  173. package/build/src/database/annotations-async-hooks.js +13 -6
  174. package/build/src/database/annotations.d.ts +7 -1
  175. package/build/src/database/annotations.d.ts.map +1 -1
  176. package/build/src/database/annotations.js +12 -5
  177. package/build/src/database/drivers/base-column.d.ts +21 -3
  178. package/build/src/database/drivers/base-column.d.ts.map +1 -1
  179. package/build/src/database/drivers/base-column.js +21 -3
  180. package/build/src/database/drivers/base-columns-index.d.ts +9 -0
  181. package/build/src/database/drivers/base-columns-index.d.ts.map +1 -1
  182. package/build/src/database/drivers/base-columns-index.js +10 -1
  183. package/build/src/database/drivers/base-foreign-key.d.ts +15 -3
  184. package/build/src/database/drivers/base-foreign-key.d.ts.map +1 -1
  185. package/build/src/database/drivers/base-foreign-key.js +15 -3
  186. package/build/src/database/drivers/base-table.d.ts +16 -3
  187. package/build/src/database/drivers/base-table.d.ts.map +1 -1
  188. package/build/src/database/drivers/base-table.js +16 -3
  189. package/build/src/database/drivers/base.d.ts +174 -37
  190. package/build/src/database/drivers/base.d.ts.map +1 -1
  191. package/build/src/database/drivers/base.js +156 -40
  192. package/build/src/database/drivers/mssql/column.d.ts +3 -2
  193. package/build/src/database/drivers/mssql/column.d.ts.map +1 -1
  194. package/build/src/database/drivers/mssql/column.js +3 -2
  195. package/build/src/database/drivers/mssql/index.d.ts +5 -6
  196. package/build/src/database/drivers/mssql/index.d.ts.map +1 -1
  197. package/build/src/database/drivers/mssql/index.js +38 -7
  198. package/build/src/database/drivers/mssql/options.d.ts +1 -0
  199. package/build/src/database/drivers/mssql/options.d.ts.map +1 -1
  200. package/build/src/database/drivers/mssql/options.js +8 -2
  201. package/build/src/database/drivers/mssql/sql/create-database.d.ts +1 -0
  202. package/build/src/database/drivers/mssql/sql/create-database.d.ts.map +1 -1
  203. package/build/src/database/drivers/mssql/sql/create-database.js +2 -1
  204. package/build/src/database/drivers/mssql/sql/drop-database.d.ts.map +1 -1
  205. package/build/src/database/drivers/mssql/sql/drop-database.js +2 -1
  206. package/build/src/database/drivers/mssql/structure-sql.d.ts +5 -2
  207. package/build/src/database/drivers/mssql/structure-sql.d.ts.map +1 -1
  208. package/build/src/database/drivers/mssql/structure-sql.js +5 -2
  209. package/build/src/database/drivers/mssql/table.d.ts +1 -0
  210. package/build/src/database/drivers/mssql/table.d.ts.map +1 -1
  211. package/build/src/database/drivers/mssql/table.js +9 -4
  212. package/build/src/database/drivers/mysql/column.d.ts +3 -2
  213. package/build/src/database/drivers/mysql/column.d.ts.map +1 -1
  214. package/build/src/database/drivers/mysql/column.js +4 -3
  215. package/build/src/database/drivers/mysql/index.d.ts +11 -3
  216. package/build/src/database/drivers/mysql/index.d.ts.map +1 -1
  217. package/build/src/database/drivers/mysql/index.js +54 -10
  218. package/build/src/database/drivers/mysql/options.d.ts +1 -0
  219. package/build/src/database/drivers/mysql/options.d.ts.map +1 -1
  220. package/build/src/database/drivers/mysql/options.js +4 -2
  221. package/build/src/database/drivers/mysql/query.d.ts +3 -2
  222. package/build/src/database/drivers/mysql/query.d.ts.map +1 -1
  223. package/build/src/database/drivers/mysql/query.js +6 -3
  224. package/build/src/database/drivers/mysql/sql/create-database.d.ts.map +1 -1
  225. package/build/src/database/drivers/mysql/sql/create-database.js +3 -1
  226. package/build/src/database/drivers/mysql/structure-sql.d.ts +7 -2
  227. package/build/src/database/drivers/mysql/structure-sql.d.ts.map +1 -1
  228. package/build/src/database/drivers/mysql/structure-sql.js +7 -2
  229. package/build/src/database/drivers/mysql/table.d.ts +1 -0
  230. package/build/src/database/drivers/mysql/table.d.ts.map +1 -1
  231. package/build/src/database/drivers/mysql/table.js +7 -3
  232. package/build/src/database/drivers/pgsql/column.d.ts +3 -2
  233. package/build/src/database/drivers/pgsql/column.d.ts.map +1 -1
  234. package/build/src/database/drivers/pgsql/column.js +3 -2
  235. package/build/src/database/drivers/pgsql/index.d.ts +1 -1
  236. package/build/src/database/drivers/pgsql/index.d.ts.map +1 -1
  237. package/build/src/database/drivers/pgsql/index.js +36 -11
  238. package/build/src/database/drivers/pgsql/options.d.ts +2 -0
  239. package/build/src/database/drivers/pgsql/options.d.ts.map +1 -1
  240. package/build/src/database/drivers/pgsql/options.js +3 -1
  241. package/build/src/database/drivers/pgsql/structure-sql.d.ts +5 -2
  242. package/build/src/database/drivers/pgsql/structure-sql.d.ts.map +1 -1
  243. package/build/src/database/drivers/pgsql/structure-sql.js +5 -2
  244. package/build/src/database/drivers/pgsql/table.d.ts +1 -0
  245. package/build/src/database/drivers/pgsql/table.d.ts.map +1 -1
  246. package/build/src/database/drivers/pgsql/table.js +6 -2
  247. package/build/src/database/drivers/sqlite/base.d.ts +15 -5
  248. package/build/src/database/drivers/sqlite/base.d.ts.map +1 -1
  249. package/build/src/database/drivers/sqlite/base.js +79 -27
  250. package/build/src/database/drivers/sqlite/column.d.ts +3 -2
  251. package/build/src/database/drivers/sqlite/column.d.ts.map +1 -1
  252. package/build/src/database/drivers/sqlite/column.js +3 -2
  253. package/build/src/database/drivers/sqlite/connection-sql-js.d.ts +4 -2
  254. package/build/src/database/drivers/sqlite/connection-sql-js.d.ts.map +1 -1
  255. package/build/src/database/drivers/sqlite/connection-sql-js.js +4 -2
  256. package/build/src/database/drivers/sqlite/foreign-key.d.ts +3 -2
  257. package/build/src/database/drivers/sqlite/foreign-key.d.ts.map +1 -1
  258. package/build/src/database/drivers/sqlite/foreign-key.js +3 -2
  259. package/build/src/database/drivers/sqlite/index.d.ts +18 -5
  260. package/build/src/database/drivers/sqlite/index.d.ts.map +1 -1
  261. package/build/src/database/drivers/sqlite/index.js +40 -16
  262. package/build/src/database/drivers/sqlite/index.native.d.ts +1 -1
  263. package/build/src/database/drivers/sqlite/index.native.d.ts.map +1 -1
  264. package/build/src/database/drivers/sqlite/index.native.js +6 -3
  265. package/build/src/database/drivers/sqlite/index.web.d.ts +16 -4
  266. package/build/src/database/drivers/sqlite/index.web.d.ts.map +1 -1
  267. package/build/src/database/drivers/sqlite/index.web.js +17 -7
  268. package/build/src/database/drivers/sqlite/options.d.ts +2 -0
  269. package/build/src/database/drivers/sqlite/options.d.ts.map +1 -1
  270. package/build/src/database/drivers/sqlite/options.js +3 -1
  271. package/build/src/database/drivers/sqlite/query.d.ts +3 -2
  272. package/build/src/database/drivers/sqlite/query.d.ts.map +1 -1
  273. package/build/src/database/drivers/sqlite/query.js +6 -3
  274. package/build/src/database/drivers/sqlite/query.native.d.ts +2 -2
  275. package/build/src/database/drivers/sqlite/query.native.d.ts.map +1 -1
  276. package/build/src/database/drivers/sqlite/query.native.js +3 -3
  277. package/build/src/database/drivers/sqlite/query.web.d.ts +3 -2
  278. package/build/src/database/drivers/sqlite/query.web.d.ts.map +1 -1
  279. package/build/src/database/drivers/sqlite/query.web.js +6 -3
  280. package/build/src/database/drivers/sqlite/sql/alter-table.d.ts.map +1 -1
  281. package/build/src/database/drivers/sqlite/sql/alter-table.js +9 -3
  282. package/build/src/database/drivers/sqlite/structure-sql.d.ts +2 -0
  283. package/build/src/database/drivers/sqlite/structure-sql.d.ts.map +1 -1
  284. package/build/src/database/drivers/sqlite/structure-sql.js +3 -1
  285. package/build/src/database/drivers/sqlite/table-rebuilder.d.ts +2 -0
  286. package/build/src/database/drivers/sqlite/table-rebuilder.d.ts.map +1 -1
  287. package/build/src/database/drivers/sqlite/table-rebuilder.js +3 -1
  288. package/build/src/database/drivers/sqlite/table.d.ts +2 -0
  289. package/build/src/database/drivers/sqlite/table.d.ts.map +1 -1
  290. package/build/src/database/drivers/sqlite/table.js +14 -4
  291. package/build/src/database/drivers/structure-sql/utils.d.ts +2 -0
  292. package/build/src/database/drivers/structure-sql/utils.d.ts.map +1 -1
  293. package/build/src/database/drivers/structure-sql/utils.js +3 -1
  294. package/build/src/database/handler.d.ts +1 -0
  295. package/build/src/database/handler.d.ts.map +1 -1
  296. package/build/src/database/handler.js +2 -1
  297. package/build/src/database/initializer-from-require-context.d.ts +8 -0
  298. package/build/src/database/initializer-from-require-context.d.ts.map +1 -1
  299. package/build/src/database/initializer-from-require-context.js +4 -1
  300. package/build/src/database/migration/index.d.ts +40 -5
  301. package/build/src/database/migration/index.d.ts.map +1 -1
  302. package/build/src/database/migration/index.js +34 -6
  303. package/build/src/database/migrator/files-finder.d.ts +2 -0
  304. package/build/src/database/migrator/files-finder.d.ts.map +1 -1
  305. package/build/src/database/migrator/files-finder.js +6 -2
  306. package/build/src/database/migrator.d.ts +29 -4
  307. package/build/src/database/migrator.d.ts.map +1 -1
  308. package/build/src/database/migrator.js +45 -10
  309. package/build/src/database/pool/async-tracked-multi-connection.d.ts +125 -31
  310. package/build/src/database/pool/async-tracked-multi-connection.d.ts.map +1 -1
  311. package/build/src/database/pool/async-tracked-multi-connection.js +189 -52
  312. package/build/src/database/pool/base-methods-forward.d.ts +1 -0
  313. package/build/src/database/pool/base-methods-forward.d.ts.map +1 -1
  314. package/build/src/database/pool/base-methods-forward.js +12 -3
  315. package/build/src/database/pool/base.d.ts +39 -7
  316. package/build/src/database/pool/base.d.ts.map +1 -1
  317. package/build/src/database/pool/base.js +59 -18
  318. package/build/src/database/pool/single-multi-use.d.ts +1 -0
  319. package/build/src/database/pool/single-multi-use.d.ts.map +1 -1
  320. package/build/src/database/pool/single-multi-use.js +16 -4
  321. package/build/src/database/query/alter-table-base.d.ts +1 -0
  322. package/build/src/database/query/alter-table-base.d.ts.map +1 -1
  323. package/build/src/database/query/alter-table-base.js +3 -1
  324. package/build/src/database/query/base.d.ts +3 -0
  325. package/build/src/database/query/base.d.ts.map +1 -1
  326. package/build/src/database/query/base.js +4 -1
  327. package/build/src/database/query/create-database-base.d.ts +5 -0
  328. package/build/src/database/query/create-database-base.d.ts.map +1 -1
  329. package/build/src/database/query/create-database-base.js +4 -1
  330. package/build/src/database/query/create-index-base.d.ts +5 -0
  331. package/build/src/database/query/create-index-base.d.ts.map +1 -1
  332. package/build/src/database/query/create-index-base.js +4 -1
  333. package/build/src/database/query/create-table-base.d.ts +2 -0
  334. package/build/src/database/query/create-table-base.d.ts.map +1 -1
  335. package/build/src/database/query/create-table-base.js +3 -1
  336. package/build/src/database/query/delete-base.d.ts +3 -2
  337. package/build/src/database/query/delete-base.d.ts.map +1 -1
  338. package/build/src/database/query/delete-base.js +3 -2
  339. package/build/src/database/query/drop-database-base.d.ts +5 -0
  340. package/build/src/database/query/drop-database-base.d.ts.map +1 -1
  341. package/build/src/database/query/drop-database-base.js +4 -1
  342. package/build/src/database/query/drop-table-base.d.ts +1 -0
  343. package/build/src/database/query/drop-table-base.d.ts.map +1 -1
  344. package/build/src/database/query/drop-table-base.js +3 -1
  345. package/build/src/database/query/from-base.d.ts +6 -1
  346. package/build/src/database/query/from-base.d.ts.map +1 -1
  347. package/build/src/database/query/from-base.js +7 -2
  348. package/build/src/database/query/from-plain.d.ts +1 -0
  349. package/build/src/database/query/from-plain.d.ts.map +1 -1
  350. package/build/src/database/query/from-plain.js +2 -1
  351. package/build/src/database/query/from-table.d.ts +1 -0
  352. package/build/src/database/query/from-table.d.ts.map +1 -1
  353. package/build/src/database/query/from-table.js +2 -1
  354. package/build/src/database/query/index.d.ts +72 -12
  355. package/build/src/database/query/index.d.ts.map +1 -1
  356. package/build/src/database/query/index.js +79 -19
  357. package/build/src/database/query/insert-base.d.ts +13 -8
  358. package/build/src/database/query/insert-base.d.ts.map +1 -1
  359. package/build/src/database/query/insert-base.js +10 -5
  360. package/build/src/database/query/join-base.d.ts +4 -0
  361. package/build/src/database/query/join-base.d.ts.map +1 -1
  362. package/build/src/database/query/join-base.js +5 -1
  363. package/build/src/database/query/join-object.d.ts +11 -0
  364. package/build/src/database/query/join-object.d.ts.map +1 -1
  365. package/build/src/database/query/join-object.js +15 -4
  366. package/build/src/database/query/join-plain.d.ts +1 -0
  367. package/build/src/database/query/join-plain.d.ts.map +1 -1
  368. package/build/src/database/query/join-plain.js +2 -1
  369. package/build/src/database/query/join-tracker.d.ts +7 -0
  370. package/build/src/database/query/join-tracker.d.ts.map +1 -1
  371. package/build/src/database/query/join-tracker.js +8 -1
  372. package/build/src/database/query/model-class-query.d.ts +92 -26
  373. package/build/src/database/query/model-class-query.d.ts.map +1 -1
  374. package/build/src/database/query/model-class-query.js +230 -76
  375. package/build/src/database/query/order-base.d.ts +3 -0
  376. package/build/src/database/query/order-base.d.ts.map +1 -1
  377. package/build/src/database/query/order-base.js +4 -1
  378. package/build/src/database/query/order-column.d.ts +9 -1
  379. package/build/src/database/query/order-column.d.ts.map +1 -1
  380. package/build/src/database/query/order-column.js +10 -2
  381. package/build/src/database/query/order-plain.d.ts +1 -0
  382. package/build/src/database/query/order-plain.d.ts.map +1 -1
  383. package/build/src/database/query/order-plain.js +2 -1
  384. package/build/src/database/query/preloader/belongs-to.d.ts +1 -0
  385. package/build/src/database/query/preloader/belongs-to.d.ts.map +1 -1
  386. package/build/src/database/query/preloader/belongs-to.js +68 -23
  387. package/build/src/database/query/preloader/ensure-model-class-initialized.d.ts +1 -0
  388. package/build/src/database/query/preloader/ensure-model-class-initialized.d.ts.map +1 -1
  389. package/build/src/database/query/preloader/ensure-model-class-initialized.js +2 -1
  390. package/build/src/database/query/preloader/has-many.d.ts +5 -3
  391. package/build/src/database/query/preloader/has-many.d.ts.map +1 -1
  392. package/build/src/database/query/preloader/has-many.js +66 -24
  393. package/build/src/database/query/preloader/has-one.d.ts +1 -0
  394. package/build/src/database/query/preloader/has-one.d.ts.map +1 -1
  395. package/build/src/database/query/preloader/has-one.js +26 -9
  396. package/build/src/database/query/preloader/selection.d.ts +7 -1
  397. package/build/src/database/query/preloader/selection.d.ts.map +1 -1
  398. package/build/src/database/query/preloader/selection.js +13 -5
  399. package/build/src/database/query/preloader.d.ts +1 -0
  400. package/build/src/database/query/preloader.d.ts.map +1 -1
  401. package/build/src/database/query/preloader.js +28 -9
  402. package/build/src/database/query/query-data.d.ts +21 -7
  403. package/build/src/database/query/query-data.d.ts.map +1 -1
  404. package/build/src/database/query/query-data.js +37 -18
  405. package/build/src/database/query/select-base.d.ts +3 -0
  406. package/build/src/database/query/select-base.d.ts.map +1 -1
  407. package/build/src/database/query/select-base.js +4 -1
  408. package/build/src/database/query/select-plain.d.ts +1 -0
  409. package/build/src/database/query/select-plain.d.ts.map +1 -1
  410. package/build/src/database/query/select-plain.js +2 -1
  411. package/build/src/database/query/select-table-and-column.d.ts +1 -0
  412. package/build/src/database/query/select-table-and-column.d.ts.map +1 -1
  413. package/build/src/database/query/select-table-and-column.js +2 -1
  414. package/build/src/database/query/update-base.d.ts +9 -6
  415. package/build/src/database/query/update-base.d.ts.map +1 -1
  416. package/build/src/database/query/update-base.js +7 -4
  417. package/build/src/database/query/upsert-base.d.ts +13 -4
  418. package/build/src/database/query/upsert-base.d.ts.map +1 -1
  419. package/build/src/database/query/upsert-base.js +12 -3
  420. package/build/src/database/query/where-base.d.ts +4 -0
  421. package/build/src/database/query/where-base.d.ts.map +1 -1
  422. package/build/src/database/query/where-base.js +5 -1
  423. package/build/src/database/query/where-combinator.d.ts +1 -0
  424. package/build/src/database/query/where-combinator.d.ts.map +1 -1
  425. package/build/src/database/query/where-combinator.js +6 -2
  426. package/build/src/database/query/where-hash.d.ts +6 -0
  427. package/build/src/database/query/where-hash.d.ts.map +1 -1
  428. package/build/src/database/query/where-hash.js +5 -1
  429. package/build/src/database/query/where-model-class-hash.d.ts +30 -16
  430. package/build/src/database/query/where-model-class-hash.d.ts.map +1 -1
  431. package/build/src/database/query/where-model-class-hash.js +55 -20
  432. package/build/src/database/query/where-not.d.ts +1 -0
  433. package/build/src/database/query/where-not.d.ts.map +1 -1
  434. package/build/src/database/query/where-not.js +3 -1
  435. package/build/src/database/query/where-plain.d.ts +1 -0
  436. package/build/src/database/query/where-plain.d.ts.map +1 -1
  437. package/build/src/database/query/where-plain.js +2 -1
  438. package/build/src/database/query/with-count.d.ts +11 -5
  439. package/build/src/database/query/with-count.d.ts.map +1 -1
  440. package/build/src/database/query/with-count.js +36 -15
  441. package/build/src/database/query-parser/base-query-parser.d.ts +1 -0
  442. package/build/src/database/query-parser/base-query-parser.d.ts.map +1 -1
  443. package/build/src/database/query-parser/base-query-parser.js +2 -1
  444. package/build/src/database/query-parser/from-parser.d.ts +5 -1
  445. package/build/src/database/query-parser/from-parser.d.ts.map +1 -1
  446. package/build/src/database/query-parser/from-parser.js +6 -2
  447. package/build/src/database/query-parser/group-parser.d.ts +2 -0
  448. package/build/src/database/query-parser/group-parser.d.ts.map +1 -1
  449. package/build/src/database/query-parser/group-parser.js +3 -1
  450. package/build/src/database/query-parser/joins-parser.d.ts +1 -0
  451. package/build/src/database/query-parser/joins-parser.d.ts.map +1 -1
  452. package/build/src/database/query-parser/joins-parser.js +2 -1
  453. package/build/src/database/query-parser/limit-parser.d.ts +1 -0
  454. package/build/src/database/query-parser/limit-parser.d.ts.map +1 -1
  455. package/build/src/database/query-parser/limit-parser.js +2 -1
  456. package/build/src/database/query-parser/options.d.ts +15 -4
  457. package/build/src/database/query-parser/options.d.ts.map +1 -1
  458. package/build/src/database/query-parser/options.js +11 -3
  459. package/build/src/database/query-parser/order-parser.d.ts +1 -0
  460. package/build/src/database/query-parser/order-parser.d.ts.map +1 -1
  461. package/build/src/database/query-parser/order-parser.js +2 -1
  462. package/build/src/database/query-parser/select-parser.d.ts +1 -0
  463. package/build/src/database/query-parser/select-parser.d.ts.map +1 -1
  464. package/build/src/database/query-parser/select-parser.js +2 -1
  465. package/build/src/database/query-parser/where-parser.d.ts +1 -0
  466. package/build/src/database/query-parser/where-parser.d.ts.map +1 -1
  467. package/build/src/database/query-parser/where-parser.js +2 -1
  468. package/build/src/database/record/acts-as-list.d.ts +0 -1
  469. package/build/src/database/record/acts-as-list.d.ts.map +1 -1
  470. package/build/src/database/record/acts-as-list.js +89 -45
  471. package/build/src/database/record/attachments/download.d.ts +34 -15
  472. package/build/src/database/record/attachments/download.d.ts.map +1 -1
  473. package/build/src/database/record/attachments/download.js +34 -22
  474. package/build/src/database/record/attachments/handle.d.ts +17 -5
  475. package/build/src/database/record/attachments/handle.d.ts.map +1 -1
  476. package/build/src/database/record/attachments/handle.js +25 -9
  477. package/build/src/database/record/attachments/normalize-input.d.ts +6 -1
  478. package/build/src/database/record/attachments/normalize-input.d.ts.map +1 -1
  479. package/build/src/database/record/attachments/normalize-input.js +54 -17
  480. package/build/src/database/record/attachments/storage-drivers/filesystem.d.ts +7 -1
  481. package/build/src/database/record/attachments/storage-drivers/filesystem.d.ts.map +1 -1
  482. package/build/src/database/record/attachments/storage-drivers/filesystem.js +10 -2
  483. package/build/src/database/record/attachments/storage-drivers/native.d.ts +12 -7
  484. package/build/src/database/record/attachments/storage-drivers/native.d.ts.map +1 -1
  485. package/build/src/database/record/attachments/storage-drivers/native.js +13 -6
  486. package/build/src/database/record/attachments/storage-drivers/s3.d.ts +18 -9
  487. package/build/src/database/record/attachments/storage-drivers/s3.d.ts.map +1 -1
  488. package/build/src/database/record/attachments/storage-drivers/s3.js +38 -13
  489. package/build/src/database/record/attachments/store.d.ts +48 -25
  490. package/build/src/database/record/attachments/store.d.ts.map +1 -1
  491. package/build/src/database/record/attachments/store.js +63 -25
  492. package/build/src/database/record/index.d.ts +394 -146
  493. package/build/src/database/record/index.d.ts.map +1 -1
  494. package/build/src/database/record/index.js +697 -248
  495. package/build/src/database/record/instance-relationships/base.d.ts +78 -19
  496. package/build/src/database/record/instance-relationships/base.d.ts.map +1 -1
  497. package/build/src/database/record/instance-relationships/base.js +98 -26
  498. package/build/src/database/record/instance-relationships/belongs-to.d.ts +1 -0
  499. package/build/src/database/record/instance-relationships/belongs-to.d.ts.map +1 -1
  500. package/build/src/database/record/instance-relationships/belongs-to.js +13 -5
  501. package/build/src/database/record/instance-relationships/has-many.d.ts +27 -7
  502. package/build/src/database/record/instance-relationships/has-many.d.ts.map +1 -1
  503. package/build/src/database/record/instance-relationships/has-many.js +50 -16
  504. package/build/src/database/record/instance-relationships/has-one.d.ts +4 -1
  505. package/build/src/database/record/instance-relationships/has-one.d.ts.map +1 -1
  506. package/build/src/database/record/instance-relationships/has-one.js +28 -10
  507. package/build/src/database/record/relationships/base.d.ts +61 -14
  508. package/build/src/database/record/relationships/base.d.ts.map +1 -1
  509. package/build/src/database/record/relationships/base.js +60 -15
  510. package/build/src/database/record/relationships/belongs-to.d.ts.map +1 -1
  511. package/build/src/database/record/relationships/belongs-to.js +9 -3
  512. package/build/src/database/record/relationships/has-many.d.ts.map +1 -1
  513. package/build/src/database/record/relationships/has-many.js +9 -3
  514. package/build/src/database/record/relationships/has-one.d.ts.map +1 -1
  515. package/build/src/database/record/relationships/has-one.js +9 -3
  516. package/build/src/database/record/state-machine.d.ts +9 -1
  517. package/build/src/database/record/state-machine.d.ts.map +1 -1
  518. package/build/src/database/record/state-machine.js +35 -14
  519. package/build/src/database/record/user-module.d.ts +2 -0
  520. package/build/src/database/record/user-module.d.ts.map +1 -1
  521. package/build/src/database/record/user-module.js +3 -1
  522. package/build/src/database/record/validators/base.d.ts +4 -2
  523. package/build/src/database/record/validators/base.d.ts.map +1 -1
  524. package/build/src/database/record/validators/base.js +4 -2
  525. package/build/src/database/record/validators/format.d.ts.map +1 -1
  526. package/build/src/database/record/validators/format.js +2 -1
  527. package/build/src/database/record/validators/presence.d.ts.map +1 -1
  528. package/build/src/database/record/validators/presence.js +5 -2
  529. package/build/src/database/record/validators/uniqueness.d.ts +0 -2
  530. package/build/src/database/record/validators/uniqueness.d.ts.map +1 -1
  531. package/build/src/database/record/validators/uniqueness.js +18 -8
  532. package/build/src/database/table-data/index.d.ts +40 -4
  533. package/build/src/database/table-data/index.d.ts.map +1 -1
  534. package/build/src/database/table-data/index.js +38 -5
  535. package/build/src/database/table-data/table-column.d.ts +43 -5
  536. package/build/src/database/table-data/table-column.d.ts.map +1 -1
  537. package/build/src/database/table-data/table-column.js +37 -4
  538. package/build/src/database/table-data/table-foreign-key.d.ts +8 -0
  539. package/build/src/database/table-data/table-foreign-key.d.ts.map +1 -1
  540. package/build/src/database/table-data/table-foreign-key.js +9 -1
  541. package/build/src/database/table-data/table-index.d.ts +8 -0
  542. package/build/src/database/table-data/table-index.d.ts.map +1 -1
  543. package/build/src/database/table-data/table-index.js +6 -1
  544. package/build/src/database/table-data/table-reference.d.ts +1 -0
  545. package/build/src/database/table-data/table-reference.d.ts.map +1 -1
  546. package/build/src/database/table-data/table-reference.js +2 -1
  547. package/build/src/database/use-database.d.ts +1 -0
  548. package/build/src/database/use-database.d.ts.map +1 -1
  549. package/build/src/database/use-database.js +2 -1
  550. package/build/src/environment-handlers/base.d.ts +94 -36
  551. package/build/src/environment-handlers/base.d.ts.map +1 -1
  552. package/build/src/environment-handlers/base.js +90 -36
  553. package/build/src/environment-handlers/browser.d.ts +33 -3
  554. package/build/src/environment-handlers/browser.d.ts.map +1 -1
  555. package/build/src/environment-handlers/browser.js +36 -9
  556. package/build/src/environment-handlers/node/cli/commands/cli-command-context.d.ts +5 -0
  557. package/build/src/environment-handlers/node/cli/commands/cli-command-context.d.ts.map +1 -1
  558. package/build/src/environment-handlers/node/cli/commands/cli-command-context.js +6 -2
  559. package/build/src/environment-handlers/node/cli/commands/console.d.ts +3 -2
  560. package/build/src/environment-handlers/node/cli/commands/console.d.ts.map +1 -1
  561. package/build/src/environment-handlers/node/cli/commands/console.js +23 -9
  562. package/build/src/environment-handlers/node/cli/commands/db/schema/dump.d.ts +4 -1
  563. package/build/src/environment-handlers/node/cli/commands/db/schema/dump.d.ts.map +1 -1
  564. package/build/src/environment-handlers/node/cli/commands/db/schema/dump.js +5 -2
  565. package/build/src/environment-handlers/node/cli/commands/db/schema/load.d.ts +6 -2
  566. package/build/src/environment-handlers/node/cli/commands/db/schema/load.d.ts.map +1 -1
  567. package/build/src/environment-handlers/node/cli/commands/db/schema/load.js +11 -5
  568. package/build/src/environment-handlers/node/cli/commands/db/seed.d.ts +15 -5
  569. package/build/src/environment-handlers/node/cli/commands/db/seed.d.ts.map +1 -1
  570. package/build/src/environment-handlers/node/cli/commands/db/seed.js +20 -6
  571. package/build/src/environment-handlers/node/cli/commands/destroy/migration.d.ts +5 -0
  572. package/build/src/environment-handlers/node/cli/commands/destroy/migration.d.ts.map +1 -1
  573. package/build/src/environment-handlers/node/cli/commands/destroy/migration.js +3 -1
  574. package/build/src/environment-handlers/node/cli/commands/generate/base-models.d.ts +2 -0
  575. package/build/src/environment-handlers/node/cli/commands/generate/base-models.d.ts.map +1 -1
  576. package/build/src/environment-handlers/node/cli/commands/generate/base-models.js +6 -4
  577. package/build/src/environment-handlers/node/cli/commands/generate/frontend-models.d.ts +43 -29
  578. package/build/src/environment-handlers/node/cli/commands/generate/frontend-models.d.ts.map +1 -1
  579. package/build/src/environment-handlers/node/cli/commands/generate/frontend-models.js +99 -40
  580. package/build/src/environment-handlers/node/cli/commands/generate/migration.d.ts +5 -0
  581. package/build/src/environment-handlers/node/cli/commands/generate/migration.d.ts.map +1 -1
  582. package/build/src/environment-handlers/node/cli/commands/generate/migration.js +3 -1
  583. package/build/src/environment-handlers/node/cli/commands/generate/model.d.ts +5 -0
  584. package/build/src/environment-handlers/node/cli/commands/generate/model.d.ts.map +1 -1
  585. package/build/src/environment-handlers/node/cli/commands/generate/model.js +3 -1
  586. package/build/src/environment-handlers/node/cli/commands/init.d.ts +5 -0
  587. package/build/src/environment-handlers/node/cli/commands/init.d.ts.map +1 -1
  588. package/build/src/environment-handlers/node/cli/commands/init.js +3 -1
  589. package/build/src/environment-handlers/node/cli/commands/routes.d.ts +3 -0
  590. package/build/src/environment-handlers/node/cli/commands/routes.d.ts.map +1 -1
  591. package/build/src/environment-handlers/node/cli/commands/routes.js +4 -1
  592. package/build/src/environment-handlers/node/cli/commands/run-script.d.ts +15 -5
  593. package/build/src/environment-handlers/node/cli/commands/run-script.d.ts.map +1 -1
  594. package/build/src/environment-handlers/node/cli/commands/run-script.js +20 -6
  595. package/build/src/environment-handlers/node/cli/commands/runner.d.ts +18 -6
  596. package/build/src/environment-handlers/node/cli/commands/runner.d.ts.map +1 -1
  597. package/build/src/environment-handlers/node/cli/commands/runner.js +20 -6
  598. package/build/src/environment-handlers/node/cli/commands/server.d.ts +13 -1
  599. package/build/src/environment-handlers/node/cli/commands/server.d.ts.map +1 -1
  600. package/build/src/environment-handlers/node/cli/commands/server.js +23 -6
  601. package/build/src/environment-handlers/node.d.ts +14 -2
  602. package/build/src/environment-handlers/node.d.ts.map +1 -1
  603. package/build/src/environment-handlers/node.js +107 -39
  604. package/build/src/error-logger.d.ts +4 -3
  605. package/build/src/error-logger.d.ts.map +1 -1
  606. package/build/src/error-logger.js +4 -3
  607. package/build/src/frontend-model-controller.d.ts +239 -90
  608. package/build/src/frontend-model-controller.d.ts.map +1 -1
  609. package/build/src/frontend-model-controller.js +577 -787
  610. package/build/src/frontend-model-resource/base-resource.d.ts +118 -66
  611. package/build/src/frontend-model-resource/base-resource.d.ts.map +1 -1
  612. package/build/src/frontend-model-resource/base-resource.js +205 -82
  613. package/build/src/frontend-models/base.d.ts +319 -163
  614. package/build/src/frontend-models/base.d.ts.map +1 -1
  615. package/build/src/frontend-models/base.js +717 -366
  616. package/build/src/frontend-models/clear-pending-debounced-callback.d.ts +2 -1
  617. package/build/src/frontend-models/clear-pending-debounced-callback.d.ts.map +1 -1
  618. package/build/src/frontend-models/clear-pending-debounced-callback.js +6 -3
  619. package/build/src/frontend-models/event-hook-models.d.ts +5 -0
  620. package/build/src/frontend-models/event-hook-models.d.ts.map +1 -1
  621. package/build/src/frontend-models/event-hook-models.js +10 -3
  622. package/build/src/frontend-models/model-registry.d.ts +5 -5
  623. package/build/src/frontend-models/model-registry.d.ts.map +1 -1
  624. package/build/src/frontend-models/model-registry.js +5 -5
  625. package/build/src/frontend-models/outgoing-event-buffer.d.ts +11 -3
  626. package/build/src/frontend-models/outgoing-event-buffer.d.ts.map +1 -1
  627. package/build/src/frontend-models/outgoing-event-buffer.js +13 -5
  628. package/build/src/frontend-models/preloader.d.ts +9 -6
  629. package/build/src/frontend-models/preloader.d.ts.map +1 -1
  630. package/build/src/frontend-models/preloader.js +21 -9
  631. package/build/src/frontend-models/query.d.ts +283 -73
  632. package/build/src/frontend-models/query.d.ts.map +1 -1
  633. package/build/src/frontend-models/query.js +331 -203
  634. package/build/src/frontend-models/resource-config-validation.d.ts +2 -0
  635. package/build/src/frontend-models/resource-config-validation.d.ts.map +1 -1
  636. package/build/src/frontend-models/resource-config-validation.js +3 -1
  637. package/build/src/frontend-models/resource-definition.d.ts +12 -5
  638. package/build/src/frontend-models/resource-definition.d.ts.map +1 -1
  639. package/build/src/frontend-models/resource-definition.js +39 -13
  640. package/build/src/frontend-models/transport-serialization.d.ts +14 -11
  641. package/build/src/frontend-models/transport-serialization.d.ts.map +1 -1
  642. package/build/src/frontend-models/transport-serialization.js +80 -53
  643. package/build/src/frontend-models/use-destroyed-event.d.ts +21 -0
  644. package/build/src/frontend-models/use-destroyed-event.d.ts.map +1 -1
  645. package/build/src/frontend-models/use-destroyed-event.js +34 -11
  646. package/build/src/frontend-models/use-model-class-event.d.ts +24 -0
  647. package/build/src/frontend-models/use-model-class-event.d.ts.map +1 -1
  648. package/build/src/frontend-models/use-model-class-event.js +39 -12
  649. package/build/src/frontend-models/use-updated-event.d.ts +21 -0
  650. package/build/src/frontend-models/use-updated-event.d.ts.map +1 -1
  651. package/build/src/frontend-models/use-updated-event.js +37 -12
  652. package/build/src/frontend-models/websocket-channel.d.ts +51 -9
  653. package/build/src/frontend-models/websocket-channel.d.ts.map +1 -1
  654. package/build/src/frontend-models/websocket-channel.js +96 -26
  655. package/build/src/frontend-models/websocket-publishers.d.ts +2 -0
  656. package/build/src/frontend-models/websocket-publishers.d.ts.map +1 -1
  657. package/build/src/frontend-models/websocket-publishers.js +33 -11
  658. package/build/src/http-client/header.d.ts +1 -0
  659. package/build/src/http-client/header.d.ts.map +1 -1
  660. package/build/src/http-client/header.js +2 -1
  661. package/build/src/http-client/index.d.ts +4 -0
  662. package/build/src/http-client/index.d.ts.map +1 -1
  663. package/build/src/http-client/index.js +5 -1
  664. package/build/src/http-client/request.d.ts +5 -0
  665. package/build/src/http-client/request.d.ts.map +1 -1
  666. package/build/src/http-client/request.js +6 -1
  667. package/build/src/http-client/response.d.ts +14 -4
  668. package/build/src/http-client/response.d.ts.map +1 -1
  669. package/build/src/http-client/response.js +14 -4
  670. package/build/src/http-client/websocket-client.d.ts +1 -0
  671. package/build/src/http-client/websocket-client.d.ts.map +1 -1
  672. package/build/src/http-client/websocket-client.js +2 -1
  673. package/build/src/http-server/client/index.d.ts +16 -2
  674. package/build/src/http-server/client/index.d.ts.map +1 -1
  675. package/build/src/http-server/client/index.js +44 -13
  676. package/build/src/http-server/client/params-to-object.d.ts +16 -10
  677. package/build/src/http-server/client/params-to-object.d.ts.map +1 -1
  678. package/build/src/http-server/client/params-to-object.js +46 -17
  679. package/build/src/http-server/client/request-buffer/form-data-part.d.ts +10 -6
  680. package/build/src/http-server/client/request-buffer/form-data-part.d.ts.map +1 -1
  681. package/build/src/http-server/client/request-buffer/form-data-part.js +11 -7
  682. package/build/src/http-server/client/request-buffer/header.d.ts +1 -0
  683. package/build/src/http-server/client/request-buffer/header.d.ts.map +1 -1
  684. package/build/src/http-server/client/request-buffer/header.js +2 -1
  685. package/build/src/http-server/client/request-buffer/index.d.ts +29 -4
  686. package/build/src/http-server/client/request-buffer/index.d.ts.map +1 -1
  687. package/build/src/http-server/client/request-buffer/index.js +43 -9
  688. package/build/src/http-server/client/request-parser.d.ts +52 -13
  689. package/build/src/http-server/client/request-parser.d.ts.map +1 -1
  690. package/build/src/http-server/client/request-parser.js +58 -15
  691. package/build/src/http-server/client/request-runner.d.ts +5 -1
  692. package/build/src/http-server/client/request-runner.d.ts.map +1 -1
  693. package/build/src/http-server/client/request-runner.js +32 -8
  694. package/build/src/http-server/client/request-timing.d.ts +37 -7
  695. package/build/src/http-server/client/request-timing.d.ts.map +1 -1
  696. package/build/src/http-server/client/request-timing.js +32 -8
  697. package/build/src/http-server/client/request.d.ts +15 -5
  698. package/build/src/http-server/client/request.d.ts.map +1 -1
  699. package/build/src/http-server/client/request.js +17 -5
  700. package/build/src/http-server/client/response.d.ts +22 -4
  701. package/build/src/http-server/client/response.d.ts.map +1 -1
  702. package/build/src/http-server/client/response.js +29 -7
  703. package/build/src/http-server/client/uploaded-file/memory-uploaded-file.d.ts +1 -0
  704. package/build/src/http-server/client/uploaded-file/memory-uploaded-file.d.ts.map +1 -1
  705. package/build/src/http-server/client/uploaded-file/memory-uploaded-file.js +3 -1
  706. package/build/src/http-server/client/uploaded-file/temporary-uploaded-file.d.ts +1 -0
  707. package/build/src/http-server/client/uploaded-file/temporary-uploaded-file.d.ts.map +1 -1
  708. package/build/src/http-server/client/uploaded-file/temporary-uploaded-file.js +3 -1
  709. package/build/src/http-server/client/uploaded-file/uploaded-file.d.ts +2 -0
  710. package/build/src/http-server/client/uploaded-file/uploaded-file.d.ts.map +1 -1
  711. package/build/src/http-server/client/uploaded-file/uploaded-file.js +3 -1
  712. package/build/src/http-server/client/websocket-request.d.ts +24 -12
  713. package/build/src/http-server/client/websocket-request.d.ts.map +1 -1
  714. package/build/src/http-server/client/websocket-request.js +24 -10
  715. package/build/src/http-server/client/websocket-session.d.ts +101 -62
  716. package/build/src/http-server/client/websocket-session.d.ts.map +1 -1
  717. package/build/src/http-server/client/websocket-session.js +118 -61
  718. package/build/src/http-server/cookie.d.ts +36 -8
  719. package/build/src/http-server/cookie.d.ts.map +1 -1
  720. package/build/src/http-server/cookie.js +37 -9
  721. package/build/src/http-server/development-reloader.d.ts +32 -7
  722. package/build/src/http-server/development-reloader.d.ts.map +1 -1
  723. package/build/src/http-server/development-reloader.js +39 -10
  724. package/build/src/http-server/index.d.ts +102 -25
  725. package/build/src/http-server/index.d.ts.map +1 -1
  726. package/build/src/http-server/index.js +117 -32
  727. package/build/src/http-server/remote-address.d.ts +1 -0
  728. package/build/src/http-server/remote-address.d.ts.map +1 -1
  729. package/build/src/http-server/remote-address.js +15 -4
  730. package/build/src/http-server/server-client.d.ts +37 -8
  731. package/build/src/http-server/server-client.d.ts.map +1 -1
  732. package/build/src/http-server/server-client.js +48 -12
  733. package/build/src/http-server/server-lock.d.ts +76 -0
  734. package/build/src/http-server/server-lock.d.ts.map +1 -0
  735. package/build/src/http-server/server-lock.js +164 -0
  736. package/build/src/http-server/websocket-channel-subscribers.d.ts +13 -8
  737. package/build/src/http-server/websocket-channel-subscribers.d.ts.map +1 -1
  738. package/build/src/http-server/websocket-channel-subscribers.js +16 -7
  739. package/build/src/http-server/websocket-channel.d.ts +13 -11
  740. package/build/src/http-server/websocket-channel.d.ts.map +1 -1
  741. package/build/src/http-server/websocket-channel.js +8 -12
  742. package/build/src/http-server/websocket-connection.d.ts +10 -14
  743. package/build/src/http-server/websocket-connection.d.ts.map +1 -1
  744. package/build/src/http-server/websocket-connection.js +8 -12
  745. package/build/src/http-server/websocket-event-log-store.d.ts +48 -10
  746. package/build/src/http-server/websocket-event-log-store.d.ts.map +1 -1
  747. package/build/src/http-server/websocket-event-log-store.js +76 -34
  748. package/build/src/http-server/websocket-events-host.d.ts +21 -15
  749. package/build/src/http-server/websocket-events-host.d.ts.map +1 -1
  750. package/build/src/http-server/websocket-events-host.js +20 -11
  751. package/build/src/http-server/websocket-events.d.ts +8 -7
  752. package/build/src/http-server/websocket-events.d.ts.map +1 -1
  753. package/build/src/http-server/websocket-events.js +6 -5
  754. package/build/src/http-server/worker-handler/channel-subscriber-dispatch.d.ts +3 -2
  755. package/build/src/http-server/worker-handler/channel-subscriber-dispatch.d.ts.map +1 -1
  756. package/build/src/http-server/worker-handler/channel-subscriber-dispatch.js +3 -2
  757. package/build/src/http-server/worker-handler/in-process.d.ts +18 -18
  758. package/build/src/http-server/worker-handler/in-process.d.ts.map +1 -1
  759. package/build/src/http-server/worker-handler/in-process.js +28 -20
  760. package/build/src/http-server/worker-handler/index.d.ts +39 -20
  761. package/build/src/http-server/worker-handler/index.d.ts.map +1 -1
  762. package/build/src/http-server/worker-handler/index.js +34 -14
  763. package/build/src/http-server/worker-handler/worker-thread.d.ts +31 -15
  764. package/build/src/http-server/worker-handler/worker-thread.d.ts.map +1 -1
  765. package/build/src/http-server/worker-handler/worker-thread.js +31 -12
  766. package/build/src/initializer.d.ts +4 -0
  767. package/build/src/initializer.d.ts.map +1 -1
  768. package/build/src/initializer.js +5 -1
  769. package/build/src/jobs/mail-delivery.d.ts +1 -0
  770. package/build/src/jobs/mail-delivery.d.ts.map +1 -1
  771. package/build/src/jobs/mail-delivery.js +2 -1
  772. package/build/src/logger/base-logger.js +2 -2
  773. package/build/src/logger/console-logger.d.ts +2 -0
  774. package/build/src/logger/console-logger.d.ts.map +1 -1
  775. package/build/src/logger/console-logger.js +3 -1
  776. package/build/src/logger/file-logger.d.ts +2 -0
  777. package/build/src/logger/file-logger.d.ts.map +1 -1
  778. package/build/src/logger/file-logger.js +3 -1
  779. package/build/src/logger/outputs/array-output.d.ts +21 -5
  780. package/build/src/logger/outputs/array-output.d.ts.map +1 -1
  781. package/build/src/logger/outputs/array-output.js +19 -6
  782. package/build/src/logger/outputs/console-output.d.ts +10 -2
  783. package/build/src/logger/outputs/console-output.d.ts.map +1 -1
  784. package/build/src/logger/outputs/console-output.js +8 -3
  785. package/build/src/logger/outputs/file-output.d.ts +20 -5
  786. package/build/src/logger/outputs/file-output.d.ts.map +1 -1
  787. package/build/src/logger/outputs/file-output.js +18 -6
  788. package/build/src/logger/outputs/stdout-output.d.ts +7 -1
  789. package/build/src/logger/outputs/stdout-output.d.ts.map +1 -1
  790. package/build/src/logger/outputs/stdout-output.js +9 -3
  791. package/build/src/logger.d.ts +28 -13
  792. package/build/src/logger.d.ts.map +1 -1
  793. package/build/src/logger.js +60 -23
  794. package/build/src/mailer/backends/smtp.d.ts +5 -0
  795. package/build/src/mailer/backends/smtp.d.ts.map +1 -1
  796. package/build/src/mailer/backends/smtp.js +17 -4
  797. package/build/src/mailer/base.d.ts +33 -17
  798. package/build/src/mailer/base.d.ts.map +1 -1
  799. package/build/src/mailer/base.js +54 -18
  800. package/build/src/mailer/delivery.d.ts +16 -5
  801. package/build/src/mailer/delivery.d.ts.map +1 -1
  802. package/build/src/mailer/delivery.js +18 -7
  803. package/build/src/mailer/index.d.ts +5 -5
  804. package/build/src/mailer/index.d.ts.map +1 -1
  805. package/build/src/mailer/index.js +2 -2
  806. package/build/src/mailer.d.ts +5 -5
  807. package/build/src/mailer.d.ts.map +1 -1
  808. package/build/src/mailer.js +2 -2
  809. package/build/src/plugins/sqljs-wasm-route-controller.d.ts +4 -1
  810. package/build/src/plugins/sqljs-wasm-route-controller.d.ts.map +1 -1
  811. package/build/src/plugins/sqljs-wasm-route-controller.js +11 -4
  812. package/build/src/plugins/sqljs-wasm-route.d.ts +6 -0
  813. package/build/src/plugins/sqljs-wasm-route.d.ts.map +1 -1
  814. package/build/src/plugins/sqljs-wasm-route.js +4 -1
  815. package/build/src/record-payload-values.d.ts +54 -0
  816. package/build/src/record-payload-values.d.ts.map +1 -0
  817. package/build/src/record-payload-values.js +80 -0
  818. package/build/src/routes/app-routes.d.ts +1 -0
  819. package/build/src/routes/app-routes.d.ts.map +1 -1
  820. package/build/src/routes/app-routes.js +2 -1
  821. package/build/src/routes/base-route.d.ts +52 -16
  822. package/build/src/routes/base-route.d.ts.map +1 -1
  823. package/build/src/routes/base-route.js +50 -14
  824. package/build/src/routes/basic-route.d.ts +1 -0
  825. package/build/src/routes/basic-route.d.ts.map +1 -1
  826. package/build/src/routes/basic-route.js +13 -4
  827. package/build/src/routes/built-in/debug/controller.d.ts +4 -1
  828. package/build/src/routes/built-in/debug/controller.d.ts.map +1 -1
  829. package/build/src/routes/built-in/debug/controller.js +5 -2
  830. package/build/src/routes/get-route.d.ts +1 -0
  831. package/build/src/routes/get-route.d.ts.map +1 -1
  832. package/build/src/routes/get-route.js +7 -4
  833. package/build/src/routes/hooks/frontend-model-command-route-hook.d.ts +1 -0
  834. package/build/src/routes/hooks/frontend-model-command-route-hook.d.ts.map +1 -1
  835. package/build/src/routes/hooks/frontend-model-command-route-hook.js +6 -2
  836. package/build/src/routes/index.d.ts +3 -2
  837. package/build/src/routes/index.d.ts.map +1 -1
  838. package/build/src/routes/index.js +10 -4
  839. package/build/src/routes/namespace-route.d.ts +1 -0
  840. package/build/src/routes/namespace-route.d.ts.map +1 -1
  841. package/build/src/routes/namespace-route.js +5 -3
  842. package/build/src/routes/plugin-routes.d.ts +10 -1
  843. package/build/src/routes/plugin-routes.d.ts.map +1 -1
  844. package/build/src/routes/plugin-routes.js +11 -3
  845. package/build/src/routes/post-route.d.ts +1 -0
  846. package/build/src/routes/post-route.d.ts.map +1 -1
  847. package/build/src/routes/post-route.js +7 -4
  848. package/build/src/routes/resolver.d.ts +20 -5
  849. package/build/src/routes/resolver.d.ts.map +1 -1
  850. package/build/src/routes/resolver.js +47 -14
  851. package/build/src/routes/resource-route.d.ts +6 -1
  852. package/build/src/routes/resource-route.d.ts.map +1 -1
  853. package/build/src/routes/resource-route.js +10 -4
  854. package/build/src/testing/base-expect.d.ts +2 -0
  855. package/build/src/testing/base-expect.d.ts.map +1 -1
  856. package/build/src/testing/base-expect.js +3 -1
  857. package/build/src/testing/browser-frontend-model-event-hook-scenarios.d.ts +33 -5
  858. package/build/src/testing/browser-frontend-model-event-hook-scenarios.d.ts.map +1 -1
  859. package/build/src/testing/browser-frontend-model-event-hook-scenarios.js +95 -23
  860. package/build/src/testing/expect-to-change.d.ts +3 -0
  861. package/build/src/testing/expect-to-change.d.ts.map +1 -1
  862. package/build/src/testing/expect-to-change.js +4 -1
  863. package/build/src/testing/expect-utils.d.ts +22 -16
  864. package/build/src/testing/expect-utils.d.ts.map +1 -1
  865. package/build/src/testing/expect-utils.js +62 -30
  866. package/build/src/testing/expect.d.ts +50 -21
  867. package/build/src/testing/expect.d.ts.map +1 -1
  868. package/build/src/testing/expect.js +58 -17
  869. package/build/src/testing/request-client.d.ts +16 -3
  870. package/build/src/testing/request-client.d.ts.map +1 -1
  871. package/build/src/testing/request-client.js +17 -4
  872. package/build/src/testing/test-files-finder.d.ts +41 -9
  873. package/build/src/testing/test-files-finder.d.ts.map +1 -1
  874. package/build/src/testing/test-files-finder.js +42 -10
  875. package/build/src/testing/test-filter-parser.d.ts +6 -0
  876. package/build/src/testing/test-filter-parser.d.ts.map +1 -1
  877. package/build/src/testing/test-filter-parser.js +12 -3
  878. package/build/src/testing/test-runner.d.ts +102 -6
  879. package/build/src/testing/test-runner.d.ts.map +1 -1
  880. package/build/src/testing/test-runner.js +115 -23
  881. package/build/src/testing/test-suite-splitter.d.ts +7 -0
  882. package/build/src/testing/test-suite-splitter.d.ts.map +1 -1
  883. package/build/src/testing/test-suite-splitter.js +7 -2
  884. package/build/src/testing/test.d.ts +20 -4
  885. package/build/src/testing/test.d.ts.map +1 -1
  886. package/build/src/testing/test.js +67 -20
  887. package/build/src/utils/backtrace-cleaner-node.d.ts.map +1 -1
  888. package/build/src/utils/backtrace-cleaner-node.js +6 -1
  889. package/build/src/utils/backtrace-cleaner.d.ts +16 -1
  890. package/build/src/utils/backtrace-cleaner.d.ts.map +1 -1
  891. package/build/src/utils/backtrace-cleaner.js +20 -2
  892. package/build/src/utils/ensure-error.d.ts +3 -2
  893. package/build/src/utils/ensure-error.d.ts.map +1 -1
  894. package/build/src/utils/ensure-error.js +3 -2
  895. package/build/src/utils/event-emitter.d.ts.map +1 -1
  896. package/build/src/utils/event-emitter.js +2 -2
  897. package/build/src/utils/file-exists.d.ts +1 -0
  898. package/build/src/utils/file-exists.d.ts.map +1 -1
  899. package/build/src/utils/file-exists.js +2 -1
  900. package/build/src/utils/format-value.d.ts +5 -4
  901. package/build/src/utils/format-value.d.ts.map +1 -1
  902. package/build/src/utils/format-value.js +12 -7
  903. package/build/src/utils/model-scope.d.ts +18 -12
  904. package/build/src/utils/model-scope.d.ts.map +1 -1
  905. package/build/src/utils/model-scope.js +19 -11
  906. package/build/src/utils/nest-callbacks.d.ts +1 -0
  907. package/build/src/utils/nest-callbacks.d.ts.map +1 -1
  908. package/build/src/utils/nest-callbacks.js +2 -1
  909. package/build/src/utils/plain-object.d.ts +7 -0
  910. package/build/src/utils/plain-object.d.ts.map +1 -0
  911. package/build/src/utils/plain-object.js +13 -0
  912. package/build/src/utils/ransack.d.ts +29 -5
  913. package/build/src/utils/ransack.d.ts.map +1 -1
  914. package/build/src/utils/ransack.js +136 -49
  915. package/build/src/utils/rest-args-error.d.ts +1 -0
  916. package/build/src/utils/rest-args-error.d.ts.map +1 -1
  917. package/build/src/utils/rest-args-error.js +2 -1
  918. package/build/src/utils/singularize-model-name.d.ts +1 -0
  919. package/build/src/utils/singularize-model-name.d.ts.map +1 -1
  920. package/build/src/utils/singularize-model-name.js +2 -1
  921. package/build/src/utils/to-import-specifier.d.ts.map +1 -1
  922. package/build/src/utils/to-import-specifier.js +3 -1
  923. package/build/src/utils/with-tracked-stack-async-hooks.d.ts +8 -5
  924. package/build/src/utils/with-tracked-stack-async-hooks.d.ts.map +1 -1
  925. package/build/src/utils/with-tracked-stack-async-hooks.js +32 -13
  926. package/build/src/utils/with-tracked-stack.d.ts +9 -5
  927. package/build/src/utils/with-tracked-stack.d.ts.map +1 -1
  928. package/build/src/utils/with-tracked-stack.js +19 -8
  929. package/build/src/velocious-error.d.ts +4 -2
  930. package/build/src/velocious-error.d.ts.map +1 -1
  931. package/build/src/velocious-error.js +5 -3
  932. package/build/tsconfig.tsbuildinfo +1 -1
  933. package/package.json +1 -1
@@ -1,20 +1,33 @@
1
1
  export default class VelociousDatabaseDriversBase {
2
2
  /**
3
+ * Runs constructor.
3
4
  * @param {import("../../configuration-types.js").DatabaseConfigurationType} config - Configuration object.
4
5
  * @param {import("../../configuration.js").default} configuration - Configuration instance.
5
6
  */
6
7
  constructor(config: import("../../configuration-types.js").DatabaseConfigurationType, configuration: import("../../configuration.js").default);
7
- /** @type {number | undefined} */
8
+ /**
9
+ * Id seq.
10
+ @type {number | undefined} */
8
11
  idSeq: number | undefined;
9
- /** @type {Array<Array<() => void | Promise<void>>>} */
12
+ /**
13
+ * Narrows the runtime value to the documented type.
14
+ @type {Array<Array<() => void | Promise<void>>>} */
10
15
  _afterCommitCallbackFrames: Array<Array<() => void | Promise<void>>>;
11
- /** @type {Map<string, Promise<unknown>>} */
16
+ /**
17
+ * Narrows the runtime value to the documented type.
18
+ @type {Map<string, Promise<?>>} */
12
19
  _schemaCache: Map<string, Promise<unknown>>;
13
- /** @type {(() => void) | undefined} */
20
+ /**
21
+ * Narrows the runtime value to the documented type.
22
+ @type {(() => void) | undefined} */
14
23
  _schemaCacheInvalidator: (() => void) | undefined;
15
- /** @type {string | undefined} */
24
+ /**
25
+ * Narrows the runtime value to the documented type.
26
+ @type {string | undefined} */
16
27
  _connectionCheckoutName: string | undefined;
17
- /** @type {ActiveQueryState | null} */
28
+ /**
29
+ * Active query.
30
+ @type {ActiveQueryState | null} */
18
31
  _activeQuery: ActiveQueryState | null;
19
32
  _args: import("../../configuration-types.js").DatabaseConfigurationType;
20
33
  configuration: import("../../configuration.js").default;
@@ -23,6 +36,7 @@ export default class VelociousDatabaseDriversBase {
23
36
  _transactionsCount: number;
24
37
  _transactionsActionsMutex: Mutex;
25
38
  /**
39
+ * Runs add foreign key.
26
40
  * @param {string} tableName - Table name.
27
41
  * @param {string} columnName - Column name.
28
42
  * @param {string} referencedTableName - Referenced table name.
@@ -32,12 +46,14 @@ export default class VelociousDatabaseDriversBase {
32
46
  */
33
47
  addForeignKey(tableName: string, columnName: string, referencedTableName: string, referencedColumnName: string, args: object): Promise<void>;
34
48
  /**
49
+ * Runs alter table sqls.
35
50
  * @abstract
36
51
  * @param {import("../table-data/index.js").default} _tableData - Table data.
37
52
  * @returns {Promise<string[]>} - Resolves with SQL statements.
38
53
  */
39
54
  alterTableSQLs(_tableData: import("../table-data/index.js").default): Promise<string[]>;
40
55
  /**
56
+ * Runs connect.
41
57
  * @abstract
42
58
  * @returns {Promise<void>} - Resolves when complete.
43
59
  */
@@ -48,18 +64,24 @@ export default class VelociousDatabaseDriversBase {
48
64
  */
49
65
  close(): Promise<void>;
50
66
  /**
67
+ * Runs set connection checkout name.
51
68
  * @param {string | undefined} name - Human-readable name for this active checkout.
52
69
  * @returns {Promise<void>} - Resolves when complete.
53
70
  */
54
71
  setConnectionCheckoutName(name: string | undefined): Promise<void>;
55
72
  _connectionCheckedOutAtUnixMs: number | undefined;
56
- /** @returns {Promise<void>} - Resolves when complete. */
73
+ /**
74
+ * Runs clear connection checkout name.
75
+ * @returns {Promise<void>} - Resolves when complete.
76
+ */
57
77
  clearConnectionCheckoutName(): Promise<void>;
58
78
  /**
79
+ * Runs reconnect.
59
80
  * @returns {Promise<void>} - Resolves when complete.
60
81
  */
61
82
  reconnect(): Promise<void>;
62
83
  /**
84
+ * Runs create database sql.
63
85
  * @abstract
64
86
  * @param {string} databaseName - Database name.
65
87
  * @param {object} [args] - Options object.
@@ -74,6 +96,7 @@ export default class VelociousDatabaseDriversBase {
74
96
  databaseCollation?: string | undefined;
75
97
  }): string[];
76
98
  /**
99
+ * Runs drop database sql.
77
100
  * @abstract
78
101
  * @param {string} databaseName - Database name.
79
102
  * @param {object} [args] - Options object.
@@ -84,40 +107,47 @@ export default class VelociousDatabaseDriversBase {
84
107
  ifExists?: boolean | undefined;
85
108
  }): string[];
86
109
  /**
110
+ * Runs create index sqls.
87
111
  * @abstract
88
112
  * @param {CreateIndexSqlArgs} indexData - Index data.
89
113
  * @returns {Promise<string[]>} - Resolves with SQL statements.
90
114
  */
91
115
  createIndexSQLs(indexData: CreateIndexSqlArgs): Promise<string[]>;
92
116
  /**
117
+ * Runs create table.
93
118
  * @param {import("../table-data/index.js").default} tableData - Table data.
94
119
  * @returns {Promise<void>} - Resolves when complete.
95
120
  */
96
121
  createTable(tableData: import("../table-data/index.js").default): Promise<void>;
97
122
  /**
123
+ * Runs create table sql.
98
124
  * @abstract
99
125
  * @param {import("../table-data/index.js").default} tableData - Table data.
100
126
  * @returns {Promise<string[]>} - Resolves with SQL statements.
101
127
  */
102
128
  createTableSql(tableData: import("../table-data/index.js").default): Promise<string[]>;
103
129
  /**
130
+ * Runs delete.
104
131
  * @param {DeleteSqlArgsType} args - Options object.
105
132
  * @returns {Promise<void>} - Resolves when complete.
106
133
  */
107
134
  delete(args: DeleteSqlArgsType): Promise<void>;
108
135
  /**
136
+ * Runs delete sql.
109
137
  * @abstract
110
138
  * @param {DeleteSqlArgsType} args - Options object.
111
139
  * @returns {string} - SQL string.
112
140
  */
113
141
  deleteSql(args: DeleteSqlArgsType): string;
114
142
  /**
143
+ * Runs drop table.
115
144
  * @param {string} tableName - Table name.
116
145
  * @param {DropTableSqlArgsType} [args] - Options object.
117
146
  * @returns {Promise<void>} - Resolves when complete.
118
147
  */
119
148
  dropTable(tableName: string, args?: DropTableSqlArgsType): Promise<void>;
120
149
  /**
150
+ * Runs drop table sqls.
121
151
  * @abstract
122
152
  * @param {string} tableName - Table name.
123
153
  * @param {DropTableSqlArgsType} [args] - Options object.
@@ -125,20 +155,24 @@ export default class VelociousDatabaseDriversBase {
125
155
  */
126
156
  dropTableSQLs(tableName: string, args?: DropTableSqlArgsType): Promise<string[]>;
127
157
  /**
158
+ * Runs escape.
128
159
  * @abstract
129
- * @param {any} value - Value to use.
130
- * @returns {any} - The escape.
160
+ * @param {?} value - Value to use.
161
+ * @returns {?} - The escape.
131
162
  */
132
- escape(value: any): any;
163
+ escape(value: unknown): unknown;
133
164
  /**
165
+ * Runs get args.
134
166
  * @returns {import("../../configuration-types.js").DatabaseConfigurationType} - The args.
135
167
  */
136
168
  getArgs(): import("../../configuration-types.js").DatabaseConfigurationType;
137
169
  /**
170
+ * Runs get configuration.
138
171
  * @returns {import("../../configuration.js").default} - The configuration.
139
172
  */
140
173
  getConfiguration(): import("../../configuration.js").default;
141
174
  /**
175
+ * Runs get id seq.
142
176
  * @returns {number | undefined} - The id seq.
143
177
  */
144
178
  getIdSeq(): number | undefined;
@@ -153,15 +187,18 @@ export default class VelociousDatabaseDriversBase {
153
187
  */
154
188
  _clearLocalSchemaCache(): void;
155
189
  /**
190
+ * Runs set schema cache invalidator.
156
191
  * @param {() => void} invalidator - Callback used to clear schema caches that share this driver pool.
157
192
  * @returns {void} - No return value.
158
193
  */
159
194
  setSchemaCacheInvalidator(invalidator: () => void): void;
160
195
  /**
196
+ * Runs schema cache enabled.
161
197
  * @returns {boolean} - Whether schema metadata caching is enabled.
162
198
  */
163
199
  _schemaCacheEnabled(): boolean;
164
200
  /**
201
+ * Runs cached schema metadata.
165
202
  * @template T
166
203
  * @param {string} cacheKey - Schema cache key.
167
204
  * @param {() => Promise<T>} callback - Cache miss callback.
@@ -169,6 +206,7 @@ export default class VelociousDatabaseDriversBase {
169
206
  */
170
207
  _cachedSchemaMetadata<T>(cacheKey: string, callback: () => Promise<T>): Promise<T>;
171
208
  /**
209
+ * Runs cached table schema metadata.
172
210
  * @template T
173
211
  * @param {string} tableName - Table name.
174
212
  * @param {string} metadataName - Metadata name.
@@ -177,20 +215,24 @@ export default class VelociousDatabaseDriversBase {
177
215
  */
178
216
  _cachedTableSchemaMetadata<T>(tableName: string, metadataName: string, callback: () => Promise<T>): Promise<T>;
179
217
  /**
180
- * @param {unknown} value - Cached value.
181
- * @returns {unknown} - Value returned to callers.
218
+ * Runs schema cache return value.
219
+ * @param {?} value - Cached value.
220
+ * @returns {?} - Value returned to callers.
182
221
  */
183
222
  _schemaCacheReturnValue(value: unknown): unknown;
184
223
  /**
224
+ * Runs get tables.
185
225
  * @abstract
186
226
  * @returns {Promise<Array<import("./base-table.js").default>>} - Resolves with the tables.
187
227
  */
188
228
  getTables(): Promise<Array<import("./base-table.js").default>>;
189
229
  /**
230
+ * Runs structure sql.
190
231
  * @returns {Promise<string | null>} - Resolves with SQL string.
191
232
  */
192
233
  structureSql(): Promise<string | null>;
193
234
  /**
235
+ * Runs get table by name.
194
236
  * @param {string} name - Name.
195
237
  * @param {object} [args] - Options object.
196
238
  * @param {boolean} args.throwError - Whether throw error.
@@ -200,128 +242,146 @@ export default class VelociousDatabaseDriversBase {
200
242
  throwError: boolean;
201
243
  }): Promise<import("./base-table.js").default | undefined>;
202
244
  /**
245
+ * Runs missing table error message.
203
246
  * @param {string} name - Table name.
204
247
  * @param {string[]} tableNames - Available table names.
205
248
  * @returns {string} - Error message.
206
249
  */
207
250
  _missingTableErrorMessage(name: string, tableNames: string[]): string;
208
251
  /**
252
+ * Runs get table by name or fail.
209
253
  * @param {string} name - Name.
210
254
  * @returns {Promise<import("./base-table.js").default>} - Resolves with the table by name or fail.
211
255
  */
212
256
  getTableByNameOrFail(name: string): Promise<import("./base-table.js").default>;
213
257
  /**
258
+ * Runs get type.
214
259
  * @abstract
215
260
  * @returns {string} - The type.
216
261
  */
217
262
  getType(): string;
218
263
  /**
264
+ * Runs insert.
219
265
  * @param {InsertSqlArgsType} args - Options object.
220
266
  * @returns {Promise<void>} - Resolves when complete.
221
267
  */
222
268
  insert(args: InsertSqlArgsType): Promise<void>;
223
269
  /**
270
+ * Runs insert multiple.
224
271
  * @param {string} tableName - Table name.
225
272
  * @param {Array<string>} columns - Column names.
226
- * @param {Array<Array<unknown>>} rows - Rows to insert.
273
+ * @param {Array<Array<?>>} rows - Rows to insert.
227
274
  * @returns {Promise<void>} - Resolves when complete.
228
275
  */
229
276
  insertMultiple(tableName: string, columns: Array<string>, rows: Array<Array<unknown>>): Promise<void>;
230
277
  /**
278
+ * Runs insert sql.
231
279
  * @abstract
232
280
  * @param {InsertSqlArgsType} args - Options object.
233
281
  * @returns {string} - SQL string.
234
282
  */
235
283
  insertSql(args: InsertSqlArgsType): string;
236
284
  /**
285
+ * Runs upsert.
237
286
  * @param {UpsertSqlArgsType} args - Options object.
238
287
  * @returns {Promise<void>} - Resolves when complete.
239
288
  */
240
289
  upsert(args: UpsertSqlArgsType): Promise<void>;
241
290
  /**
291
+ * Runs last insert id.
242
292
  * @abstract
243
293
  * @returns {Promise<number>} - Resolves with the last insert id.
244
294
  */
245
295
  lastInsertID(): Promise<number>;
246
296
  /**
247
- * @param {any} value - Value to use.
248
- * @returns {any} - The convert value.
297
+ * Runs convert value.
298
+ * @param {?} value - Value to use.
299
+ * @returns {?} - The convert value.
249
300
  */
250
- _convertValue(value: any): any;
301
+ _convertValue(value: unknown): unknown;
251
302
  /**
252
303
  * Whether a value is a plain object or array that should be JSON-encoded for a
253
304
  * JSON/text column. Excludes Buffers and class instances (e.g. model records).
254
- * @param {any} value - Value to test.
305
+ * @param {?} value - Value to test.
255
306
  * @returns {boolean} - Whether to JSON-encode the value.
256
307
  */
257
- _isJsonEncodableValue(value: any): boolean;
308
+ _isJsonEncodableValue(value: unknown): boolean;
258
309
  /**
310
+ * Runs options.
259
311
  * @abstract
260
312
  * @returns {import("../query-parser/options.js").default} - The options options.
261
313
  */
262
314
  options(): import("../query-parser/options.js").default;
263
315
  /**
264
- * @param {any} value - Value to use.
316
+ * Runs quote.
317
+ * @param {?} value - Value to use.
265
318
  * @returns {number | string} - The quote.
266
319
  */
267
- quote(value: any): number | string;
320
+ quote(value: unknown): number | string;
268
321
  /**
322
+ * Runs quote column.
269
323
  * @param {string} columnName - Column name.
270
324
  * @returns {string} - The quote column.
271
325
  */
272
326
  quoteColumn(columnName: string): string;
273
327
  /**
328
+ * Runs quote index.
274
329
  * @param {string} columnName - Column name.
275
330
  * @returns {string} - The quote index.
276
331
  */
277
332
  quoteIndex(columnName: string): string;
278
333
  /**
334
+ * Runs quote table.
279
335
  * @param {string} tableName - Table name.
280
336
  * @returns {string} - The quote table.
281
337
  */
282
338
  quoteTable(tableName: string): string;
283
339
  /**
284
- * @param {any} value - Value from database.
285
- * @returns {any} - Normalized value.
286
- */
287
- /**
340
+ * Runs new query.
288
341
  * @returns {Query} - The new query.
289
342
  */
290
343
  newQuery(): Query;
291
344
  /**
345
+ * Runs select.
292
346
  * @param {string} tableName - Table name.
293
347
  * @returns {Promise<QueryResultType>} - Resolves with the select.
294
348
  */
295
349
  select(tableName: string): Promise<QueryResultType>;
296
350
  /**
351
+ * Runs set id seq.
297
352
  * @param {number | undefined} newIdSeq - New id seq.
298
353
  * @returns {void} - No return value.
299
354
  */
300
355
  setIdSeq(newIdSeq: number | undefined): void;
301
356
  /**
357
+ * Runs should set auto increment when primary key.
302
358
  * @abstract
303
359
  * @returns {boolean} - Whether set auto increment when primary key.
304
360
  */
305
361
  shouldSetAutoIncrementWhenPrimaryKey(): boolean;
306
362
  /**
363
+ * Runs supports default primary key uuid.
307
364
  * @returns {boolean} - Whether supports default primary key uuid.
308
365
  */
309
366
  supportsDefaultPrimaryKeyUUID(): boolean;
310
367
  /**
368
+ * Runs supports insert into returning.
311
369
  * @abstract
312
370
  * @returns {boolean} - Whether supports insert into returning.
313
371
  */
314
372
  supportsInsertIntoReturning(): boolean;
315
373
  /**
374
+ * Runs table exists.
316
375
  * @param {string} tableName - Table name.
317
376
  * @returns {Promise<boolean>} - Resolves with Whether table exists.
318
377
  */
319
378
  tableExists(tableName: string): Promise<boolean>;
320
379
  /**
380
+ * Runs transaction.
321
381
  * @param {() => Promise<void>} callback - Callback function.
322
- * @returns {Promise<any>} - Resolves with the transaction.
382
+ * @returns {Promise<?>} - Resolves with the transaction.
323
383
  */
324
- transaction(callback: () => Promise<void>): Promise<any>;
384
+ transaction(callback: () => Promise<void>): Promise<unknown>;
325
385
  /**
326
386
  * Runs a callback after the surrounding transaction commits.
327
387
  * If no transaction is active, the callback runs immediately.
@@ -330,18 +390,22 @@ export default class VelociousDatabaseDriversBase {
330
390
  */
331
391
  afterCommit(callback: () => void | Promise<void>): Promise<void>;
332
392
  /**
393
+ * Runs start transaction.
333
394
  * @returns {Promise<void>} - Resolves when complete.
334
395
  */
335
396
  startTransaction(): Promise<void>;
336
397
  /**
398
+ * Runs start transaction action.
337
399
  * @returns {Promise<void>} - Resolves when complete.
338
400
  */
339
401
  _startTransactionAction(): Promise<void>;
340
402
  /**
403
+ * Runs commit transaction.
341
404
  * @returns {Promise<void>} - Resolves when complete.
342
405
  */
343
406
  commitTransaction(): Promise<void>;
344
407
  /**
408
+ * Runs commit transaction action.
345
409
  * @returns {Promise<void>} - Resolves when complete.
346
410
  */
347
411
  _commitTransactionAction(): Promise<void>;
@@ -351,12 +415,14 @@ export default class VelociousDatabaseDriversBase {
351
415
  */
352
416
  _commitAfterCommitCallbackFrame(): Promise<void>;
353
417
  /**
418
+ * Runs query.
354
419
  * @param {string} sql - SQL string.
355
420
  * @param {QueryOptions} [options] - Query options.
356
421
  * @returns {Promise<QueryResultType>} - Resolves with the query.
357
422
  */
358
423
  query(sql: string, options?: QueryOptions): Promise<QueryResultType>;
359
424
  /**
425
+ * Runs query actual with logging.
360
426
  * @param {object} args - Options object.
361
427
  * @param {string} args.originalSql - Original SQL string before process-list comments.
362
428
  * @param {string} args.querySql - SQL string sent to the database.
@@ -369,34 +435,43 @@ export default class VelociousDatabaseDriversBase {
369
435
  originalSql: string;
370
436
  querySql: string;
371
437
  }, options: QueryOptions, requestTiming: import("../../http-server/client/request-timing.js").default | undefined, tries: number): Promise<QueryResultType>;
372
- /** @returns {DatabaseConnectionDebugSnapshot} - Diagnostic snapshot for this connection. */
438
+ /**
439
+ * Runs get debug snapshot.
440
+ * @returns {DatabaseConnectionDebugSnapshot} - Diagnostic snapshot for this connection.
441
+ */
373
442
  getDebugSnapshot(): DatabaseConnectionDebugSnapshot;
374
443
  /**
444
+ * Runs debug sql preview.
375
445
  * @param {string} sql - SQL to preview.
376
446
  * @returns {string} - Normalized truncated SQL preview for diagnostics.
377
447
  */
378
448
  _debugSqlPreview(sql: string): string;
379
449
  /**
450
+ * Runs query sql with process list comment.
380
451
  * @param {string} sql - SQL string.
381
452
  * @param {QueryOptions} options - Query options.
382
453
  * @returns {string} - SQL string with a leading process-list comment when annotations exist.
383
454
  */
384
455
  _querySqlWithProcessListComment(sql: string, options: QueryOptions): string;
385
456
  /**
457
+ * Runs process list comment value.
386
458
  * @param {string} value - Raw process-list comment value.
387
459
  * @returns {string} - Sanitized process-list comment value.
388
460
  */
389
461
  _processListCommentValue(value: string): string;
390
462
  /**
463
+ * Runs schema cache invalidating sql.
391
464
  * @param {string} sql - SQL string.
392
465
  * @returns {boolean} - Whether the SQL should invalidate schema metadata.
393
466
  */
394
467
  _schemaCacheInvalidatingSql(sql: string): boolean;
395
468
  /**
469
+ * Runs query logging enabled.
396
470
  * @returns {boolean} - Whether query logging is enabled for this driver.
397
471
  */
398
472
  _queryLoggingEnabled(): boolean;
399
473
  /**
474
+ * Runs log query.
400
475
  * @param {object} args - Options object.
401
476
  * @param {number} args.elapsedMs - Elapsed milliseconds.
402
477
  * @param {string} args.logName - Query log subject.
@@ -411,66 +486,82 @@ export default class VelociousDatabaseDriversBase {
411
486
  sql: string;
412
487
  }): Promise<void>;
413
488
  /**
489
+ * Runs query source line.
414
490
  * @param {string | undefined} sourceStack - Source stack.
415
491
  * @returns {string | undefined} - Source line when an application frame is available.
416
492
  */
417
493
  _querySourceLine(sourceStack: string | undefined): string | undefined;
418
494
  /**
495
+ * Runs query actual.
419
496
  * @abstract
420
497
  * @param {string} sql - SQL string.
421
498
  * @returns {Promise<QueryResultType>} - Resolves with the query actual.
422
499
  */
423
500
  _queryActual(sql: string): Promise<QueryResultType>;
424
501
  /**
502
+ * Runs query to sql.
425
503
  * @abstract
426
504
  * @param {Query} _query - Query instance.
427
505
  * @returns {string} - SQL string.
428
506
  */
429
507
  queryToSql(_query: Query): string;
430
508
  /**
509
+ * Runs retryable database error.
431
510
  * @param {Error} _error - Error instance.
432
511
  * @returns {RetryableDatabaseErrorResult} - Retry info.
433
512
  */
434
513
  retryableDatabaseError(_error: Error): RetryableDatabaseErrorResult;
435
514
  /**
515
+ * Runs assert writable query.
436
516
  * @param {string} sql - SQL string.
437
517
  * @returns {void} - No return value.
438
518
  */
439
519
  _assertWritableQuery(sql: string): void;
440
520
  /**
521
+ * Runs assert not read only.
441
522
  * @returns {void} - No return value.
442
523
  */
443
524
  _assertNotReadOnly(): void;
444
525
  /**
526
+ * Runs sql looks like write.
445
527
  * @param {string} sql - SQL string.
446
528
  * @returns {boolean} - SQL representation.
447
529
  */
448
530
  _sqlLooksLikeWrite(sql: string): boolean;
449
- /** @returns {boolean} - Whether read only. */
531
+ /**
532
+ * Runs is read only.
533
+ * @returns {boolean} - Whether read only.
534
+ */
450
535
  isReadOnly(): boolean;
451
536
  /**
537
+ * Runs rollback transaction.
452
538
  * @returns {Promise<void>} - Resolves when complete.
453
539
  */
454
540
  rollbackTransaction(): Promise<void>;
455
541
  /**
542
+ * Runs rollback transaction action.
456
543
  * @returns {Promise<void>} - Resolves when complete.
457
544
  */
458
545
  _rollbackTransactionAction(): Promise<void>;
459
546
  /**
547
+ * Runs generate save point name.
460
548
  * @returns {string} - The generate save point name.
461
549
  */
462
550
  generateSavePointName(): string;
463
551
  /**
552
+ * Runs start save point.
464
553
  * @param {string} savePointName - Save point name.
465
554
  * @returns {Promise<void>} - Resolves when complete.
466
555
  */
467
556
  startSavePoint(savePointName: string): Promise<void>;
468
557
  /**
558
+ * Runs start save point action.
469
559
  * @param {string} savePointName - Save point name.
470
560
  * @returns {Promise<void>} - Resolves when complete.
471
561
  */
472
562
  _startSavePointAction(savePointName: string): Promise<void>;
473
563
  /**
564
+ * Runs rename column.
474
565
  * @param {string} tableName - Table name.
475
566
  * @param {string} oldColumnName - Previous column name.
476
567
  * @param {string} newColumnName - New column name.
@@ -478,68 +569,78 @@ export default class VelociousDatabaseDriversBase {
478
569
  */
479
570
  renameColumn(tableName: string, oldColumnName: string, newColumnName: string): Promise<void>;
480
571
  /**
572
+ * Runs release save point.
481
573
  * @param {string} savePointName - Save point name.
482
574
  * @returns {Promise<void>} - Resolves when complete.
483
575
  */
484
576
  releaseSavePoint(savePointName: string): Promise<void>;
485
577
  /**
578
+ * Runs release save point action.
486
579
  * @param {string} savePointName - Save point name.
487
580
  * @returns {Promise<void>} - Resolves when complete.
488
581
  */
489
582
  _releaseSavePointAction(savePointName: string): Promise<void>;
490
583
  /**
584
+ * Runs rollback save point.
491
585
  * @param {string} savePointName - Save point name.
492
586
  * @returns {Promise<void>} - Resolves when complete.
493
587
  */
494
588
  rollbackSavePoint(savePointName: string): Promise<void>;
495
589
  /**
590
+ * Runs rollback save point action.
496
591
  * @param {string} savePointName - Save point name.
497
592
  * @returns {Promise<void>} - Resolves when complete.
498
593
  */
499
594
  _rollbackSavePointAction(savePointName: string): Promise<void>;
500
595
  /**
596
+ * Runs truncate all tables.
501
597
  * @returns {Promise<void>} - Resolves when complete.
502
598
  */
503
599
  truncateAllTables(): Promise<void>;
504
600
  /**
601
+ * Runs update.
505
602
  * @param {UpdateSqlArgsType} args - Options object.
506
603
  * @returns {Promise<void>} - Resolves when complete.
507
604
  */
508
605
  update(args: UpdateSqlArgsType): Promise<void>;
509
606
  /**
607
+ * Runs update sql.
510
608
  * @abstract
511
609
  * @param {UpdateSqlArgsType} args - Options object.
512
610
  * @returns {string} - SQL string.
513
611
  */
514
612
  updateSql(args: UpdateSqlArgsType): string;
515
613
  /**
614
+ * Runs upsert sql.
516
615
  * @abstract
517
616
  * @param {UpsertSqlArgsType} args - Options object.
518
617
  * @returns {string} - SQL string.
519
618
  */
520
619
  upsertSql(args: UpsertSqlArgsType): string;
521
620
  /**
621
+ * Runs disable foreign keys.
522
622
  * @abstract
523
623
  * @returns {Promise<void>} - Resolves when complete.
524
624
  */
525
625
  disableForeignKeys(): Promise<void>;
526
626
  /**
627
+ * Runs enable foreign keys.
527
628
  * @abstract
528
629
  * @returns {Promise<void>} - Resolves when complete.
529
630
  */
530
631
  enableForeignKeys(): Promise<void>;
531
632
  /**
633
+ * Runs with disabled foreign keys.
532
634
  * @param {function() : void} callback - Callback function.
533
- * @returns {Promise<any>} - Resolves with the with disabled foreign keys.
635
+ * @returns {Promise<?>} - Resolves with the with disabled foreign keys.
534
636
  */
535
- withDisabledForeignKeys(callback: () => void): Promise<any>;
637
+ withDisabledForeignKeys(callback: () => void): Promise<unknown>;
536
638
  /**
537
639
  * Blocks until a named advisory lock is acquired on this connection.
538
640
  * Advisory locks are connection-scoped and do not interact with row or
539
641
  * table locks; they are purely cooperative between callers that use the
540
642
  * same name and let you serialize functionality without blocking readers
541
643
  * or writers that do not participate in the same lock.
542
- *
543
644
  * @abstract
544
645
  * @param {string} name - Lock name.
545
646
  * @param {{timeoutMs?: number | null}} [_args] - Optional timeout in milliseconds; `null` or undefined blocks forever.
@@ -550,7 +651,6 @@ export default class VelociousDatabaseDriversBase {
550
651
  }): Promise<boolean>;
551
652
  /**
552
653
  * Attempts to acquire a named advisory lock without blocking.
553
- *
554
654
  * @abstract
555
655
  * @param {string} name - Lock name.
556
656
  * @returns {Promise<boolean>} - Resolves to true if the lock was acquired, false if it was already held.
@@ -558,7 +658,6 @@ export default class VelociousDatabaseDriversBase {
558
658
  tryAcquireAdvisoryLock(name: string): Promise<boolean>;
559
659
  /**
560
660
  * Releases a named advisory lock previously acquired on this connection.
561
- *
562
661
  * @abstract
563
662
  * @param {string} name - Lock name.
564
663
  * @returns {Promise<boolean>} - Resolves to true if the lock was held by this session and has now been released.
@@ -568,13 +667,15 @@ export default class VelociousDatabaseDriversBase {
568
667
  * Checks whether a named advisory lock is currently held by any session.
569
668
  * Intended as an introspection helper; callers who need to act on the
570
669
  * result should prefer `tryAcquireAdvisoryLock` to avoid a TOCTOU race.
571
- *
572
670
  * @abstract
573
671
  * @param {string} name - Lock name.
574
- * @returns {Promise<boolean>} - Resolves to true if the lock is held by any session.
672
+ * @returns {Promise<boolean>} - Resolves to true if the lock is held by ? session.
575
673
  */
576
674
  isAdvisoryLockHeld(name: string): Promise<boolean>;
577
675
  }
676
+ /**
677
+ * CreateIndexSqlArgs type.
678
+ */
578
679
  export type CreateIndexSqlArgs = {
579
680
  /**
580
681
  * - Columns to include in the index.
@@ -597,6 +698,9 @@ export type CreateIndexSqlArgs = {
597
698
  */
598
699
  tableName: string;
599
700
  };
701
+ /**
702
+ * DropTableSqlArgsType type.
703
+ */
600
704
  export type DropTableSqlArgsType = {
601
705
  /**
602
706
  * - Whether dependent objects should be dropped too.
@@ -607,6 +711,9 @@ export type DropTableSqlArgsType = {
607
711
  */
608
712
  ifExists?: boolean | undefined;
609
713
  };
714
+ /**
715
+ * DeleteSqlArgsType type.
716
+ */
610
717
  export type DeleteSqlArgsType = {
611
718
  /**
612
719
  * - Table name to delete from.
@@ -616,9 +723,12 @@ export type DeleteSqlArgsType = {
616
723
  * - Conditions used to build the delete WHERE clause.
617
724
  */
618
725
  conditions: {
619
- [key: string]: any;
726
+ [key: string]: unknown;
620
727
  };
621
728
  };
729
+ /**
730
+ * InsertSqlArgsType type.
731
+ */
622
732
  export type InsertSqlArgsType = {
623
733
  /**
624
734
  * - Column names for `rows` inserts.
@@ -647,8 +757,17 @@ export type InsertSqlArgsType = {
647
757
  */
648
758
  tableName: string;
649
759
  };
650
- export type QueryRowType = Record<string, any>;
760
+ /**
761
+ * QueryRowType type.
762
+ */
763
+ export type QueryRowType = Record<string, unknown>;
764
+ /**
765
+ * QueryRowType type.
766
+ */
651
767
  export type QueryResultType = Array<QueryRowType>;
768
+ /**
769
+ * RetryableDatabaseErrorResult type.
770
+ */
652
771
  export type RetryableDatabaseErrorResult = {
653
772
  /**
654
773
  * - Whether the error should be retried.
@@ -667,6 +786,9 @@ export type RetryableDatabaseErrorResult = {
667
786
  */
668
787
  waitMs?: number | undefined;
669
788
  };
789
+ /**
790
+ * QueryOptions type.
791
+ */
670
792
  export type QueryOptions = {
671
793
  /**
672
794
  * - Query log subject.
@@ -685,6 +807,9 @@ export type QueryOptions = {
685
807
  */
686
808
  sourceStack?: string | undefined;
687
809
  };
810
+ /**
811
+ * ActiveQueryDebugSnapshot type.
812
+ */
688
813
  export type ActiveQueryDebugSnapshot = {
689
814
  /**
690
815
  * - Database annotations active when the query started.
@@ -707,6 +832,9 @@ export type ActiveQueryDebugSnapshot = {
707
832
  */
708
833
  sqlPreview: string;
709
834
  };
835
+ /**
836
+ * DatabaseConnectionDebugSnapshot type.
837
+ */
710
838
  export type DatabaseConnectionDebugSnapshot = {
711
839
  /**
712
840
  * - Currently running query, if any.
@@ -741,6 +869,9 @@ export type DatabaseConnectionDebugSnapshot = {
741
869
  */
742
870
  schemaCacheEntries: number;
743
871
  };
872
+ /**
873
+ * ActiveQueryState type.
874
+ */
744
875
  export type ActiveQueryState = {
745
876
  /**
746
877
  * - Database annotations active when the query started.
@@ -759,6 +890,9 @@ export type ActiveQueryState = {
759
890
  */
760
891
  sqlPreview: string;
761
892
  };
893
+ /**
894
+ * UpdateSqlArgsType type.
895
+ */
762
896
  export type UpdateSqlArgsType = {
763
897
  /**
764
898
  * - Conditions used to build the update WHERE clause.
@@ -773,6 +907,9 @@ export type UpdateSqlArgsType = {
773
907
  */
774
908
  tableName: string;
775
909
  };
910
+ /**
911
+ * UpsertSqlArgsType type.
912
+ */
776
913
  export type UpsertSqlArgsType = {
777
914
  /**
778
915
  * - Columns that define a conflict.