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.
- package/README.md +2 -0
- package/build/src/application.d.ts +96 -9
- package/build/src/application.d.ts.map +1 -1
- package/build/src/application.js +127 -28
- package/build/src/authorization/ability.d.ts +72 -31
- package/build/src/authorization/ability.d.ts.map +1 -1
- package/build/src/authorization/ability.js +59 -22
- package/build/src/authorization/base-resource.d.ts +47 -20
- package/build/src/authorization/base-resource.d.ts.map +1 -1
- package/build/src/authorization/base-resource.js +43 -14
- package/build/src/background-jobs/client.d.ts +4 -2
- package/build/src/background-jobs/client.d.ts.map +1 -1
- package/build/src/background-jobs/client.js +4 -2
- package/build/src/background-jobs/cron-expression.d.ts +9 -5
- package/build/src/background-jobs/cron-expression.d.ts.map +1 -1
- package/build/src/background-jobs/cron-expression.js +16 -6
- package/build/src/background-jobs/forked-runner-child.js +12 -5
- package/build/src/background-jobs/job-registry.d.ts +7 -1
- package/build/src/background-jobs/job-registry.d.ts.map +1 -1
- package/build/src/background-jobs/job-registry.js +8 -2
- package/build/src/background-jobs/job-runner.d.ts +1 -0
- package/build/src/background-jobs/job-runner.d.ts.map +1 -1
- package/build/src/background-jobs/job-runner.js +8 -3
- package/build/src/background-jobs/job.d.ts +12 -8
- package/build/src/background-jobs/job.d.ts.map +1 -1
- package/build/src/background-jobs/job.js +12 -6
- package/build/src/background-jobs/json-socket.d.ts +17 -5
- package/build/src/background-jobs/json-socket.d.ts.map +1 -1
- package/build/src/background-jobs/json-socket.js +18 -6
- package/build/src/background-jobs/main.d.ts +118 -32
- package/build/src/background-jobs/main.d.ts.map +1 -1
- package/build/src/background-jobs/main.js +123 -35
- package/build/src/background-jobs/normalize-error.d.ts +2 -1
- package/build/src/background-jobs/normalize-error.d.ts.map +1 -1
- package/build/src/background-jobs/normalize-error.js +5 -3
- package/build/src/background-jobs/scheduler.d.ts +31 -10
- package/build/src/background-jobs/scheduler.d.ts.map +1 -1
- package/build/src/background-jobs/scheduler.js +33 -11
- package/build/src/background-jobs/socket-request.d.ts +2 -0
- package/build/src/background-jobs/socket-request.d.ts.map +1 -1
- package/build/src/background-jobs/socket-request.js +11 -3
- package/build/src/background-jobs/status-reporter.d.ts +5 -2
- package/build/src/background-jobs/status-reporter.d.ts.map +1 -1
- package/build/src/background-jobs/status-reporter.js +6 -3
- package/build/src/background-jobs/store.d.ts +57 -19
- package/build/src/background-jobs/store.d.ts.map +1 -1
- package/build/src/background-jobs/store.js +70 -20
- package/build/src/background-jobs/types.d.ts +7 -7
- package/build/src/background-jobs/types.d.ts.map +1 -1
- package/build/src/background-jobs/types.js +6 -6
- package/build/src/background-jobs/web/authorization.d.ts.map +1 -1
- package/build/src/background-jobs/web/authorization.js +3 -1
- package/build/src/background-jobs/web/controller.d.ts +40 -14
- package/build/src/background-jobs/web/controller.d.ts.map +1 -1
- package/build/src/background-jobs/web/controller.js +46 -15
- package/build/src/background-jobs/web/registry.d.ts +5 -0
- package/build/src/background-jobs/web/registry.d.ts.map +1 -1
- package/build/src/background-jobs/web/registry.js +4 -1
- package/build/src/background-jobs/worker.d.ts +41 -8
- package/build/src/background-jobs/worker.d.ts.map +1 -1
- package/build/src/background-jobs/worker.js +64 -16
- package/build/src/beacon/client.d.ts +39 -12
- package/build/src/beacon/client.d.ts.map +1 -1
- package/build/src/beacon/client.js +45 -15
- package/build/src/beacon/in-process-broker.d.ts +4 -0
- package/build/src/beacon/in-process-broker.d.ts.map +1 -1
- package/build/src/beacon/in-process-broker.js +8 -3
- package/build/src/beacon/in-process-client.d.ts +28 -9
- package/build/src/beacon/in-process-client.d.ts.map +1 -1
- package/build/src/beacon/in-process-client.js +27 -9
- package/build/src/beacon/server.d.ts +13 -2
- package/build/src/beacon/server.d.ts.map +1 -1
- package/build/src/beacon/server.js +21 -5
- package/build/src/beacon/types.d.ts +3 -3
- package/build/src/beacon/types.d.ts.map +1 -1
- package/build/src/beacon/types.js +2 -2
- package/build/src/cli/base-command.d.ts +18 -4
- package/build/src/cli/base-command.d.ts.map +1 -1
- package/build/src/cli/base-command.js +15 -4
- package/build/src/cli/browser-cli.d.ts +3 -0
- package/build/src/cli/browser-cli.d.ts.map +1 -1
- package/build/src/cli/browser-cli.js +7 -2
- package/build/src/cli/commands/background-jobs-main.d.ts +0 -1
- package/build/src/cli/commands/background-jobs-main.d.ts.map +1 -1
- package/build/src/cli/commands/background-jobs-runner.d.ts +0 -1
- package/build/src/cli/commands/background-jobs-runner.d.ts.map +1 -1
- package/build/src/cli/commands/background-jobs-worker.d.ts +0 -1
- package/build/src/cli/commands/background-jobs-worker.d.ts.map +1 -1
- package/build/src/cli/commands/beacon.d.ts +0 -1
- package/build/src/cli/commands/beacon.d.ts.map +1 -1
- package/build/src/cli/commands/console.d.ts +0 -2
- package/build/src/cli/commands/console.d.ts.map +1 -1
- package/build/src/cli/commands/console.js +5 -2
- package/build/src/cli/commands/db/base-command.d.ts +11 -2
- package/build/src/cli/commands/db/base-command.d.ts.map +1 -1
- package/build/src/cli/commands/db/base-command.js +12 -3
- package/build/src/cli/commands/db/create.d.ts +3 -0
- package/build/src/cli/commands/db/create.d.ts.map +1 -1
- package/build/src/cli/commands/db/create.js +4 -1
- package/build/src/cli/commands/db/drop.d.ts +3 -0
- package/build/src/cli/commands/db/drop.d.ts.map +1 -1
- package/build/src/cli/commands/db/drop.js +4 -1
- package/build/src/cli/commands/db/schema/dump.d.ts +0 -2
- package/build/src/cli/commands/db/schema/dump.d.ts.map +1 -1
- package/build/src/cli/commands/db/schema/dump.js +5 -2
- package/build/src/cli/commands/db/schema/load.d.ts +0 -2
- package/build/src/cli/commands/db/schema/load.d.ts.map +1 -1
- package/build/src/cli/commands/db/schema/load.js +5 -2
- package/build/src/cli/commands/db/seed.d.ts +0 -2
- package/build/src/cli/commands/db/seed.d.ts.map +1 -1
- package/build/src/cli/commands/db/seed.js +5 -2
- package/build/src/cli/commands/db/tenants/check.d.ts +4 -1
- package/build/src/cli/commands/db/tenants/check.d.ts.map +1 -1
- package/build/src/cli/commands/db/tenants/check.js +5 -2
- package/build/src/cli/commands/db/tenants/create.d.ts +4 -1
- package/build/src/cli/commands/db/tenants/create.d.ts.map +1 -1
- package/build/src/cli/commands/db/tenants/create.js +5 -2
- package/build/src/cli/commands/db/tenants/migrate.d.ts +4 -1
- package/build/src/cli/commands/db/tenants/migrate.d.ts.map +1 -1
- package/build/src/cli/commands/db/tenants/migrate.js +5 -2
- package/build/src/cli/commands/destroy/migration.d.ts +0 -1
- package/build/src/cli/commands/destroy/migration.d.ts.map +1 -1
- package/build/src/cli/commands/generate/base-models.d.ts +0 -1
- package/build/src/cli/commands/generate/base-models.d.ts.map +1 -1
- package/build/src/cli/commands/generate/frontend-models.d.ts +0 -2
- package/build/src/cli/commands/generate/frontend-models.d.ts.map +1 -1
- package/build/src/cli/commands/generate/frontend-models.js +5 -2
- package/build/src/cli/commands/generate/migration.d.ts +0 -1
- package/build/src/cli/commands/generate/migration.d.ts.map +1 -1
- package/build/src/cli/commands/generate/model.d.ts +0 -1
- package/build/src/cli/commands/generate/model.d.ts.map +1 -1
- package/build/src/cli/commands/init.d.ts +0 -1
- package/build/src/cli/commands/init.d.ts.map +1 -1
- package/build/src/cli/commands/routes.d.ts +0 -1
- package/build/src/cli/commands/routes.d.ts.map +1 -1
- package/build/src/cli/commands/run-script.d.ts +0 -2
- package/build/src/cli/commands/run-script.d.ts.map +1 -1
- package/build/src/cli/commands/run-script.js +5 -2
- package/build/src/cli/commands/runner.d.ts +0 -2
- package/build/src/cli/commands/runner.d.ts.map +1 -1
- package/build/src/cli/commands/runner.js +5 -2
- package/build/src/cli/commands/server.d.ts +0 -1
- package/build/src/cli/commands/server.d.ts.map +1 -1
- package/build/src/cli/commands/test.d.ts +0 -1
- package/build/src/cli/commands/test.d.ts.map +1 -1
- package/build/src/cli/index.d.ts +18 -5
- package/build/src/cli/index.d.ts.map +1 -1
- package/build/src/cli/index.js +25 -8
- package/build/src/cli/tenant-database-command-helper.d.ts +24 -9
- package/build/src/cli/tenant-database-command-helper.d.ts.map +1 -1
- package/build/src/cli/tenant-database-command-helper.js +30 -11
- package/build/src/cli/use-browser-cli.d.ts +1 -0
- package/build/src/cli/use-browser-cli.d.ts.map +1 -1
- package/build/src/cli/use-browser-cli.js +5 -2
- package/build/src/configuration-resolver.d.ts +1 -0
- package/build/src/configuration-resolver.d.ts.map +1 -1
- package/build/src/configuration-resolver.js +2 -1
- package/build/src/configuration-types.d.ts +44 -44
- package/build/src/configuration-types.d.ts.map +1 -1
- package/build/src/configuration-types.js +27 -27
- package/build/src/configuration.d.ts +350 -114
- package/build/src/configuration.d.ts.map +1 -1
- package/build/src/configuration.js +416 -128
- package/build/src/controller.d.ts +67 -18
- package/build/src/controller.d.ts.map +1 -1
- package/build/src/controller.js +88 -23
- package/build/src/current-configuration.d.ts +2 -0
- package/build/src/current-configuration.d.ts.map +1 -1
- package/build/src/current-configuration.js +6 -2
- package/build/src/current.d.ts +16 -9
- package/build/src/current.d.ts.map +1 -1
- package/build/src/current.js +15 -8
- package/build/src/database/annotations-async-hooks.js +13 -6
- package/build/src/database/annotations.d.ts +7 -1
- package/build/src/database/annotations.d.ts.map +1 -1
- package/build/src/database/annotations.js +12 -5
- package/build/src/database/drivers/base-column.d.ts +21 -3
- package/build/src/database/drivers/base-column.d.ts.map +1 -1
- package/build/src/database/drivers/base-column.js +21 -3
- package/build/src/database/drivers/base-columns-index.d.ts +9 -0
- package/build/src/database/drivers/base-columns-index.d.ts.map +1 -1
- package/build/src/database/drivers/base-columns-index.js +10 -1
- package/build/src/database/drivers/base-foreign-key.d.ts +15 -3
- package/build/src/database/drivers/base-foreign-key.d.ts.map +1 -1
- package/build/src/database/drivers/base-foreign-key.js +15 -3
- package/build/src/database/drivers/base-table.d.ts +16 -3
- package/build/src/database/drivers/base-table.d.ts.map +1 -1
- package/build/src/database/drivers/base-table.js +16 -3
- package/build/src/database/drivers/base.d.ts +174 -37
- package/build/src/database/drivers/base.d.ts.map +1 -1
- package/build/src/database/drivers/base.js +156 -40
- package/build/src/database/drivers/mssql/column.d.ts +3 -2
- package/build/src/database/drivers/mssql/column.d.ts.map +1 -1
- package/build/src/database/drivers/mssql/column.js +3 -2
- package/build/src/database/drivers/mssql/index.d.ts +5 -6
- package/build/src/database/drivers/mssql/index.d.ts.map +1 -1
- package/build/src/database/drivers/mssql/index.js +38 -7
- package/build/src/database/drivers/mssql/options.d.ts +1 -0
- package/build/src/database/drivers/mssql/options.d.ts.map +1 -1
- package/build/src/database/drivers/mssql/options.js +8 -2
- package/build/src/database/drivers/mssql/sql/create-database.d.ts +1 -0
- package/build/src/database/drivers/mssql/sql/create-database.d.ts.map +1 -1
- package/build/src/database/drivers/mssql/sql/create-database.js +2 -1
- package/build/src/database/drivers/mssql/sql/drop-database.d.ts.map +1 -1
- package/build/src/database/drivers/mssql/sql/drop-database.js +2 -1
- package/build/src/database/drivers/mssql/structure-sql.d.ts +5 -2
- package/build/src/database/drivers/mssql/structure-sql.d.ts.map +1 -1
- package/build/src/database/drivers/mssql/structure-sql.js +5 -2
- package/build/src/database/drivers/mssql/table.d.ts +1 -0
- package/build/src/database/drivers/mssql/table.d.ts.map +1 -1
- package/build/src/database/drivers/mssql/table.js +9 -4
- package/build/src/database/drivers/mysql/column.d.ts +3 -2
- package/build/src/database/drivers/mysql/column.d.ts.map +1 -1
- package/build/src/database/drivers/mysql/column.js +4 -3
- package/build/src/database/drivers/mysql/index.d.ts +11 -3
- package/build/src/database/drivers/mysql/index.d.ts.map +1 -1
- package/build/src/database/drivers/mysql/index.js +54 -10
- package/build/src/database/drivers/mysql/options.d.ts +1 -0
- package/build/src/database/drivers/mysql/options.d.ts.map +1 -1
- package/build/src/database/drivers/mysql/options.js +4 -2
- package/build/src/database/drivers/mysql/query.d.ts +3 -2
- package/build/src/database/drivers/mysql/query.d.ts.map +1 -1
- package/build/src/database/drivers/mysql/query.js +6 -3
- package/build/src/database/drivers/mysql/sql/create-database.d.ts.map +1 -1
- package/build/src/database/drivers/mysql/sql/create-database.js +3 -1
- package/build/src/database/drivers/mysql/structure-sql.d.ts +7 -2
- package/build/src/database/drivers/mysql/structure-sql.d.ts.map +1 -1
- package/build/src/database/drivers/mysql/structure-sql.js +7 -2
- package/build/src/database/drivers/mysql/table.d.ts +1 -0
- package/build/src/database/drivers/mysql/table.d.ts.map +1 -1
- package/build/src/database/drivers/mysql/table.js +7 -3
- package/build/src/database/drivers/pgsql/column.d.ts +3 -2
- package/build/src/database/drivers/pgsql/column.d.ts.map +1 -1
- package/build/src/database/drivers/pgsql/column.js +3 -2
- package/build/src/database/drivers/pgsql/index.d.ts +1 -1
- package/build/src/database/drivers/pgsql/index.d.ts.map +1 -1
- package/build/src/database/drivers/pgsql/index.js +36 -11
- package/build/src/database/drivers/pgsql/options.d.ts +2 -0
- package/build/src/database/drivers/pgsql/options.d.ts.map +1 -1
- package/build/src/database/drivers/pgsql/options.js +3 -1
- package/build/src/database/drivers/pgsql/structure-sql.d.ts +5 -2
- package/build/src/database/drivers/pgsql/structure-sql.d.ts.map +1 -1
- package/build/src/database/drivers/pgsql/structure-sql.js +5 -2
- package/build/src/database/drivers/pgsql/table.d.ts +1 -0
- package/build/src/database/drivers/pgsql/table.d.ts.map +1 -1
- package/build/src/database/drivers/pgsql/table.js +6 -2
- package/build/src/database/drivers/sqlite/base.d.ts +15 -5
- package/build/src/database/drivers/sqlite/base.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/base.js +79 -27
- package/build/src/database/drivers/sqlite/column.d.ts +3 -2
- package/build/src/database/drivers/sqlite/column.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/column.js +3 -2
- package/build/src/database/drivers/sqlite/connection-sql-js.d.ts +4 -2
- package/build/src/database/drivers/sqlite/connection-sql-js.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/connection-sql-js.js +4 -2
- package/build/src/database/drivers/sqlite/foreign-key.d.ts +3 -2
- package/build/src/database/drivers/sqlite/foreign-key.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/foreign-key.js +3 -2
- package/build/src/database/drivers/sqlite/index.d.ts +18 -5
- package/build/src/database/drivers/sqlite/index.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/index.js +40 -16
- package/build/src/database/drivers/sqlite/index.native.d.ts +1 -1
- package/build/src/database/drivers/sqlite/index.native.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/index.native.js +6 -3
- package/build/src/database/drivers/sqlite/index.web.d.ts +16 -4
- package/build/src/database/drivers/sqlite/index.web.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/index.web.js +17 -7
- package/build/src/database/drivers/sqlite/options.d.ts +2 -0
- package/build/src/database/drivers/sqlite/options.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/options.js +3 -1
- package/build/src/database/drivers/sqlite/query.d.ts +3 -2
- package/build/src/database/drivers/sqlite/query.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/query.js +6 -3
- package/build/src/database/drivers/sqlite/query.native.d.ts +2 -2
- package/build/src/database/drivers/sqlite/query.native.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/query.native.js +3 -3
- package/build/src/database/drivers/sqlite/query.web.d.ts +3 -2
- package/build/src/database/drivers/sqlite/query.web.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/query.web.js +6 -3
- package/build/src/database/drivers/sqlite/sql/alter-table.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/sql/alter-table.js +9 -3
- package/build/src/database/drivers/sqlite/structure-sql.d.ts +2 -0
- package/build/src/database/drivers/sqlite/structure-sql.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/structure-sql.js +3 -1
- package/build/src/database/drivers/sqlite/table-rebuilder.d.ts +2 -0
- package/build/src/database/drivers/sqlite/table-rebuilder.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/table-rebuilder.js +3 -1
- package/build/src/database/drivers/sqlite/table.d.ts +2 -0
- package/build/src/database/drivers/sqlite/table.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/table.js +14 -4
- package/build/src/database/drivers/structure-sql/utils.d.ts +2 -0
- package/build/src/database/drivers/structure-sql/utils.d.ts.map +1 -1
- package/build/src/database/drivers/structure-sql/utils.js +3 -1
- package/build/src/database/handler.d.ts +1 -0
- package/build/src/database/handler.d.ts.map +1 -1
- package/build/src/database/handler.js +2 -1
- package/build/src/database/initializer-from-require-context.d.ts +8 -0
- package/build/src/database/initializer-from-require-context.d.ts.map +1 -1
- package/build/src/database/initializer-from-require-context.js +4 -1
- package/build/src/database/migration/index.d.ts +40 -5
- package/build/src/database/migration/index.d.ts.map +1 -1
- package/build/src/database/migration/index.js +34 -6
- package/build/src/database/migrator/files-finder.d.ts +2 -0
- package/build/src/database/migrator/files-finder.d.ts.map +1 -1
- package/build/src/database/migrator/files-finder.js +6 -2
- package/build/src/database/migrator.d.ts +29 -4
- package/build/src/database/migrator.d.ts.map +1 -1
- package/build/src/database/migrator.js +45 -10
- package/build/src/database/pool/async-tracked-multi-connection.d.ts +125 -31
- package/build/src/database/pool/async-tracked-multi-connection.d.ts.map +1 -1
- package/build/src/database/pool/async-tracked-multi-connection.js +189 -52
- package/build/src/database/pool/base-methods-forward.d.ts +1 -0
- package/build/src/database/pool/base-methods-forward.d.ts.map +1 -1
- package/build/src/database/pool/base-methods-forward.js +12 -3
- package/build/src/database/pool/base.d.ts +39 -7
- package/build/src/database/pool/base.d.ts.map +1 -1
- package/build/src/database/pool/base.js +59 -18
- package/build/src/database/pool/single-multi-use.d.ts +1 -0
- package/build/src/database/pool/single-multi-use.d.ts.map +1 -1
- package/build/src/database/pool/single-multi-use.js +16 -4
- package/build/src/database/query/alter-table-base.d.ts +1 -0
- package/build/src/database/query/alter-table-base.d.ts.map +1 -1
- package/build/src/database/query/alter-table-base.js +3 -1
- package/build/src/database/query/base.d.ts +3 -0
- package/build/src/database/query/base.d.ts.map +1 -1
- package/build/src/database/query/base.js +4 -1
- package/build/src/database/query/create-database-base.d.ts +5 -0
- package/build/src/database/query/create-database-base.d.ts.map +1 -1
- package/build/src/database/query/create-database-base.js +4 -1
- package/build/src/database/query/create-index-base.d.ts +5 -0
- package/build/src/database/query/create-index-base.d.ts.map +1 -1
- package/build/src/database/query/create-index-base.js +4 -1
- package/build/src/database/query/create-table-base.d.ts +2 -0
- package/build/src/database/query/create-table-base.d.ts.map +1 -1
- package/build/src/database/query/create-table-base.js +3 -1
- package/build/src/database/query/delete-base.d.ts +3 -2
- package/build/src/database/query/delete-base.d.ts.map +1 -1
- package/build/src/database/query/delete-base.js +3 -2
- package/build/src/database/query/drop-database-base.d.ts +5 -0
- package/build/src/database/query/drop-database-base.d.ts.map +1 -1
- package/build/src/database/query/drop-database-base.js +4 -1
- package/build/src/database/query/drop-table-base.d.ts +1 -0
- package/build/src/database/query/drop-table-base.d.ts.map +1 -1
- package/build/src/database/query/drop-table-base.js +3 -1
- package/build/src/database/query/from-base.d.ts +6 -1
- package/build/src/database/query/from-base.d.ts.map +1 -1
- package/build/src/database/query/from-base.js +7 -2
- package/build/src/database/query/from-plain.d.ts +1 -0
- package/build/src/database/query/from-plain.d.ts.map +1 -1
- package/build/src/database/query/from-plain.js +2 -1
- package/build/src/database/query/from-table.d.ts +1 -0
- package/build/src/database/query/from-table.d.ts.map +1 -1
- package/build/src/database/query/from-table.js +2 -1
- package/build/src/database/query/index.d.ts +72 -12
- package/build/src/database/query/index.d.ts.map +1 -1
- package/build/src/database/query/index.js +79 -19
- package/build/src/database/query/insert-base.d.ts +13 -8
- package/build/src/database/query/insert-base.d.ts.map +1 -1
- package/build/src/database/query/insert-base.js +10 -5
- package/build/src/database/query/join-base.d.ts +4 -0
- package/build/src/database/query/join-base.d.ts.map +1 -1
- package/build/src/database/query/join-base.js +5 -1
- package/build/src/database/query/join-object.d.ts +11 -0
- package/build/src/database/query/join-object.d.ts.map +1 -1
- package/build/src/database/query/join-object.js +15 -4
- package/build/src/database/query/join-plain.d.ts +1 -0
- package/build/src/database/query/join-plain.d.ts.map +1 -1
- package/build/src/database/query/join-plain.js +2 -1
- package/build/src/database/query/join-tracker.d.ts +7 -0
- package/build/src/database/query/join-tracker.d.ts.map +1 -1
- package/build/src/database/query/join-tracker.js +8 -1
- package/build/src/database/query/model-class-query.d.ts +92 -26
- package/build/src/database/query/model-class-query.d.ts.map +1 -1
- package/build/src/database/query/model-class-query.js +230 -76
- package/build/src/database/query/order-base.d.ts +3 -0
- package/build/src/database/query/order-base.d.ts.map +1 -1
- package/build/src/database/query/order-base.js +4 -1
- package/build/src/database/query/order-column.d.ts +9 -1
- package/build/src/database/query/order-column.d.ts.map +1 -1
- package/build/src/database/query/order-column.js +10 -2
- package/build/src/database/query/order-plain.d.ts +1 -0
- package/build/src/database/query/order-plain.d.ts.map +1 -1
- package/build/src/database/query/order-plain.js +2 -1
- package/build/src/database/query/preloader/belongs-to.d.ts +1 -0
- package/build/src/database/query/preloader/belongs-to.d.ts.map +1 -1
- package/build/src/database/query/preloader/belongs-to.js +68 -23
- package/build/src/database/query/preloader/ensure-model-class-initialized.d.ts +1 -0
- package/build/src/database/query/preloader/ensure-model-class-initialized.d.ts.map +1 -1
- package/build/src/database/query/preloader/ensure-model-class-initialized.js +2 -1
- package/build/src/database/query/preloader/has-many.d.ts +5 -3
- package/build/src/database/query/preloader/has-many.d.ts.map +1 -1
- package/build/src/database/query/preloader/has-many.js +66 -24
- package/build/src/database/query/preloader/has-one.d.ts +1 -0
- package/build/src/database/query/preloader/has-one.d.ts.map +1 -1
- package/build/src/database/query/preloader/has-one.js +26 -9
- package/build/src/database/query/preloader/selection.d.ts +7 -1
- package/build/src/database/query/preloader/selection.d.ts.map +1 -1
- package/build/src/database/query/preloader/selection.js +13 -5
- package/build/src/database/query/preloader.d.ts +1 -0
- package/build/src/database/query/preloader.d.ts.map +1 -1
- package/build/src/database/query/preloader.js +28 -9
- package/build/src/database/query/query-data.d.ts +21 -7
- package/build/src/database/query/query-data.d.ts.map +1 -1
- package/build/src/database/query/query-data.js +37 -18
- package/build/src/database/query/select-base.d.ts +3 -0
- package/build/src/database/query/select-base.d.ts.map +1 -1
- package/build/src/database/query/select-base.js +4 -1
- package/build/src/database/query/select-plain.d.ts +1 -0
- package/build/src/database/query/select-plain.d.ts.map +1 -1
- package/build/src/database/query/select-plain.js +2 -1
- package/build/src/database/query/select-table-and-column.d.ts +1 -0
- package/build/src/database/query/select-table-and-column.d.ts.map +1 -1
- package/build/src/database/query/select-table-and-column.js +2 -1
- package/build/src/database/query/update-base.d.ts +9 -6
- package/build/src/database/query/update-base.d.ts.map +1 -1
- package/build/src/database/query/update-base.js +7 -4
- package/build/src/database/query/upsert-base.d.ts +13 -4
- package/build/src/database/query/upsert-base.d.ts.map +1 -1
- package/build/src/database/query/upsert-base.js +12 -3
- package/build/src/database/query/where-base.d.ts +4 -0
- package/build/src/database/query/where-base.d.ts.map +1 -1
- package/build/src/database/query/where-base.js +5 -1
- package/build/src/database/query/where-combinator.d.ts +1 -0
- package/build/src/database/query/where-combinator.d.ts.map +1 -1
- package/build/src/database/query/where-combinator.js +6 -2
- package/build/src/database/query/where-hash.d.ts +6 -0
- package/build/src/database/query/where-hash.d.ts.map +1 -1
- package/build/src/database/query/where-hash.js +5 -1
- package/build/src/database/query/where-model-class-hash.d.ts +30 -16
- package/build/src/database/query/where-model-class-hash.d.ts.map +1 -1
- package/build/src/database/query/where-model-class-hash.js +55 -20
- package/build/src/database/query/where-not.d.ts +1 -0
- package/build/src/database/query/where-not.d.ts.map +1 -1
- package/build/src/database/query/where-not.js +3 -1
- package/build/src/database/query/where-plain.d.ts +1 -0
- package/build/src/database/query/where-plain.d.ts.map +1 -1
- package/build/src/database/query/where-plain.js +2 -1
- package/build/src/database/query/with-count.d.ts +11 -5
- package/build/src/database/query/with-count.d.ts.map +1 -1
- package/build/src/database/query/with-count.js +36 -15
- package/build/src/database/query-parser/base-query-parser.d.ts +1 -0
- package/build/src/database/query-parser/base-query-parser.d.ts.map +1 -1
- package/build/src/database/query-parser/base-query-parser.js +2 -1
- package/build/src/database/query-parser/from-parser.d.ts +5 -1
- package/build/src/database/query-parser/from-parser.d.ts.map +1 -1
- package/build/src/database/query-parser/from-parser.js +6 -2
- package/build/src/database/query-parser/group-parser.d.ts +2 -0
- package/build/src/database/query-parser/group-parser.d.ts.map +1 -1
- package/build/src/database/query-parser/group-parser.js +3 -1
- package/build/src/database/query-parser/joins-parser.d.ts +1 -0
- package/build/src/database/query-parser/joins-parser.d.ts.map +1 -1
- package/build/src/database/query-parser/joins-parser.js +2 -1
- package/build/src/database/query-parser/limit-parser.d.ts +1 -0
- package/build/src/database/query-parser/limit-parser.d.ts.map +1 -1
- package/build/src/database/query-parser/limit-parser.js +2 -1
- package/build/src/database/query-parser/options.d.ts +15 -4
- package/build/src/database/query-parser/options.d.ts.map +1 -1
- package/build/src/database/query-parser/options.js +11 -3
- package/build/src/database/query-parser/order-parser.d.ts +1 -0
- package/build/src/database/query-parser/order-parser.d.ts.map +1 -1
- package/build/src/database/query-parser/order-parser.js +2 -1
- package/build/src/database/query-parser/select-parser.d.ts +1 -0
- package/build/src/database/query-parser/select-parser.d.ts.map +1 -1
- package/build/src/database/query-parser/select-parser.js +2 -1
- package/build/src/database/query-parser/where-parser.d.ts +1 -0
- package/build/src/database/query-parser/where-parser.d.ts.map +1 -1
- package/build/src/database/query-parser/where-parser.js +2 -1
- package/build/src/database/record/acts-as-list.d.ts +0 -1
- package/build/src/database/record/acts-as-list.d.ts.map +1 -1
- package/build/src/database/record/acts-as-list.js +89 -45
- package/build/src/database/record/attachments/download.d.ts +34 -15
- package/build/src/database/record/attachments/download.d.ts.map +1 -1
- package/build/src/database/record/attachments/download.js +34 -22
- package/build/src/database/record/attachments/handle.d.ts +17 -5
- package/build/src/database/record/attachments/handle.d.ts.map +1 -1
- package/build/src/database/record/attachments/handle.js +25 -9
- package/build/src/database/record/attachments/normalize-input.d.ts +6 -1
- package/build/src/database/record/attachments/normalize-input.d.ts.map +1 -1
- package/build/src/database/record/attachments/normalize-input.js +54 -17
- package/build/src/database/record/attachments/storage-drivers/filesystem.d.ts +7 -1
- package/build/src/database/record/attachments/storage-drivers/filesystem.d.ts.map +1 -1
- package/build/src/database/record/attachments/storage-drivers/filesystem.js +10 -2
- package/build/src/database/record/attachments/storage-drivers/native.d.ts +12 -7
- package/build/src/database/record/attachments/storage-drivers/native.d.ts.map +1 -1
- package/build/src/database/record/attachments/storage-drivers/native.js +13 -6
- package/build/src/database/record/attachments/storage-drivers/s3.d.ts +18 -9
- package/build/src/database/record/attachments/storage-drivers/s3.d.ts.map +1 -1
- package/build/src/database/record/attachments/storage-drivers/s3.js +38 -13
- package/build/src/database/record/attachments/store.d.ts +48 -25
- package/build/src/database/record/attachments/store.d.ts.map +1 -1
- package/build/src/database/record/attachments/store.js +63 -25
- package/build/src/database/record/index.d.ts +394 -146
- package/build/src/database/record/index.d.ts.map +1 -1
- package/build/src/database/record/index.js +697 -248
- package/build/src/database/record/instance-relationships/base.d.ts +78 -19
- package/build/src/database/record/instance-relationships/base.d.ts.map +1 -1
- package/build/src/database/record/instance-relationships/base.js +98 -26
- package/build/src/database/record/instance-relationships/belongs-to.d.ts +1 -0
- package/build/src/database/record/instance-relationships/belongs-to.d.ts.map +1 -1
- package/build/src/database/record/instance-relationships/belongs-to.js +13 -5
- package/build/src/database/record/instance-relationships/has-many.d.ts +27 -7
- package/build/src/database/record/instance-relationships/has-many.d.ts.map +1 -1
- package/build/src/database/record/instance-relationships/has-many.js +50 -16
- package/build/src/database/record/instance-relationships/has-one.d.ts +4 -1
- package/build/src/database/record/instance-relationships/has-one.d.ts.map +1 -1
- package/build/src/database/record/instance-relationships/has-one.js +28 -10
- package/build/src/database/record/relationships/base.d.ts +61 -14
- package/build/src/database/record/relationships/base.d.ts.map +1 -1
- package/build/src/database/record/relationships/base.js +60 -15
- package/build/src/database/record/relationships/belongs-to.d.ts.map +1 -1
- package/build/src/database/record/relationships/belongs-to.js +9 -3
- package/build/src/database/record/relationships/has-many.d.ts.map +1 -1
- package/build/src/database/record/relationships/has-many.js +9 -3
- package/build/src/database/record/relationships/has-one.d.ts.map +1 -1
- package/build/src/database/record/relationships/has-one.js +9 -3
- package/build/src/database/record/state-machine.d.ts +9 -1
- package/build/src/database/record/state-machine.d.ts.map +1 -1
- package/build/src/database/record/state-machine.js +35 -14
- package/build/src/database/record/user-module.d.ts +2 -0
- package/build/src/database/record/user-module.d.ts.map +1 -1
- package/build/src/database/record/user-module.js +3 -1
- package/build/src/database/record/validators/base.d.ts +4 -2
- package/build/src/database/record/validators/base.d.ts.map +1 -1
- package/build/src/database/record/validators/base.js +4 -2
- package/build/src/database/record/validators/format.d.ts.map +1 -1
- package/build/src/database/record/validators/format.js +2 -1
- package/build/src/database/record/validators/presence.d.ts.map +1 -1
- package/build/src/database/record/validators/presence.js +5 -2
- package/build/src/database/record/validators/uniqueness.d.ts +0 -2
- package/build/src/database/record/validators/uniqueness.d.ts.map +1 -1
- package/build/src/database/record/validators/uniqueness.js +18 -8
- package/build/src/database/table-data/index.d.ts +40 -4
- package/build/src/database/table-data/index.d.ts.map +1 -1
- package/build/src/database/table-data/index.js +38 -5
- package/build/src/database/table-data/table-column.d.ts +43 -5
- package/build/src/database/table-data/table-column.d.ts.map +1 -1
- package/build/src/database/table-data/table-column.js +37 -4
- package/build/src/database/table-data/table-foreign-key.d.ts +8 -0
- package/build/src/database/table-data/table-foreign-key.d.ts.map +1 -1
- package/build/src/database/table-data/table-foreign-key.js +9 -1
- package/build/src/database/table-data/table-index.d.ts +8 -0
- package/build/src/database/table-data/table-index.d.ts.map +1 -1
- package/build/src/database/table-data/table-index.js +6 -1
- package/build/src/database/table-data/table-reference.d.ts +1 -0
- package/build/src/database/table-data/table-reference.d.ts.map +1 -1
- package/build/src/database/table-data/table-reference.js +2 -1
- package/build/src/database/use-database.d.ts +1 -0
- package/build/src/database/use-database.d.ts.map +1 -1
- package/build/src/database/use-database.js +2 -1
- package/build/src/environment-handlers/base.d.ts +94 -36
- package/build/src/environment-handlers/base.d.ts.map +1 -1
- package/build/src/environment-handlers/base.js +90 -36
- package/build/src/environment-handlers/browser.d.ts +33 -3
- package/build/src/environment-handlers/browser.d.ts.map +1 -1
- package/build/src/environment-handlers/browser.js +36 -9
- package/build/src/environment-handlers/node/cli/commands/cli-command-context.d.ts +5 -0
- package/build/src/environment-handlers/node/cli/commands/cli-command-context.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/cli-command-context.js +6 -2
- package/build/src/environment-handlers/node/cli/commands/console.d.ts +3 -2
- package/build/src/environment-handlers/node/cli/commands/console.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/console.js +23 -9
- package/build/src/environment-handlers/node/cli/commands/db/schema/dump.d.ts +4 -1
- package/build/src/environment-handlers/node/cli/commands/db/schema/dump.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/db/schema/dump.js +5 -2
- package/build/src/environment-handlers/node/cli/commands/db/schema/load.d.ts +6 -2
- package/build/src/environment-handlers/node/cli/commands/db/schema/load.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/db/schema/load.js +11 -5
- package/build/src/environment-handlers/node/cli/commands/db/seed.d.ts +15 -5
- package/build/src/environment-handlers/node/cli/commands/db/seed.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/db/seed.js +20 -6
- package/build/src/environment-handlers/node/cli/commands/destroy/migration.d.ts +5 -0
- package/build/src/environment-handlers/node/cli/commands/destroy/migration.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/destroy/migration.js +3 -1
- package/build/src/environment-handlers/node/cli/commands/generate/base-models.d.ts +2 -0
- package/build/src/environment-handlers/node/cli/commands/generate/base-models.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/generate/base-models.js +6 -4
- package/build/src/environment-handlers/node/cli/commands/generate/frontend-models.d.ts +43 -29
- package/build/src/environment-handlers/node/cli/commands/generate/frontend-models.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/generate/frontend-models.js +99 -40
- package/build/src/environment-handlers/node/cli/commands/generate/migration.d.ts +5 -0
- package/build/src/environment-handlers/node/cli/commands/generate/migration.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/generate/migration.js +3 -1
- package/build/src/environment-handlers/node/cli/commands/generate/model.d.ts +5 -0
- package/build/src/environment-handlers/node/cli/commands/generate/model.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/generate/model.js +3 -1
- package/build/src/environment-handlers/node/cli/commands/init.d.ts +5 -0
- package/build/src/environment-handlers/node/cli/commands/init.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/init.js +3 -1
- package/build/src/environment-handlers/node/cli/commands/routes.d.ts +3 -0
- package/build/src/environment-handlers/node/cli/commands/routes.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/routes.js +4 -1
- package/build/src/environment-handlers/node/cli/commands/run-script.d.ts +15 -5
- package/build/src/environment-handlers/node/cli/commands/run-script.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/run-script.js +20 -6
- package/build/src/environment-handlers/node/cli/commands/runner.d.ts +18 -6
- package/build/src/environment-handlers/node/cli/commands/runner.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/runner.js +20 -6
- package/build/src/environment-handlers/node/cli/commands/server.d.ts +13 -1
- package/build/src/environment-handlers/node/cli/commands/server.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/server.js +23 -6
- package/build/src/environment-handlers/node.d.ts +14 -2
- package/build/src/environment-handlers/node.d.ts.map +1 -1
- package/build/src/environment-handlers/node.js +107 -39
- package/build/src/error-logger.d.ts +4 -3
- package/build/src/error-logger.d.ts.map +1 -1
- package/build/src/error-logger.js +4 -3
- package/build/src/frontend-model-controller.d.ts +239 -90
- package/build/src/frontend-model-controller.d.ts.map +1 -1
- package/build/src/frontend-model-controller.js +577 -787
- package/build/src/frontend-model-resource/base-resource.d.ts +118 -66
- package/build/src/frontend-model-resource/base-resource.d.ts.map +1 -1
- package/build/src/frontend-model-resource/base-resource.js +205 -82
- package/build/src/frontend-models/base.d.ts +319 -163
- package/build/src/frontend-models/base.d.ts.map +1 -1
- package/build/src/frontend-models/base.js +717 -366
- package/build/src/frontend-models/clear-pending-debounced-callback.d.ts +2 -1
- package/build/src/frontend-models/clear-pending-debounced-callback.d.ts.map +1 -1
- package/build/src/frontend-models/clear-pending-debounced-callback.js +6 -3
- package/build/src/frontend-models/event-hook-models.d.ts +5 -0
- package/build/src/frontend-models/event-hook-models.d.ts.map +1 -1
- package/build/src/frontend-models/event-hook-models.js +10 -3
- package/build/src/frontend-models/model-registry.d.ts +5 -5
- package/build/src/frontend-models/model-registry.d.ts.map +1 -1
- package/build/src/frontend-models/model-registry.js +5 -5
- package/build/src/frontend-models/outgoing-event-buffer.d.ts +11 -3
- package/build/src/frontend-models/outgoing-event-buffer.d.ts.map +1 -1
- package/build/src/frontend-models/outgoing-event-buffer.js +13 -5
- package/build/src/frontend-models/preloader.d.ts +9 -6
- package/build/src/frontend-models/preloader.d.ts.map +1 -1
- package/build/src/frontend-models/preloader.js +21 -9
- package/build/src/frontend-models/query.d.ts +283 -73
- package/build/src/frontend-models/query.d.ts.map +1 -1
- package/build/src/frontend-models/query.js +331 -203
- package/build/src/frontend-models/resource-config-validation.d.ts +2 -0
- package/build/src/frontend-models/resource-config-validation.d.ts.map +1 -1
- package/build/src/frontend-models/resource-config-validation.js +3 -1
- package/build/src/frontend-models/resource-definition.d.ts +12 -5
- package/build/src/frontend-models/resource-definition.d.ts.map +1 -1
- package/build/src/frontend-models/resource-definition.js +39 -13
- package/build/src/frontend-models/transport-serialization.d.ts +14 -11
- package/build/src/frontend-models/transport-serialization.d.ts.map +1 -1
- package/build/src/frontend-models/transport-serialization.js +80 -53
- package/build/src/frontend-models/use-destroyed-event.d.ts +21 -0
- package/build/src/frontend-models/use-destroyed-event.d.ts.map +1 -1
- package/build/src/frontend-models/use-destroyed-event.js +34 -11
- package/build/src/frontend-models/use-model-class-event.d.ts +24 -0
- package/build/src/frontend-models/use-model-class-event.d.ts.map +1 -1
- package/build/src/frontend-models/use-model-class-event.js +39 -12
- package/build/src/frontend-models/use-updated-event.d.ts +21 -0
- package/build/src/frontend-models/use-updated-event.d.ts.map +1 -1
- package/build/src/frontend-models/use-updated-event.js +37 -12
- package/build/src/frontend-models/websocket-channel.d.ts +51 -9
- package/build/src/frontend-models/websocket-channel.d.ts.map +1 -1
- package/build/src/frontend-models/websocket-channel.js +96 -26
- package/build/src/frontend-models/websocket-publishers.d.ts +2 -0
- package/build/src/frontend-models/websocket-publishers.d.ts.map +1 -1
- package/build/src/frontend-models/websocket-publishers.js +33 -11
- package/build/src/http-client/header.d.ts +1 -0
- package/build/src/http-client/header.d.ts.map +1 -1
- package/build/src/http-client/header.js +2 -1
- package/build/src/http-client/index.d.ts +4 -0
- package/build/src/http-client/index.d.ts.map +1 -1
- package/build/src/http-client/index.js +5 -1
- package/build/src/http-client/request.d.ts +5 -0
- package/build/src/http-client/request.d.ts.map +1 -1
- package/build/src/http-client/request.js +6 -1
- package/build/src/http-client/response.d.ts +14 -4
- package/build/src/http-client/response.d.ts.map +1 -1
- package/build/src/http-client/response.js +14 -4
- package/build/src/http-client/websocket-client.d.ts +1 -0
- package/build/src/http-client/websocket-client.d.ts.map +1 -1
- package/build/src/http-client/websocket-client.js +2 -1
- package/build/src/http-server/client/index.d.ts +16 -2
- package/build/src/http-server/client/index.d.ts.map +1 -1
- package/build/src/http-server/client/index.js +44 -13
- package/build/src/http-server/client/params-to-object.d.ts +16 -10
- package/build/src/http-server/client/params-to-object.d.ts.map +1 -1
- package/build/src/http-server/client/params-to-object.js +46 -17
- package/build/src/http-server/client/request-buffer/form-data-part.d.ts +10 -6
- package/build/src/http-server/client/request-buffer/form-data-part.d.ts.map +1 -1
- package/build/src/http-server/client/request-buffer/form-data-part.js +11 -7
- package/build/src/http-server/client/request-buffer/header.d.ts +1 -0
- package/build/src/http-server/client/request-buffer/header.d.ts.map +1 -1
- package/build/src/http-server/client/request-buffer/header.js +2 -1
- package/build/src/http-server/client/request-buffer/index.d.ts +29 -4
- package/build/src/http-server/client/request-buffer/index.d.ts.map +1 -1
- package/build/src/http-server/client/request-buffer/index.js +43 -9
- package/build/src/http-server/client/request-parser.d.ts +52 -13
- package/build/src/http-server/client/request-parser.d.ts.map +1 -1
- package/build/src/http-server/client/request-parser.js +58 -15
- package/build/src/http-server/client/request-runner.d.ts +5 -1
- package/build/src/http-server/client/request-runner.d.ts.map +1 -1
- package/build/src/http-server/client/request-runner.js +32 -8
- package/build/src/http-server/client/request-timing.d.ts +37 -7
- package/build/src/http-server/client/request-timing.d.ts.map +1 -1
- package/build/src/http-server/client/request-timing.js +32 -8
- package/build/src/http-server/client/request.d.ts +15 -5
- package/build/src/http-server/client/request.d.ts.map +1 -1
- package/build/src/http-server/client/request.js +17 -5
- package/build/src/http-server/client/response.d.ts +22 -4
- package/build/src/http-server/client/response.d.ts.map +1 -1
- package/build/src/http-server/client/response.js +29 -7
- package/build/src/http-server/client/uploaded-file/memory-uploaded-file.d.ts +1 -0
- package/build/src/http-server/client/uploaded-file/memory-uploaded-file.d.ts.map +1 -1
- package/build/src/http-server/client/uploaded-file/memory-uploaded-file.js +3 -1
- package/build/src/http-server/client/uploaded-file/temporary-uploaded-file.d.ts +1 -0
- package/build/src/http-server/client/uploaded-file/temporary-uploaded-file.d.ts.map +1 -1
- package/build/src/http-server/client/uploaded-file/temporary-uploaded-file.js +3 -1
- package/build/src/http-server/client/uploaded-file/uploaded-file.d.ts +2 -0
- package/build/src/http-server/client/uploaded-file/uploaded-file.d.ts.map +1 -1
- package/build/src/http-server/client/uploaded-file/uploaded-file.js +3 -1
- package/build/src/http-server/client/websocket-request.d.ts +24 -12
- package/build/src/http-server/client/websocket-request.d.ts.map +1 -1
- package/build/src/http-server/client/websocket-request.js +24 -10
- package/build/src/http-server/client/websocket-session.d.ts +101 -62
- package/build/src/http-server/client/websocket-session.d.ts.map +1 -1
- package/build/src/http-server/client/websocket-session.js +118 -61
- package/build/src/http-server/cookie.d.ts +36 -8
- package/build/src/http-server/cookie.d.ts.map +1 -1
- package/build/src/http-server/cookie.js +37 -9
- package/build/src/http-server/development-reloader.d.ts +32 -7
- package/build/src/http-server/development-reloader.d.ts.map +1 -1
- package/build/src/http-server/development-reloader.js +39 -10
- package/build/src/http-server/index.d.ts +102 -25
- package/build/src/http-server/index.d.ts.map +1 -1
- package/build/src/http-server/index.js +117 -32
- package/build/src/http-server/remote-address.d.ts +1 -0
- package/build/src/http-server/remote-address.d.ts.map +1 -1
- package/build/src/http-server/remote-address.js +15 -4
- package/build/src/http-server/server-client.d.ts +37 -8
- package/build/src/http-server/server-client.d.ts.map +1 -1
- package/build/src/http-server/server-client.js +48 -12
- package/build/src/http-server/server-lock.d.ts +76 -0
- package/build/src/http-server/server-lock.d.ts.map +1 -0
- package/build/src/http-server/server-lock.js +164 -0
- package/build/src/http-server/websocket-channel-subscribers.d.ts +13 -8
- package/build/src/http-server/websocket-channel-subscribers.d.ts.map +1 -1
- package/build/src/http-server/websocket-channel-subscribers.js +16 -7
- package/build/src/http-server/websocket-channel.d.ts +13 -11
- package/build/src/http-server/websocket-channel.d.ts.map +1 -1
- package/build/src/http-server/websocket-channel.js +8 -12
- package/build/src/http-server/websocket-connection.d.ts +10 -14
- package/build/src/http-server/websocket-connection.d.ts.map +1 -1
- package/build/src/http-server/websocket-connection.js +8 -12
- package/build/src/http-server/websocket-event-log-store.d.ts +48 -10
- package/build/src/http-server/websocket-event-log-store.d.ts.map +1 -1
- package/build/src/http-server/websocket-event-log-store.js +76 -34
- package/build/src/http-server/websocket-events-host.d.ts +21 -15
- package/build/src/http-server/websocket-events-host.d.ts.map +1 -1
- package/build/src/http-server/websocket-events-host.js +20 -11
- package/build/src/http-server/websocket-events.d.ts +8 -7
- package/build/src/http-server/websocket-events.d.ts.map +1 -1
- package/build/src/http-server/websocket-events.js +6 -5
- package/build/src/http-server/worker-handler/channel-subscriber-dispatch.d.ts +3 -2
- package/build/src/http-server/worker-handler/channel-subscriber-dispatch.d.ts.map +1 -1
- package/build/src/http-server/worker-handler/channel-subscriber-dispatch.js +3 -2
- package/build/src/http-server/worker-handler/in-process.d.ts +18 -18
- package/build/src/http-server/worker-handler/in-process.d.ts.map +1 -1
- package/build/src/http-server/worker-handler/in-process.js +28 -20
- package/build/src/http-server/worker-handler/index.d.ts +39 -20
- package/build/src/http-server/worker-handler/index.d.ts.map +1 -1
- package/build/src/http-server/worker-handler/index.js +34 -14
- package/build/src/http-server/worker-handler/worker-thread.d.ts +31 -15
- package/build/src/http-server/worker-handler/worker-thread.d.ts.map +1 -1
- package/build/src/http-server/worker-handler/worker-thread.js +31 -12
- package/build/src/initializer.d.ts +4 -0
- package/build/src/initializer.d.ts.map +1 -1
- package/build/src/initializer.js +5 -1
- package/build/src/jobs/mail-delivery.d.ts +1 -0
- package/build/src/jobs/mail-delivery.d.ts.map +1 -1
- package/build/src/jobs/mail-delivery.js +2 -1
- package/build/src/logger/base-logger.js +2 -2
- package/build/src/logger/console-logger.d.ts +2 -0
- package/build/src/logger/console-logger.d.ts.map +1 -1
- package/build/src/logger/console-logger.js +3 -1
- package/build/src/logger/file-logger.d.ts +2 -0
- package/build/src/logger/file-logger.d.ts.map +1 -1
- package/build/src/logger/file-logger.js +3 -1
- package/build/src/logger/outputs/array-output.d.ts +21 -5
- package/build/src/logger/outputs/array-output.d.ts.map +1 -1
- package/build/src/logger/outputs/array-output.js +19 -6
- package/build/src/logger/outputs/console-output.d.ts +10 -2
- package/build/src/logger/outputs/console-output.d.ts.map +1 -1
- package/build/src/logger/outputs/console-output.js +8 -3
- package/build/src/logger/outputs/file-output.d.ts +20 -5
- package/build/src/logger/outputs/file-output.d.ts.map +1 -1
- package/build/src/logger/outputs/file-output.js +18 -6
- package/build/src/logger/outputs/stdout-output.d.ts +7 -1
- package/build/src/logger/outputs/stdout-output.d.ts.map +1 -1
- package/build/src/logger/outputs/stdout-output.js +9 -3
- package/build/src/logger.d.ts +28 -13
- package/build/src/logger.d.ts.map +1 -1
- package/build/src/logger.js +60 -23
- package/build/src/mailer/backends/smtp.d.ts +5 -0
- package/build/src/mailer/backends/smtp.d.ts.map +1 -1
- package/build/src/mailer/backends/smtp.js +17 -4
- package/build/src/mailer/base.d.ts +33 -17
- package/build/src/mailer/base.d.ts.map +1 -1
- package/build/src/mailer/base.js +54 -18
- package/build/src/mailer/delivery.d.ts +16 -5
- package/build/src/mailer/delivery.d.ts.map +1 -1
- package/build/src/mailer/delivery.js +18 -7
- package/build/src/mailer/index.d.ts +5 -5
- package/build/src/mailer/index.d.ts.map +1 -1
- package/build/src/mailer/index.js +2 -2
- package/build/src/mailer.d.ts +5 -5
- package/build/src/mailer.d.ts.map +1 -1
- package/build/src/mailer.js +2 -2
- package/build/src/plugins/sqljs-wasm-route-controller.d.ts +4 -1
- package/build/src/plugins/sqljs-wasm-route-controller.d.ts.map +1 -1
- package/build/src/plugins/sqljs-wasm-route-controller.js +11 -4
- package/build/src/plugins/sqljs-wasm-route.d.ts +6 -0
- package/build/src/plugins/sqljs-wasm-route.d.ts.map +1 -1
- package/build/src/plugins/sqljs-wasm-route.js +4 -1
- package/build/src/record-payload-values.d.ts +54 -0
- package/build/src/record-payload-values.d.ts.map +1 -0
- package/build/src/record-payload-values.js +80 -0
- package/build/src/routes/app-routes.d.ts +1 -0
- package/build/src/routes/app-routes.d.ts.map +1 -1
- package/build/src/routes/app-routes.js +2 -1
- package/build/src/routes/base-route.d.ts +52 -16
- package/build/src/routes/base-route.d.ts.map +1 -1
- package/build/src/routes/base-route.js +50 -14
- package/build/src/routes/basic-route.d.ts +1 -0
- package/build/src/routes/basic-route.d.ts.map +1 -1
- package/build/src/routes/basic-route.js +13 -4
- package/build/src/routes/built-in/debug/controller.d.ts +4 -1
- package/build/src/routes/built-in/debug/controller.d.ts.map +1 -1
- package/build/src/routes/built-in/debug/controller.js +5 -2
- package/build/src/routes/get-route.d.ts +1 -0
- package/build/src/routes/get-route.d.ts.map +1 -1
- package/build/src/routes/get-route.js +7 -4
- package/build/src/routes/hooks/frontend-model-command-route-hook.d.ts +1 -0
- package/build/src/routes/hooks/frontend-model-command-route-hook.d.ts.map +1 -1
- package/build/src/routes/hooks/frontend-model-command-route-hook.js +6 -2
- package/build/src/routes/index.d.ts +3 -2
- package/build/src/routes/index.d.ts.map +1 -1
- package/build/src/routes/index.js +10 -4
- package/build/src/routes/namespace-route.d.ts +1 -0
- package/build/src/routes/namespace-route.d.ts.map +1 -1
- package/build/src/routes/namespace-route.js +5 -3
- package/build/src/routes/plugin-routes.d.ts +10 -1
- package/build/src/routes/plugin-routes.d.ts.map +1 -1
- package/build/src/routes/plugin-routes.js +11 -3
- package/build/src/routes/post-route.d.ts +1 -0
- package/build/src/routes/post-route.d.ts.map +1 -1
- package/build/src/routes/post-route.js +7 -4
- package/build/src/routes/resolver.d.ts +20 -5
- package/build/src/routes/resolver.d.ts.map +1 -1
- package/build/src/routes/resolver.js +47 -14
- package/build/src/routes/resource-route.d.ts +6 -1
- package/build/src/routes/resource-route.d.ts.map +1 -1
- package/build/src/routes/resource-route.js +10 -4
- package/build/src/testing/base-expect.d.ts +2 -0
- package/build/src/testing/base-expect.d.ts.map +1 -1
- package/build/src/testing/base-expect.js +3 -1
- package/build/src/testing/browser-frontend-model-event-hook-scenarios.d.ts +33 -5
- package/build/src/testing/browser-frontend-model-event-hook-scenarios.d.ts.map +1 -1
- package/build/src/testing/browser-frontend-model-event-hook-scenarios.js +95 -23
- package/build/src/testing/expect-to-change.d.ts +3 -0
- package/build/src/testing/expect-to-change.d.ts.map +1 -1
- package/build/src/testing/expect-to-change.js +4 -1
- package/build/src/testing/expect-utils.d.ts +22 -16
- package/build/src/testing/expect-utils.d.ts.map +1 -1
- package/build/src/testing/expect-utils.js +62 -30
- package/build/src/testing/expect.d.ts +50 -21
- package/build/src/testing/expect.d.ts.map +1 -1
- package/build/src/testing/expect.js +58 -17
- package/build/src/testing/request-client.d.ts +16 -3
- package/build/src/testing/request-client.d.ts.map +1 -1
- package/build/src/testing/request-client.js +17 -4
- package/build/src/testing/test-files-finder.d.ts +41 -9
- package/build/src/testing/test-files-finder.d.ts.map +1 -1
- package/build/src/testing/test-files-finder.js +42 -10
- package/build/src/testing/test-filter-parser.d.ts +6 -0
- package/build/src/testing/test-filter-parser.d.ts.map +1 -1
- package/build/src/testing/test-filter-parser.js +12 -3
- package/build/src/testing/test-runner.d.ts +102 -6
- package/build/src/testing/test-runner.d.ts.map +1 -1
- package/build/src/testing/test-runner.js +115 -23
- package/build/src/testing/test-suite-splitter.d.ts +7 -0
- package/build/src/testing/test-suite-splitter.d.ts.map +1 -1
- package/build/src/testing/test-suite-splitter.js +7 -2
- package/build/src/testing/test.d.ts +20 -4
- package/build/src/testing/test.d.ts.map +1 -1
- package/build/src/testing/test.js +67 -20
- package/build/src/utils/backtrace-cleaner-node.d.ts.map +1 -1
- package/build/src/utils/backtrace-cleaner-node.js +6 -1
- package/build/src/utils/backtrace-cleaner.d.ts +16 -1
- package/build/src/utils/backtrace-cleaner.d.ts.map +1 -1
- package/build/src/utils/backtrace-cleaner.js +20 -2
- package/build/src/utils/ensure-error.d.ts +3 -2
- package/build/src/utils/ensure-error.d.ts.map +1 -1
- package/build/src/utils/ensure-error.js +3 -2
- package/build/src/utils/event-emitter.d.ts.map +1 -1
- package/build/src/utils/event-emitter.js +2 -2
- package/build/src/utils/file-exists.d.ts +1 -0
- package/build/src/utils/file-exists.d.ts.map +1 -1
- package/build/src/utils/file-exists.js +2 -1
- package/build/src/utils/format-value.d.ts +5 -4
- package/build/src/utils/format-value.d.ts.map +1 -1
- package/build/src/utils/format-value.js +12 -7
- package/build/src/utils/model-scope.d.ts +18 -12
- package/build/src/utils/model-scope.d.ts.map +1 -1
- package/build/src/utils/model-scope.js +19 -11
- package/build/src/utils/nest-callbacks.d.ts +1 -0
- package/build/src/utils/nest-callbacks.d.ts.map +1 -1
- package/build/src/utils/nest-callbacks.js +2 -1
- package/build/src/utils/plain-object.d.ts +7 -0
- package/build/src/utils/plain-object.d.ts.map +1 -0
- package/build/src/utils/plain-object.js +13 -0
- package/build/src/utils/ransack.d.ts +29 -5
- package/build/src/utils/ransack.d.ts.map +1 -1
- package/build/src/utils/ransack.js +136 -49
- package/build/src/utils/rest-args-error.d.ts +1 -0
- package/build/src/utils/rest-args-error.d.ts.map +1 -1
- package/build/src/utils/rest-args-error.js +2 -1
- package/build/src/utils/singularize-model-name.d.ts +1 -0
- package/build/src/utils/singularize-model-name.d.ts.map +1 -1
- package/build/src/utils/singularize-model-name.js +2 -1
- package/build/src/utils/to-import-specifier.d.ts.map +1 -1
- package/build/src/utils/to-import-specifier.js +3 -1
- package/build/src/utils/with-tracked-stack-async-hooks.d.ts +8 -5
- package/build/src/utils/with-tracked-stack-async-hooks.d.ts.map +1 -1
- package/build/src/utils/with-tracked-stack-async-hooks.js +32 -13
- package/build/src/utils/with-tracked-stack.d.ts +9 -5
- package/build/src/utils/with-tracked-stack.d.ts.map +1 -1
- package/build/src/utils/with-tracked-stack.js +19 -8
- package/build/src/velocious-error.d.ts +4 -2
- package/build/src/velocious-error.d.ts.map +1 -1
- package/build/src/velocious-error.js +5 -3
- package/build/tsconfig.tsbuildinfo +1 -1
- 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
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* Id seq.
|
|
10
|
+
@type {number | undefined} */
|
|
8
11
|
idSeq: number | undefined;
|
|
9
|
-
/**
|
|
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
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* Narrows the runtime value to the documented type.
|
|
18
|
+
@type {Map<string, Promise<?>>} */
|
|
12
19
|
_schemaCache: Map<string, Promise<unknown>>;
|
|
13
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* Narrows the runtime value to the documented type.
|
|
22
|
+
@type {(() => void) | undefined} */
|
|
14
23
|
_schemaCacheInvalidator: (() => void) | undefined;
|
|
15
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* Narrows the runtime value to the documented type.
|
|
26
|
+
@type {string | undefined} */
|
|
16
27
|
_connectionCheckoutName: string | undefined;
|
|
17
|
-
/**
|
|
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
|
-
/**
|
|
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 {
|
|
130
|
-
* @returns {
|
|
160
|
+
* @param {?} value - Value to use.
|
|
161
|
+
* @returns {?} - The escape.
|
|
131
162
|
*/
|
|
132
|
-
escape(value:
|
|
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
|
-
*
|
|
181
|
-
* @
|
|
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
|
|
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
|
-
*
|
|
248
|
-
* @
|
|
297
|
+
* Runs convert value.
|
|
298
|
+
* @param {?} value - Value to use.
|
|
299
|
+
* @returns {?} - The convert value.
|
|
249
300
|
*/
|
|
250
|
-
_convertValue(value:
|
|
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 {
|
|
305
|
+
* @param {?} value - Value to test.
|
|
255
306
|
* @returns {boolean} - Whether to JSON-encode the value.
|
|
256
307
|
*/
|
|
257
|
-
_isJsonEncodableValue(value:
|
|
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
|
-
*
|
|
316
|
+
* Runs quote.
|
|
317
|
+
* @param {?} value - Value to use.
|
|
265
318
|
* @returns {number | string} - The quote.
|
|
266
319
|
*/
|
|
267
|
-
quote(value:
|
|
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
|
-
*
|
|
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
|
|
382
|
+
* @returns {Promise<?>} - Resolves with the transaction.
|
|
323
383
|
*/
|
|
324
|
-
transaction(callback: () => Promise<void>): Promise<
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
|
635
|
+
* @returns {Promise<?>} - Resolves with the with disabled foreign keys.
|
|
534
636
|
*/
|
|
535
|
-
withDisabledForeignKeys(callback: () => void): Promise<
|
|
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
|
|
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]:
|
|
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
|
-
|
|
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.
|