@warlock.js/cascade 4.0.162 → 4.0.164
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/cjs/context/database-data-source-context.d.ts +29 -0
- package/cjs/context/database-data-source-context.d.ts.map +1 -0
- package/cjs/context/database-data-source-context.js +28 -0
- package/cjs/context/database-data-source-context.js.map +1 -0
- package/cjs/context/database-transaction-context.d.ts +35 -0
- package/cjs/context/database-transaction-context.d.ts.map +1 -0
- package/cjs/context/database-transaction-context.js +40 -0
- package/cjs/context/database-transaction-context.js.map +1 -0
- package/cjs/contracts/database-driver.contract.d.ts +450 -0
- package/cjs/contracts/database-driver.contract.d.ts.map +1 -0
- package/cjs/contracts/database-id-generator.contract.d.ts +109 -0
- package/cjs/contracts/database-id-generator.contract.d.ts.map +1 -0
- package/cjs/contracts/database-remover.contract.d.ts +104 -0
- package/cjs/contracts/database-remover.contract.d.ts.map +1 -0
- package/cjs/contracts/database-restorer.contract.d.ts +143 -0
- package/cjs/contracts/database-restorer.contract.d.ts.map +1 -0
- package/cjs/contracts/database-writer.contract.d.ts +119 -0
- package/cjs/contracts/database-writer.contract.d.ts.map +1 -0
- package/cjs/contracts/driver-blueprint.contract.d.ts +49 -0
- package/cjs/contracts/driver-blueprint.contract.d.ts.map +1 -0
- package/cjs/contracts/index.d.ts +10 -0
- package/cjs/contracts/index.d.ts.map +1 -0
- package/cjs/contracts/migration-driver.contract.d.ts +522 -0
- package/cjs/contracts/migration-driver.contract.d.ts.map +1 -0
- package/cjs/contracts/query-builder.contract.d.ts +1609 -0
- package/cjs/contracts/query-builder.contract.d.ts.map +1 -0
- package/cjs/contracts/sync-adapter.contract.d.ts +58 -0
- package/cjs/contracts/sync-adapter.contract.d.ts.map +1 -0
- package/cjs/data-source/data-source-registry.d.ts +108 -0
- package/cjs/data-source/data-source-registry.d.ts.map +1 -0
- package/cjs/data-source/data-source-registry.js +145 -0
- package/cjs/data-source/data-source-registry.js.map +1 -0
- package/cjs/data-source/data-source.d.ts +147 -0
- package/cjs/data-source/data-source.d.ts.map +1 -0
- package/cjs/data-source/data-source.js +83 -0
- package/cjs/data-source/data-source.js.map +1 -0
- package/cjs/database-dirty-tracker.d.ts +252 -0
- package/cjs/database-dirty-tracker.d.ts.map +1 -0
- package/cjs/database-dirty-tracker.js +386 -0
- package/cjs/database-dirty-tracker.js.map +1 -0
- package/cjs/drivers/mongodb/mongodb-blueprint.d.ts +30 -0
- package/cjs/drivers/mongodb/mongodb-blueprint.d.ts.map +1 -0
- package/cjs/drivers/mongodb/mongodb-blueprint.js +51 -0
- package/cjs/drivers/mongodb/mongodb-blueprint.js.map +1 -0
- package/cjs/drivers/mongodb/mongodb-driver.d.ts +325 -0
- package/cjs/drivers/mongodb/mongodb-driver.d.ts.map +1 -0
- package/cjs/drivers/mongodb/mongodb-driver.js +838 -0
- package/cjs/drivers/mongodb/mongodb-driver.js.map +1 -0
- package/cjs/drivers/mongodb/mongodb-id-generator.d.ts +116 -0
- package/cjs/drivers/mongodb/mongodb-id-generator.d.ts.map +1 -0
- package/cjs/drivers/mongodb/mongodb-id-generator.js +149 -0
- package/cjs/drivers/mongodb/mongodb-id-generator.js.map +1 -0
- package/cjs/drivers/mongodb/mongodb-migration-driver.d.ts +317 -0
- package/cjs/drivers/mongodb/mongodb-migration-driver.d.ts.map +1 -0
- package/cjs/drivers/mongodb/mongodb-migration-driver.js +666 -0
- package/cjs/drivers/mongodb/mongodb-migration-driver.js.map +1 -0
- package/cjs/drivers/mongodb/mongodb-query-builder.d.ts +1122 -0
- package/cjs/drivers/mongodb/mongodb-query-builder.d.ts.map +1 -0
- package/cjs/drivers/mongodb/mongodb-query-builder.js +1988 -0
- package/cjs/drivers/mongodb/mongodb-query-builder.js.map +1 -0
- package/cjs/drivers/mongodb/mongodb-query-operations.d.ts +226 -0
- package/cjs/drivers/mongodb/mongodb-query-operations.d.ts.map +1 -0
- package/cjs/drivers/mongodb/mongodb-query-operations.js +270 -0
- package/cjs/drivers/mongodb/mongodb-query-operations.js.map +1 -0
- package/cjs/drivers/mongodb/mongodb-query-parser.d.ts +262 -0
- package/cjs/drivers/mongodb/mongodb-query-parser.d.ts.map +1 -0
- package/cjs/drivers/mongodb/mongodb-query-parser.js +1351 -0
- package/cjs/drivers/mongodb/mongodb-query-parser.js.map +1 -0
- package/cjs/drivers/mongodb/mongodb-sync-adapter.d.ts +79 -0
- package/cjs/drivers/mongodb/mongodb-sync-adapter.d.ts.map +1 -0
- package/cjs/drivers/mongodb/mongodb-sync-adapter.js +146 -0
- package/cjs/drivers/mongodb/mongodb-sync-adapter.js.map +1 -0
- package/cjs/drivers/mongodb/types.d.ts +43 -0
- package/cjs/drivers/mongodb/types.d.ts.map +1 -0
- package/cjs/drivers/postgres/index.d.ts +16 -0
- package/cjs/drivers/postgres/index.d.ts.map +1 -0
- package/cjs/drivers/postgres/postgres-blueprint.d.ts +64 -0
- package/cjs/drivers/postgres/postgres-blueprint.d.ts.map +1 -0
- package/cjs/drivers/postgres/postgres-blueprint.js +121 -0
- package/cjs/drivers/postgres/postgres-blueprint.js.map +1 -0
- package/cjs/drivers/postgres/postgres-dialect.d.ts +136 -0
- package/cjs/drivers/postgres/postgres-dialect.d.ts.map +1 -0
- package/cjs/drivers/postgres/postgres-dialect.js +268 -0
- package/cjs/drivers/postgres/postgres-dialect.js.map +1 -0
- package/cjs/drivers/postgres/postgres-driver.d.ts +432 -0
- package/cjs/drivers/postgres/postgres-driver.d.ts.map +1 -0
- package/cjs/drivers/postgres/postgres-driver.js +1010 -0
- package/cjs/drivers/postgres/postgres-driver.js.map +1 -0
- package/cjs/drivers/postgres/postgres-migration-driver.d.ts +397 -0
- package/cjs/drivers/postgres/postgres-migration-driver.d.ts.map +1 -0
- package/cjs/drivers/postgres/postgres-migration-driver.js +900 -0
- package/cjs/drivers/postgres/postgres-migration-driver.js.map +1 -0
- package/cjs/drivers/postgres/postgres-query-builder.d.ts +254 -0
- package/cjs/drivers/postgres/postgres-query-builder.d.ts.map +1 -0
- package/cjs/drivers/postgres/postgres-query-builder.js +933 -0
- package/cjs/drivers/postgres/postgres-query-builder.js.map +1 -0
- package/cjs/drivers/postgres/postgres-query-parser.d.ts +328 -0
- package/cjs/drivers/postgres/postgres-query-parser.d.ts.map +1 -0
- package/cjs/drivers/postgres/postgres-query-parser.js +868 -0
- package/cjs/drivers/postgres/postgres-query-parser.js.map +1 -0
- package/cjs/drivers/postgres/postgres-sql-serializer.d.ts +37 -0
- package/cjs/drivers/postgres/postgres-sql-serializer.d.ts.map +1 -0
- package/cjs/drivers/postgres/postgres-sql-serializer.js +400 -0
- package/cjs/drivers/postgres/postgres-sql-serializer.js.map +1 -0
- package/cjs/drivers/postgres/postgres-sync-adapter.d.ts +83 -0
- package/cjs/drivers/postgres/postgres-sync-adapter.d.ts.map +1 -0
- package/cjs/drivers/postgres/postgres-sync-adapter.js +197 -0
- package/cjs/drivers/postgres/postgres-sync-adapter.js.map +1 -0
- package/cjs/drivers/postgres/types.d.ts +144 -0
- package/cjs/drivers/postgres/types.d.ts.map +1 -0
- package/cjs/drivers/sql/index.d.ts +10 -0
- package/cjs/drivers/sql/index.d.ts.map +1 -0
- package/cjs/drivers/sql/sql-dialect.contract.d.ts +204 -0
- package/cjs/drivers/sql/sql-dialect.contract.d.ts.map +1 -0
- package/cjs/drivers/sql/sql-types.d.ts +202 -0
- package/cjs/drivers/sql/sql-types.d.ts.map +1 -0
- package/cjs/errors/missing-data-source.error.d.ts +22 -0
- package/cjs/errors/missing-data-source.error.d.ts.map +1 -0
- package/cjs/errors/missing-data-source.error.js +29 -0
- package/cjs/errors/missing-data-source.error.js.map +1 -0
- package/cjs/errors/transaction-rollback.error.d.ts +20 -0
- package/cjs/errors/transaction-rollback.error.d.ts.map +1 -0
- package/cjs/errors/transaction-rollback.error.js +27 -0
- package/cjs/errors/transaction-rollback.error.js.map +1 -0
- package/cjs/events/model-events.d.ts +231 -0
- package/cjs/events/model-events.d.ts.map +1 -0
- package/cjs/events/model-events.js +259 -0
- package/cjs/events/model-events.js.map +1 -0
- package/cjs/expressions/aggregate-expressions.d.ts +215 -0
- package/cjs/expressions/aggregate-expressions.d.ts.map +1 -0
- package/cjs/expressions/aggregate-expressions.js +221 -0
- package/cjs/expressions/aggregate-expressions.js.map +1 -0
- package/cjs/expressions/index.d.ts +2 -0
- package/cjs/expressions/index.d.ts.map +1 -0
- package/cjs/index.d.ts +45 -0
- package/cjs/index.d.ts.map +1 -0
- package/cjs/index.js +1 -0
- package/cjs/index.js.map +1 -0
- package/cjs/migration/column-builder.d.ts +417 -0
- package/cjs/migration/column-builder.d.ts.map +1 -0
- package/cjs/migration/column-builder.js +586 -0
- package/cjs/migration/column-builder.js.map +1 -0
- package/cjs/migration/column-helpers.d.ts +275 -0
- package/cjs/migration/column-helpers.d.ts.map +1 -0
- package/cjs/migration/column-helpers.js +389 -0
- package/cjs/migration/column-helpers.js.map +1 -0
- package/cjs/migration/foreign-key-builder.d.ts +103 -0
- package/cjs/migration/foreign-key-builder.d.ts.map +1 -0
- package/cjs/migration/foreign-key-builder.js +121 -0
- package/cjs/migration/foreign-key-builder.js.map +1 -0
- package/cjs/migration/index.d.ts +7 -0
- package/cjs/migration/index.d.ts.map +1 -0
- package/cjs/migration/migration-runner.d.ts +278 -0
- package/cjs/migration/migration-runner.d.ts.map +1 -0
- package/cjs/migration/migration-runner.js +815 -0
- package/cjs/migration/migration-runner.js.map +1 -0
- package/cjs/migration/migration.d.ts +1992 -0
- package/cjs/migration/migration.d.ts.map +1 -0
- package/cjs/migration/migration.js +2162 -0
- package/cjs/migration/migration.js.map +1 -0
- package/cjs/migration/sql-grammar.d.ts +61 -0
- package/cjs/migration/sql-grammar.d.ts.map +1 -0
- package/cjs/migration/sql-grammar.js +164 -0
- package/cjs/migration/sql-grammar.js.map +1 -0
- package/cjs/migration/sql-serializer.d.ts +22 -0
- package/cjs/migration/sql-serializer.d.ts.map +1 -0
- package/cjs/migration/sql-serializer.js +26 -0
- package/cjs/migration/sql-serializer.js.map +1 -0
- package/cjs/migration/types.d.ts +155 -0
- package/cjs/migration/types.d.ts.map +1 -0
- package/cjs/model/methods/accessor-methods.d.ts +13 -0
- package/cjs/model/methods/accessor-methods.d.ts.map +1 -0
- package/cjs/model/methods/accessor-methods.js +51 -0
- package/cjs/model/methods/accessor-methods.js.map +1 -0
- package/cjs/model/methods/delete-methods.d.ts +10 -0
- package/cjs/model/methods/delete-methods.d.ts.map +1 -0
- package/cjs/model/methods/delete-methods.js +10 -0
- package/cjs/model/methods/delete-methods.js.map +1 -0
- package/cjs/model/methods/dirty-methods.d.ts +10 -0
- package/cjs/model/methods/dirty-methods.d.ts.map +1 -0
- package/cjs/model/methods/dirty-methods.js +15 -0
- package/cjs/model/methods/dirty-methods.js.map +1 -0
- package/cjs/model/methods/hydration-methods.d.ts +10 -0
- package/cjs/model/methods/hydration-methods.d.ts.map +1 -0
- package/cjs/model/methods/hydration-methods.js +57 -0
- package/cjs/model/methods/hydration-methods.js.map +1 -0
- package/cjs/model/methods/instance-event-methods.d.ts +7 -0
- package/cjs/model/methods/instance-event-methods.d.ts.map +1 -0
- package/cjs/model/methods/instance-event-methods.js +15 -0
- package/cjs/model/methods/instance-event-methods.js.map +1 -0
- package/cjs/model/methods/meta-methods.d.ts +7 -0
- package/cjs/model/methods/meta-methods.d.ts.map +1 -0
- package/cjs/model/methods/meta-methods.js +78 -0
- package/cjs/model/methods/meta-methods.js.map +1 -0
- package/cjs/model/methods/query-methods.d.ts +24 -0
- package/cjs/model/methods/query-methods.d.ts.map +1 -0
- package/cjs/model/methods/query-methods.js +164 -0
- package/cjs/model/methods/query-methods.js.map +1 -0
- package/cjs/model/methods/restore-methods.d.ts +10 -0
- package/cjs/model/methods/restore-methods.d.ts.map +1 -0
- package/cjs/model/methods/restore-methods.js +13 -0
- package/cjs/model/methods/restore-methods.js.map +1 -0
- package/cjs/model/methods/scope-methods.d.ts +7 -0
- package/cjs/model/methods/scope-methods.d.ts.map +1 -0
- package/cjs/model/methods/scope-methods.js +15 -0
- package/cjs/model/methods/scope-methods.js.map +1 -0
- package/cjs/model/methods/serialization-methods.d.ts +3 -0
- package/cjs/model/methods/serialization-methods.d.ts.map +1 -0
- package/cjs/model/methods/serialization-methods.js +27 -0
- package/cjs/model/methods/serialization-methods.js.map +1 -0
- package/cjs/model/methods/static-event-methods.d.ts +9 -0
- package/cjs/model/methods/static-event-methods.d.ts.map +1 -0
- package/cjs/model/methods/static-event-methods.js +29 -0
- package/cjs/model/methods/static-event-methods.js.map +1 -0
- package/cjs/model/methods/write-methods.d.ts +10 -0
- package/cjs/model/methods/write-methods.d.ts.map +1 -0
- package/cjs/model/methods/write-methods.js +52 -0
- package/cjs/model/methods/write-methods.js.map +1 -0
- package/cjs/model/model.d.ts +1647 -0
- package/cjs/model/model.d.ts.map +1 -0
- package/cjs/model/model.js +1657 -0
- package/cjs/model/model.js.map +1 -0
- package/cjs/model/model.types.d.ts +44 -0
- package/cjs/model/model.types.d.ts.map +1 -0
- package/cjs/model/register-model.d.ts +81 -0
- package/cjs/model/register-model.d.ts.map +1 -0
- package/cjs/model/register-model.js +94 -0
- package/cjs/model/register-model.js.map +1 -0
- package/cjs/query-builder/query-builder.d.ts +556 -0
- package/cjs/query-builder/query-builder.d.ts.map +1 -0
- package/cjs/query-builder/query-builder.js +1070 -0
- package/cjs/query-builder/query-builder.js.map +1 -0
- package/cjs/relations/helpers.d.ts +156 -0
- package/cjs/relations/helpers.d.ts.map +1 -0
- package/cjs/relations/helpers.js +202 -0
- package/cjs/relations/helpers.js.map +1 -0
- package/cjs/relations/index.d.ts +35 -0
- package/cjs/relations/index.d.ts.map +1 -0
- package/cjs/relations/pivot-operations.d.ts +160 -0
- package/cjs/relations/pivot-operations.d.ts.map +1 -0
- package/cjs/relations/pivot-operations.js +293 -0
- package/cjs/relations/pivot-operations.js.map +1 -0
- package/cjs/relations/relation-hydrator.d.ts +68 -0
- package/cjs/relations/relation-hydrator.d.ts.map +1 -0
- package/cjs/relations/relation-hydrator.js +81 -0
- package/cjs/relations/relation-hydrator.js.map +1 -0
- package/cjs/relations/relation-loader.d.ts +194 -0
- package/cjs/relations/relation-loader.d.ts.map +1 -0
- package/cjs/relations/relation-loader.js +466 -0
- package/cjs/relations/relation-loader.js.map +1 -0
- package/cjs/relations/types.d.ts +306 -0
- package/cjs/relations/types.d.ts.map +1 -0
- package/cjs/remover/database-remover.d.ts +100 -0
- package/cjs/remover/database-remover.d.ts.map +1 -0
- package/cjs/remover/database-remover.js +214 -0
- package/cjs/remover/database-remover.js.map +1 -0
- package/cjs/restorer/database-restorer.d.ts +131 -0
- package/cjs/restorer/database-restorer.d.ts.map +1 -0
- package/cjs/restorer/database-restorer.js +434 -0
- package/cjs/restorer/database-restorer.js.map +1 -0
- package/cjs/sql-database-dirty-tracker.d.ts +13 -0
- package/cjs/sql-database-dirty-tracker.d.ts.map +1 -0
- package/cjs/sql-database-dirty-tracker.js +14 -0
- package/cjs/sql-database-dirty-tracker.js.map +1 -0
- package/cjs/sync/index.d.ts +12 -0
- package/cjs/sync/index.d.ts.map +1 -0
- package/cjs/sync/model-events.d.ts +62 -0
- package/cjs/sync/model-events.d.ts.map +1 -0
- package/cjs/sync/model-events.js +49 -0
- package/cjs/sync/model-events.js.map +1 -0
- package/cjs/sync/model-sync-operation.d.ts +163 -0
- package/cjs/sync/model-sync-operation.d.ts.map +1 -0
- package/cjs/sync/model-sync-operation.js +292 -0
- package/cjs/sync/model-sync-operation.js.map +1 -0
- package/cjs/sync/model-sync.d.ts +130 -0
- package/cjs/sync/model-sync.d.ts.map +1 -0
- package/cjs/sync/model-sync.js +178 -0
- package/cjs/sync/model-sync.js.map +1 -0
- package/cjs/sync/sync-context.d.ts +70 -0
- package/cjs/sync/sync-context.d.ts.map +1 -0
- package/cjs/sync/sync-context.js +101 -0
- package/cjs/sync/sync-context.js.map +1 -0
- package/cjs/sync/sync-manager.d.ts +213 -0
- package/cjs/sync/sync-manager.d.ts.map +1 -0
- package/cjs/sync/sync-manager.js +689 -0
- package/cjs/sync/sync-manager.js.map +1 -0
- package/cjs/sync/types.d.ts +289 -0
- package/cjs/sync/types.d.ts.map +1 -0
- package/cjs/test-migrations/test-enhanced-features.migration.d.ts +15 -0
- package/cjs/test-migrations/test-enhanced-features.migration.d.ts.map +1 -0
- package/cjs/types.d.ts +371 -0
- package/cjs/types.d.ts.map +1 -0
- package/cjs/utils/connect-to-database.d.ts +307 -0
- package/cjs/utils/connect-to-database.d.ts.map +1 -0
- package/cjs/utils/connect-to-database.js +130 -0
- package/cjs/utils/connect-to-database.js.map +1 -0
- package/cjs/utils/database-writer.utils.d.ts +15 -0
- package/cjs/utils/database-writer.utils.d.ts.map +1 -0
- package/cjs/utils/database-writer.utils.js +14 -0
- package/cjs/utils/database-writer.utils.js.map +1 -0
- package/cjs/utils/define-model.js +100 -0
- package/cjs/utils/define-model.js.map +1 -0
- package/cjs/utils/is-valid-date-value.d.ts +5 -0
- package/cjs/utils/is-valid-date-value.d.ts.map +1 -0
- package/cjs/utils/is-valid-date-value.js +25 -0
- package/cjs/utils/is-valid-date-value.js.map +1 -0
- package/cjs/utils/once-connected.d.ts +146 -0
- package/cjs/utils/once-connected.d.ts.map +1 -0
- package/cjs/utils/once-connected.js +251 -0
- package/cjs/utils/once-connected.js.map +1 -0
- package/cjs/validation/database-seal-plugins.d.ts +12 -0
- package/cjs/validation/database-seal-plugins.d.ts.map +1 -0
- package/cjs/validation/database-seal-plugins.js +1 -0
- package/cjs/validation/database-seal-plugins.js.map +1 -0
- package/cjs/validation/database-writer-validation-error.d.ts +97 -0
- package/cjs/validation/database-writer-validation-error.d.ts.map +1 -0
- package/cjs/validation/database-writer-validation-error.js +160 -0
- package/cjs/validation/database-writer-validation-error.js.map +1 -0
- package/cjs/validation/index.d.ts +3 -0
- package/cjs/validation/index.d.ts.map +1 -0
- package/cjs/validation/mutators/embed-mutator.d.ts +9 -0
- package/cjs/validation/mutators/embed-mutator.d.ts.map +1 -0
- package/cjs/validation/mutators/embed-mutator.js +33 -0
- package/cjs/validation/mutators/embed-mutator.js.map +1 -0
- package/cjs/validation/plugins/embed-validator-plugin.d.ts +24 -0
- package/cjs/validation/plugins/embed-validator-plugin.d.ts.map +1 -0
- package/cjs/validation/plugins/embed-validator-plugin.js +18 -0
- package/cjs/validation/plugins/embed-validator-plugin.js.map +1 -0
- package/cjs/validation/rules/database-model-rule.d.ts +7 -0
- package/cjs/validation/rules/database-model-rule.d.ts.map +1 -0
- package/cjs/validation/rules/database-model-rule.js +27 -0
- package/cjs/validation/rules/database-model-rule.js.map +1 -0
- package/cjs/validation/transformers/embed-model-transformer.d.ts +3 -0
- package/cjs/validation/transformers/embed-model-transformer.d.ts.map +1 -0
- package/cjs/validation/transformers/embed-model-transformer.js +18 -0
- package/cjs/validation/transformers/embed-model-transformer.js.map +1 -0
- package/cjs/validation/validators/embed-validator.d.ts +21 -0
- package/cjs/validation/validators/embed-validator.d.ts.map +1 -0
- package/cjs/validation/validators/embed-validator.js +43 -0
- package/cjs/validation/validators/embed-validator.js.map +1 -0
- package/cjs/writer/database-writer.d.ts +181 -0
- package/cjs/writer/database-writer.d.ts.map +1 -0
- package/cjs/writer/database-writer.js +407 -0
- package/cjs/writer/database-writer.js.map +1 -0
- package/esm/data-source/data-source-registry.d.ts +108 -0
- package/esm/data-source/data-source-registry.d.ts.map +1 -0
- package/esm/data-source/data-source-registry.js +145 -0
- package/esm/data-source/data-source-registry.js.map +1 -0
- package/esm/data-source/data-source.d.ts +147 -0
- package/esm/data-source/data-source.d.ts.map +1 -0
- package/esm/data-source/data-source.js +83 -0
- package/esm/data-source/data-source.js.map +1 -0
- package/esm/database-dirty-tracker.d.ts +252 -0
- package/esm/database-dirty-tracker.d.ts.map +1 -0
- package/esm/database-dirty-tracker.js +386 -0
- package/esm/database-dirty-tracker.js.map +1 -0
- package/esm/drivers/mongodb/mongodb-blueprint.d.ts +30 -0
- package/esm/drivers/mongodb/mongodb-blueprint.d.ts.map +1 -0
- package/esm/drivers/mongodb/mongodb-blueprint.js +51 -0
- package/esm/drivers/mongodb/mongodb-blueprint.js.map +1 -0
- package/esm/drivers/mongodb/mongodb-driver.d.ts +325 -0
- package/esm/drivers/mongodb/mongodb-driver.d.ts.map +1 -0
- package/esm/drivers/mongodb/mongodb-driver.js +838 -0
- package/esm/drivers/mongodb/mongodb-driver.js.map +1 -0
- package/esm/drivers/mongodb/mongodb-id-generator.d.ts +116 -0
- package/esm/drivers/mongodb/mongodb-id-generator.d.ts.map +1 -0
- package/esm/drivers/mongodb/mongodb-id-generator.js +149 -0
- package/esm/drivers/mongodb/mongodb-id-generator.js.map +1 -0
- package/esm/drivers/mongodb/mongodb-migration-driver.d.ts +317 -0
- package/esm/drivers/mongodb/mongodb-migration-driver.d.ts.map +1 -0
- package/esm/drivers/mongodb/mongodb-migration-driver.js +666 -0
- package/esm/drivers/mongodb/mongodb-migration-driver.js.map +1 -0
- package/esm/drivers/mongodb/mongodb-query-builder.d.ts +1122 -0
- package/esm/drivers/mongodb/mongodb-query-builder.d.ts.map +1 -0
- package/esm/drivers/mongodb/mongodb-query-builder.js +1988 -0
- package/esm/drivers/mongodb/mongodb-query-builder.js.map +1 -0
- package/esm/drivers/mongodb/mongodb-query-operations.d.ts +226 -0
- package/esm/drivers/mongodb/mongodb-query-operations.d.ts.map +1 -0
- package/esm/drivers/mongodb/mongodb-query-operations.js +270 -0
- package/esm/drivers/mongodb/mongodb-query-operations.js.map +1 -0
- package/esm/drivers/mongodb/mongodb-query-parser.d.ts +262 -0
- package/esm/drivers/mongodb/mongodb-query-parser.d.ts.map +1 -0
- package/esm/drivers/mongodb/mongodb-query-parser.js +1351 -0
- package/esm/drivers/mongodb/mongodb-query-parser.js.map +1 -0
- package/esm/drivers/mongodb/mongodb-sync-adapter.d.ts +79 -0
- package/esm/drivers/mongodb/mongodb-sync-adapter.d.ts.map +1 -0
- package/esm/drivers/mongodb/mongodb-sync-adapter.js +146 -0
- package/esm/drivers/mongodb/mongodb-sync-adapter.js.map +1 -0
- package/esm/drivers/mongodb/types.d.ts +43 -0
- package/esm/drivers/mongodb/types.d.ts.map +1 -0
- package/esm/drivers/postgres/index.d.ts +16 -0
- package/esm/drivers/postgres/index.d.ts.map +1 -0
- package/esm/drivers/postgres/postgres-blueprint.d.ts +64 -0
- package/esm/drivers/postgres/postgres-blueprint.d.ts.map +1 -0
- package/esm/drivers/postgres/postgres-blueprint.js +121 -0
- package/esm/drivers/postgres/postgres-blueprint.js.map +1 -0
- package/esm/drivers/postgres/postgres-dialect.d.ts +136 -0
- package/esm/drivers/postgres/postgres-dialect.d.ts.map +1 -0
- package/esm/drivers/postgres/postgres-dialect.js +268 -0
- package/esm/drivers/postgres/postgres-dialect.js.map +1 -0
- package/esm/drivers/postgres/postgres-driver.d.ts +432 -0
- package/esm/drivers/postgres/postgres-driver.d.ts.map +1 -0
- package/esm/drivers/postgres/postgres-driver.js +1010 -0
- package/esm/drivers/postgres/postgres-driver.js.map +1 -0
- package/esm/drivers/postgres/postgres-migration-driver.d.ts +397 -0
- package/esm/drivers/postgres/postgres-migration-driver.d.ts.map +1 -0
- package/esm/drivers/postgres/postgres-migration-driver.js +900 -0
- package/esm/drivers/postgres/postgres-migration-driver.js.map +1 -0
- package/esm/drivers/postgres/postgres-query-builder.d.ts +254 -0
- package/esm/drivers/postgres/postgres-query-builder.d.ts.map +1 -0
- package/esm/drivers/postgres/postgres-query-builder.js +933 -0
- package/esm/drivers/postgres/postgres-query-builder.js.map +1 -0
- package/esm/drivers/postgres/postgres-query-parser.d.ts +328 -0
- package/esm/drivers/postgres/postgres-query-parser.d.ts.map +1 -0
- package/esm/drivers/postgres/postgres-query-parser.js +868 -0
- package/esm/drivers/postgres/postgres-query-parser.js.map +1 -0
- package/esm/drivers/postgres/postgres-sql-serializer.d.ts +37 -0
- package/esm/drivers/postgres/postgres-sql-serializer.d.ts.map +1 -0
- package/esm/drivers/postgres/postgres-sql-serializer.js +400 -0
- package/esm/drivers/postgres/postgres-sql-serializer.js.map +1 -0
- package/esm/drivers/postgres/postgres-sync-adapter.d.ts +83 -0
- package/esm/drivers/postgres/postgres-sync-adapter.d.ts.map +1 -0
- package/esm/drivers/postgres/postgres-sync-adapter.js +197 -0
- package/esm/drivers/postgres/postgres-sync-adapter.js.map +1 -0
- package/esm/drivers/postgres/types.d.ts +144 -0
- package/esm/drivers/postgres/types.d.ts.map +1 -0
- package/esm/drivers/sql/index.d.ts +10 -0
- package/esm/drivers/sql/index.d.ts.map +1 -0
- package/esm/drivers/sql/sql-dialect.contract.d.ts +204 -0
- package/esm/drivers/sql/sql-dialect.contract.d.ts.map +1 -0
- package/esm/drivers/sql/sql-types.d.ts +202 -0
- package/esm/drivers/sql/sql-types.d.ts.map +1 -0
- package/esm/errors/missing-data-source.error.d.ts +22 -0
- package/esm/errors/missing-data-source.error.d.ts.map +1 -0
- package/esm/errors/missing-data-source.error.js +29 -0
- package/esm/errors/missing-data-source.error.js.map +1 -0
- package/esm/errors/transaction-rollback.error.d.ts +20 -0
- package/esm/errors/transaction-rollback.error.d.ts.map +1 -0
- package/esm/errors/transaction-rollback.error.js +27 -0
- package/esm/errors/transaction-rollback.error.js.map +1 -0
- package/esm/events/model-events.d.ts +231 -0
- package/esm/events/model-events.d.ts.map +1 -0
- package/esm/events/model-events.js +259 -0
- package/esm/events/model-events.js.map +1 -0
- package/esm/expressions/aggregate-expressions.d.ts +215 -0
- package/esm/expressions/aggregate-expressions.d.ts.map +1 -0
- package/esm/expressions/aggregate-expressions.js +221 -0
- package/esm/expressions/aggregate-expressions.js.map +1 -0
- package/esm/expressions/index.d.ts +2 -0
- package/esm/expressions/index.d.ts.map +1 -0
- package/esm/index.d.ts +45 -0
- package/esm/index.d.ts.map +1 -0
- package/esm/index.js +1 -0
- package/esm/index.js.map +1 -0
- package/esm/migration/column-builder.d.ts +417 -0
- package/esm/migration/column-builder.d.ts.map +1 -0
- package/esm/migration/column-builder.js +586 -0
- package/esm/migration/column-builder.js.map +1 -0
- package/esm/migration/column-helpers.d.ts +275 -0
- package/esm/migration/column-helpers.d.ts.map +1 -0
- package/esm/migration/column-helpers.js +389 -0
- package/esm/migration/column-helpers.js.map +1 -0
- package/esm/migration/foreign-key-builder.d.ts +103 -0
- package/esm/migration/foreign-key-builder.d.ts.map +1 -0
- package/esm/migration/foreign-key-builder.js +121 -0
- package/esm/migration/foreign-key-builder.js.map +1 -0
- package/esm/migration/index.d.ts +7 -0
- package/esm/migration/index.d.ts.map +1 -0
- package/esm/migration/migration-runner.d.ts +278 -0
- package/esm/migration/migration-runner.d.ts.map +1 -0
- package/esm/migration/migration-runner.js +815 -0
- package/esm/migration/migration-runner.js.map +1 -0
- package/esm/migration/migration.d.ts +1992 -0
- package/esm/migration/migration.d.ts.map +1 -0
- package/esm/migration/migration.js +2162 -0
- package/esm/migration/migration.js.map +1 -0
- package/esm/migration/sql-grammar.d.ts +61 -0
- package/esm/migration/sql-grammar.d.ts.map +1 -0
- package/esm/migration/sql-grammar.js +164 -0
- package/esm/migration/sql-grammar.js.map +1 -0
- package/esm/migration/sql-serializer.d.ts +22 -0
- package/esm/migration/sql-serializer.d.ts.map +1 -0
- package/esm/migration/sql-serializer.js +26 -0
- package/esm/migration/sql-serializer.js.map +1 -0
- package/esm/migration/types.d.ts +155 -0
- package/esm/migration/types.d.ts.map +1 -0
- package/esm/model/methods/accessor-methods.d.ts +13 -0
- package/esm/model/methods/accessor-methods.d.ts.map +1 -0
- package/esm/model/methods/accessor-methods.js +51 -0
- package/esm/model/methods/accessor-methods.js.map +1 -0
- package/esm/model/methods/delete-methods.d.ts +10 -0
- package/esm/model/methods/delete-methods.d.ts.map +1 -0
- package/esm/model/methods/delete-methods.js +10 -0
- package/esm/model/methods/delete-methods.js.map +1 -0
- package/esm/model/methods/dirty-methods.d.ts +10 -0
- package/esm/model/methods/dirty-methods.d.ts.map +1 -0
- package/esm/model/methods/dirty-methods.js +15 -0
- package/esm/model/methods/dirty-methods.js.map +1 -0
- package/esm/model/methods/hydration-methods.d.ts +10 -0
- package/esm/model/methods/hydration-methods.d.ts.map +1 -0
- package/esm/model/methods/hydration-methods.js +57 -0
- package/esm/model/methods/hydration-methods.js.map +1 -0
- package/esm/model/methods/instance-event-methods.d.ts +7 -0
- package/esm/model/methods/instance-event-methods.d.ts.map +1 -0
- package/esm/model/methods/instance-event-methods.js +15 -0
- package/esm/model/methods/instance-event-methods.js.map +1 -0
- package/esm/model/methods/meta-methods.d.ts +7 -0
- package/esm/model/methods/meta-methods.d.ts.map +1 -0
- package/esm/model/methods/meta-methods.js +78 -0
- package/esm/model/methods/meta-methods.js.map +1 -0
- package/esm/model/methods/query-methods.d.ts +24 -0
- package/esm/model/methods/query-methods.d.ts.map +1 -0
- package/esm/model/methods/query-methods.js +164 -0
- package/esm/model/methods/query-methods.js.map +1 -0
- package/esm/model/methods/restore-methods.d.ts +10 -0
- package/esm/model/methods/restore-methods.d.ts.map +1 -0
- package/esm/model/methods/restore-methods.js +13 -0
- package/esm/model/methods/restore-methods.js.map +1 -0
- package/esm/model/methods/scope-methods.d.ts +7 -0
- package/esm/model/methods/scope-methods.d.ts.map +1 -0
- package/esm/model/methods/scope-methods.js +15 -0
- package/esm/model/methods/scope-methods.js.map +1 -0
- package/esm/model/methods/serialization-methods.d.ts +3 -0
- package/esm/model/methods/serialization-methods.d.ts.map +1 -0
- package/esm/model/methods/serialization-methods.js +27 -0
- package/esm/model/methods/serialization-methods.js.map +1 -0
- package/esm/model/methods/static-event-methods.d.ts +9 -0
- package/esm/model/methods/static-event-methods.d.ts.map +1 -0
- package/esm/model/methods/static-event-methods.js +29 -0
- package/esm/model/methods/static-event-methods.js.map +1 -0
- package/esm/model/methods/write-methods.d.ts +10 -0
- package/esm/model/methods/write-methods.d.ts.map +1 -0
- package/esm/model/methods/write-methods.js +52 -0
- package/esm/model/methods/write-methods.js.map +1 -0
- package/esm/model/model.d.ts +1647 -0
- package/esm/model/model.d.ts.map +1 -0
- package/esm/model/model.js +1657 -0
- package/esm/model/model.js.map +1 -0
- package/esm/model/model.types.d.ts +44 -0
- package/esm/model/model.types.d.ts.map +1 -0
- package/esm/model/register-model.d.ts +81 -0
- package/esm/model/register-model.d.ts.map +1 -0
- package/esm/model/register-model.js +94 -0
- package/esm/model/register-model.js.map +1 -0
- package/esm/query-builder/query-builder.d.ts +556 -0
- package/esm/query-builder/query-builder.d.ts.map +1 -0
- package/esm/query-builder/query-builder.js +1070 -0
- package/esm/query-builder/query-builder.js.map +1 -0
- package/esm/relations/helpers.d.ts +156 -0
- package/esm/relations/helpers.d.ts.map +1 -0
- package/esm/relations/helpers.js +202 -0
- package/esm/relations/helpers.js.map +1 -0
- package/esm/relations/index.d.ts +35 -0
- package/esm/relations/index.d.ts.map +1 -0
- package/esm/relations/pivot-operations.d.ts +160 -0
- package/esm/relations/pivot-operations.d.ts.map +1 -0
- package/esm/relations/pivot-operations.js +293 -0
- package/esm/relations/pivot-operations.js.map +1 -0
- package/esm/relations/relation-hydrator.d.ts +68 -0
- package/esm/relations/relation-hydrator.d.ts.map +1 -0
- package/esm/relations/relation-hydrator.js +81 -0
- package/esm/relations/relation-hydrator.js.map +1 -0
- package/esm/relations/relation-loader.d.ts +194 -0
- package/esm/relations/relation-loader.d.ts.map +1 -0
- package/esm/relations/relation-loader.js +466 -0
- package/esm/relations/relation-loader.js.map +1 -0
- package/esm/relations/types.d.ts +306 -0
- package/esm/relations/types.d.ts.map +1 -0
- package/esm/remover/database-remover.d.ts +100 -0
- package/esm/remover/database-remover.d.ts.map +1 -0
- package/esm/remover/database-remover.js +214 -0
- package/esm/remover/database-remover.js.map +1 -0
- package/esm/restorer/database-restorer.d.ts +131 -0
- package/esm/restorer/database-restorer.d.ts.map +1 -0
- package/esm/restorer/database-restorer.js +434 -0
- package/esm/restorer/database-restorer.js.map +1 -0
- package/esm/sql-database-dirty-tracker.d.ts +13 -0
- package/esm/sql-database-dirty-tracker.d.ts.map +1 -0
- package/esm/sql-database-dirty-tracker.js +14 -0
- package/esm/sql-database-dirty-tracker.js.map +1 -0
- package/esm/sync/index.d.ts +12 -0
- package/esm/sync/index.d.ts.map +1 -0
- package/esm/sync/model-events.d.ts +62 -0
- package/esm/sync/model-events.d.ts.map +1 -0
- package/esm/sync/model-events.js +49 -0
- package/esm/sync/model-events.js.map +1 -0
- package/esm/sync/model-sync-operation.d.ts +163 -0
- package/esm/sync/model-sync-operation.d.ts.map +1 -0
- package/esm/sync/model-sync-operation.js +292 -0
- package/esm/sync/model-sync-operation.js.map +1 -0
- package/esm/sync/model-sync.d.ts +130 -0
- package/esm/sync/model-sync.d.ts.map +1 -0
- package/esm/sync/model-sync.js +178 -0
- package/esm/sync/model-sync.js.map +1 -0
- package/esm/sync/sync-context.d.ts +70 -0
- package/esm/sync/sync-context.d.ts.map +1 -0
- package/esm/sync/sync-context.js +101 -0
- package/esm/sync/sync-context.js.map +1 -0
- package/esm/sync/sync-manager.d.ts +213 -0
- package/esm/sync/sync-manager.d.ts.map +1 -0
- package/esm/sync/sync-manager.js +689 -0
- package/esm/sync/sync-manager.js.map +1 -0
- package/esm/sync/types.d.ts +289 -0
- package/esm/sync/types.d.ts.map +1 -0
- package/esm/test-migrations/test-enhanced-features.migration.d.ts +15 -0
- package/esm/test-migrations/test-enhanced-features.migration.d.ts.map +1 -0
- package/esm/types.d.ts +371 -0
- package/esm/types.d.ts.map +1 -0
- package/esm/utils/connect-to-database.d.ts +307 -0
- package/esm/utils/connect-to-database.d.ts.map +1 -0
- package/esm/utils/connect-to-database.js +130 -0
- package/esm/utils/connect-to-database.js.map +1 -0
- package/esm/utils/database-writer.utils.d.ts +15 -0
- package/esm/utils/database-writer.utils.d.ts.map +1 -0
- package/esm/utils/database-writer.utils.js +14 -0
- package/esm/utils/database-writer.utils.js.map +1 -0
- package/esm/utils/define-model.js +100 -0
- package/esm/utils/define-model.js.map +1 -0
- package/esm/utils/is-valid-date-value.d.ts +5 -0
- package/esm/utils/is-valid-date-value.d.ts.map +1 -0
- package/esm/utils/is-valid-date-value.js +25 -0
- package/esm/utils/is-valid-date-value.js.map +1 -0
- package/esm/utils/once-connected.d.ts +146 -0
- package/esm/utils/once-connected.d.ts.map +1 -0
- package/esm/utils/once-connected.js +251 -0
- package/esm/utils/once-connected.js.map +1 -0
- package/esm/validation/database-seal-plugins.d.ts +12 -0
- package/esm/validation/database-seal-plugins.d.ts.map +1 -0
- package/esm/validation/database-seal-plugins.js +1 -0
- package/esm/validation/database-seal-plugins.js.map +1 -0
- package/esm/validation/database-writer-validation-error.d.ts +97 -0
- package/esm/validation/database-writer-validation-error.d.ts.map +1 -0
- package/esm/validation/database-writer-validation-error.js +160 -0
- package/esm/validation/database-writer-validation-error.js.map +1 -0
- package/esm/validation/index.d.ts +3 -0
- package/esm/validation/index.d.ts.map +1 -0
- package/esm/validation/mutators/embed-mutator.d.ts +9 -0
- package/esm/validation/mutators/embed-mutator.d.ts.map +1 -0
- package/esm/validation/mutators/embed-mutator.js +33 -0
- package/esm/validation/mutators/embed-mutator.js.map +1 -0
- package/esm/validation/plugins/embed-validator-plugin.d.ts +24 -0
- package/esm/validation/plugins/embed-validator-plugin.d.ts.map +1 -0
- package/esm/validation/plugins/embed-validator-plugin.js +18 -0
- package/esm/validation/plugins/embed-validator-plugin.js.map +1 -0
- package/esm/validation/rules/database-model-rule.d.ts +7 -0
- package/esm/validation/rules/database-model-rule.d.ts.map +1 -0
- package/esm/validation/rules/database-model-rule.js +27 -0
- package/esm/validation/rules/database-model-rule.js.map +1 -0
- package/esm/validation/transformers/embed-model-transformer.d.ts +3 -0
- package/esm/validation/transformers/embed-model-transformer.d.ts.map +1 -0
- package/esm/validation/transformers/embed-model-transformer.js +18 -0
- package/esm/validation/transformers/embed-model-transformer.js.map +1 -0
- package/esm/validation/validators/embed-validator.d.ts +21 -0
- package/esm/validation/validators/embed-validator.d.ts.map +1 -0
- package/esm/validation/validators/embed-validator.js +43 -0
- package/esm/validation/validators/embed-validator.js.map +1 -0
- package/esm/writer/database-writer.d.ts +181 -0
- package/esm/writer/database-writer.d.ts.map +1 -0
- package/esm/writer/database-writer.js +407 -0
- package/esm/writer/database-writer.js.map +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,432 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PostgreSQL Driver
|
|
3
|
+
*
|
|
4
|
+
* Main driver implementation for PostgreSQL database operations.
|
|
5
|
+
* Implements the DriverContract interface to provide a unified API
|
|
6
|
+
* for CRUD operations, transactions, and query building.
|
|
7
|
+
*
|
|
8
|
+
* Uses the `pg` package for database connectivity with connection pooling.
|
|
9
|
+
*
|
|
10
|
+
* @module cascade/drivers/postgres
|
|
11
|
+
*/
|
|
12
|
+
import type { CreateDatabaseOptions, DriverContract, DriverEventListener, DriverTransactionContract, DropDatabaseOptions, InsertResult, TransactionContext, UpdateOperations, UpdateResult } from "../../contracts/database-driver.contract";
|
|
13
|
+
import type { DriverBlueprintContract } from "../../contracts/driver-blueprint.contract";
|
|
14
|
+
import type { MigrationDriverContract } from "../../contracts/migration-driver.contract";
|
|
15
|
+
import type { QueryBuilderContract } from "../../contracts/query-builder.contract";
|
|
16
|
+
import type { SyncAdapterContract } from "../../contracts/sync-adapter.contract";
|
|
17
|
+
import { SQLSerializer } from "../../migration/sql-serializer";
|
|
18
|
+
import { SqlDatabaseDirtyTracker } from "../../sql-database-dirty-tracker";
|
|
19
|
+
import type { ModelDefaults } from "../../types";
|
|
20
|
+
import { DatabaseDriver } from "../../utils/connect-to-database";
|
|
21
|
+
import { PostgresDialect } from "./postgres-dialect";
|
|
22
|
+
import type { PostgresPoolConfig, PostgresQueryResult, PostgresTransactionOptions } from "./types";
|
|
23
|
+
/**
|
|
24
|
+
* Lazily loaded pg module types.
|
|
25
|
+
*/
|
|
26
|
+
type PgPool = import("pg").Pool;
|
|
27
|
+
type PgPoolClient = import("pg").PoolClient;
|
|
28
|
+
/**
|
|
29
|
+
* PostgreSQL database driver implementing the Cascade DriverContract.
|
|
30
|
+
*
|
|
31
|
+
* Provides connection pooling, CRUD operations, transactions, and
|
|
32
|
+
* integration with Cascade's query builder and migration systems.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```typescript
|
|
36
|
+
* const driver = new PostgresDriver({
|
|
37
|
+
* host: 'localhost',
|
|
38
|
+
* port: 5432,
|
|
39
|
+
* database: 'myapp',
|
|
40
|
+
* user: 'postgres',
|
|
41
|
+
* password: 'secret'
|
|
42
|
+
* });
|
|
43
|
+
*
|
|
44
|
+
* await driver.connect();
|
|
45
|
+
*
|
|
46
|
+
* // Insert a document
|
|
47
|
+
* const result = await driver.insert('users', { name: 'Alice', email: 'alice@example.com' });
|
|
48
|
+
*
|
|
49
|
+
* // Query using the query builder
|
|
50
|
+
* const users = await driver.queryBuilder('users')
|
|
51
|
+
* .where('name', 'Alice')
|
|
52
|
+
* .get();
|
|
53
|
+
*
|
|
54
|
+
* await driver.disconnect();
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
export declare class PostgresDriver implements DriverContract {
|
|
58
|
+
private readonly config;
|
|
59
|
+
/**
|
|
60
|
+
* Driver name identifier.
|
|
61
|
+
*/
|
|
62
|
+
readonly name: DatabaseDriver;
|
|
63
|
+
/**
|
|
64
|
+
* SQL dialect for PostgreSQL-specific syntax.
|
|
65
|
+
*/
|
|
66
|
+
readonly dialect: PostgresDialect;
|
|
67
|
+
/**
|
|
68
|
+
* PostgreSQL driver model defaults.
|
|
69
|
+
*
|
|
70
|
+
* PostgreSQL follows SQL conventions:
|
|
71
|
+
* - snake_case naming for columns (created_at, updated_at, deleted_at)
|
|
72
|
+
* - Native AUTO_INCREMENT for IDs (no manual generation)
|
|
73
|
+
* - Timestamps enabled by default
|
|
74
|
+
* - Permanent delete strategy (hard deletes)
|
|
75
|
+
*/
|
|
76
|
+
readonly modelDefaults: Partial<ModelDefaults>;
|
|
77
|
+
/**
|
|
78
|
+
* Connection pool instance.
|
|
79
|
+
*/
|
|
80
|
+
private _pool;
|
|
81
|
+
/**
|
|
82
|
+
* Event listeners for driver lifecycle events.
|
|
83
|
+
*/
|
|
84
|
+
private readonly _eventListeners;
|
|
85
|
+
/**
|
|
86
|
+
* Whether the driver is currently connected.
|
|
87
|
+
*/
|
|
88
|
+
private _isConnected;
|
|
89
|
+
/**
|
|
90
|
+
* Blueprint instance (lazy-loaded).
|
|
91
|
+
*/
|
|
92
|
+
private _blueprint;
|
|
93
|
+
/**
|
|
94
|
+
* Migration driver instance (lazy-loaded).
|
|
95
|
+
*/
|
|
96
|
+
private _migrationDriver;
|
|
97
|
+
/**
|
|
98
|
+
* Sync adapter instance (lazy-loaded).
|
|
99
|
+
*/
|
|
100
|
+
private _syncAdapter;
|
|
101
|
+
/**
|
|
102
|
+
* Create a new PostgreSQL driver instance.
|
|
103
|
+
*
|
|
104
|
+
* @param config - PostgreSQL connection configuration
|
|
105
|
+
*/
|
|
106
|
+
constructor(config: PostgresPoolConfig);
|
|
107
|
+
/**
|
|
108
|
+
* Get the connection pool instance.
|
|
109
|
+
*
|
|
110
|
+
* @throws Error if not connected
|
|
111
|
+
*/
|
|
112
|
+
get pool(): PgPool;
|
|
113
|
+
/**
|
|
114
|
+
* Get database native client
|
|
115
|
+
*/
|
|
116
|
+
getClient<Client = PgPool>(): Client;
|
|
117
|
+
/**
|
|
118
|
+
* Check if the driver is currently connected.
|
|
119
|
+
*/
|
|
120
|
+
get isConnected(): boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Get the driver blueprint (information schema).
|
|
123
|
+
*/
|
|
124
|
+
get blueprint(): DriverBlueprintContract;
|
|
125
|
+
/**
|
|
126
|
+
* Establish connection to the PostgreSQL database.
|
|
127
|
+
*
|
|
128
|
+
* Creates a connection pool with the configured options.
|
|
129
|
+
* Emits 'connected' event on successful connection.
|
|
130
|
+
*/
|
|
131
|
+
connect(): Promise<void>;
|
|
132
|
+
/**
|
|
133
|
+
* Close the database connection pool.
|
|
134
|
+
*
|
|
135
|
+
* Waits for all active queries to complete before closing.
|
|
136
|
+
* Emits 'disconnected' event on successful disconnection.
|
|
137
|
+
*/
|
|
138
|
+
disconnect(): Promise<void>;
|
|
139
|
+
/**
|
|
140
|
+
* Register an event listener for driver lifecycle events.
|
|
141
|
+
*
|
|
142
|
+
* @param event - Event name ('connected', 'disconnected', etc.)
|
|
143
|
+
* @param listener - Callback function to invoke
|
|
144
|
+
*/
|
|
145
|
+
on(event: string, listener: DriverEventListener): void;
|
|
146
|
+
/**
|
|
147
|
+
* Serialize data for storage in PostgreSQL.
|
|
148
|
+
*
|
|
149
|
+
* Handles Date objects, BigInt, and other JavaScript types
|
|
150
|
+
* that need special handling for PostgreSQL storage.
|
|
151
|
+
*
|
|
152
|
+
* @param data - The data object to serialize
|
|
153
|
+
* @returns Serialized data ready for PostgreSQL
|
|
154
|
+
*/
|
|
155
|
+
serialize(data: Record<string, unknown>): Record<string, unknown>;
|
|
156
|
+
/**
|
|
157
|
+
* Get the dirty tracker for this driver.
|
|
158
|
+
*/
|
|
159
|
+
getDirtyTracker(data: Record<string, unknown>): SqlDatabaseDirtyTracker;
|
|
160
|
+
/**
|
|
161
|
+
* Deserialize data retrieved from PostgreSQL.
|
|
162
|
+
*
|
|
163
|
+
* Converts PostgreSQL types back to JavaScript equivalents.
|
|
164
|
+
*
|
|
165
|
+
* @param data - The data object from PostgreSQL
|
|
166
|
+
* @returns Deserialized JavaScript object
|
|
167
|
+
*/
|
|
168
|
+
deserialize(data: Record<string, unknown>): Record<string, unknown>;
|
|
169
|
+
/**
|
|
170
|
+
* Insert a single row into a table.
|
|
171
|
+
*
|
|
172
|
+
* Uses INSERT ... RETURNING to get the inserted row with generated values.
|
|
173
|
+
*
|
|
174
|
+
* @param table - Target table name
|
|
175
|
+
* @param document - Data to insert
|
|
176
|
+
* @param options - Optional insertion options
|
|
177
|
+
* @returns The inserted document
|
|
178
|
+
*/
|
|
179
|
+
insert(table: string, document: Record<string, unknown>, _options?: Record<string, unknown>): Promise<InsertResult>;
|
|
180
|
+
/**
|
|
181
|
+
* Insert multiple rows into a table.
|
|
182
|
+
*
|
|
183
|
+
* Uses a single INSERT statement with multiple value sets for efficiency.
|
|
184
|
+
*
|
|
185
|
+
* @param table - Target table name
|
|
186
|
+
* @param documents - Array of documents to insert
|
|
187
|
+
* @param options - Optional insertion options
|
|
188
|
+
* @returns Array of inserted documents
|
|
189
|
+
*/
|
|
190
|
+
insertMany(table: string, documents: Record<string, unknown>[], _options?: Record<string, unknown>): Promise<InsertResult[]>;
|
|
191
|
+
/**
|
|
192
|
+
* Update a single row matching the filter.
|
|
193
|
+
*
|
|
194
|
+
* @param table - Target table name
|
|
195
|
+
* @param filter - Filter conditions
|
|
196
|
+
* @param update - Update operations ($set, $unset, $inc)
|
|
197
|
+
* @param options - Optional update options
|
|
198
|
+
* @returns Update result with modified count
|
|
199
|
+
*/
|
|
200
|
+
update(table: string, filter: Record<string, unknown>, update: UpdateOperations, _options?: Record<string, unknown>): Promise<UpdateResult>;
|
|
201
|
+
/**
|
|
202
|
+
* Find one and update a single row matching the filter and return the updated row
|
|
203
|
+
* @param table - Target table name
|
|
204
|
+
* @param filter - Filter conditions
|
|
205
|
+
* @param update - Update operations ($set, $unset, $inc)
|
|
206
|
+
* @param options - Optional update options
|
|
207
|
+
* @returns The updated row or null
|
|
208
|
+
*/
|
|
209
|
+
findOneAndUpdate<T = unknown>(table: string, filter: Record<string, unknown>, update: UpdateOperations, _options?: Record<string, unknown>): Promise<T | null>;
|
|
210
|
+
/**
|
|
211
|
+
* Update multiple rows matching the filter.
|
|
212
|
+
*
|
|
213
|
+
* @param table - Target table name
|
|
214
|
+
* @param filter - Filter conditions
|
|
215
|
+
* @param update - Update operations
|
|
216
|
+
* @param options - Optional update options
|
|
217
|
+
* @returns Update result with modified count
|
|
218
|
+
*/
|
|
219
|
+
updateMany(table: string, filter: Record<string, unknown>, update: UpdateOperations, _options?: Record<string, unknown>): Promise<UpdateResult>;
|
|
220
|
+
/**
|
|
221
|
+
* Replace a document matching the filter.
|
|
222
|
+
*
|
|
223
|
+
* Completely replaces the document (not a partial update).
|
|
224
|
+
*
|
|
225
|
+
* @param table - Target table name
|
|
226
|
+
* @param filter - Filter conditions
|
|
227
|
+
* @param document - New document data
|
|
228
|
+
* @param options - Optional options
|
|
229
|
+
* @returns The replaced document or null
|
|
230
|
+
*/
|
|
231
|
+
replace<T = unknown>(table: string, filter: Record<string, unknown>, document: Record<string, unknown>, _options?: Record<string, unknown>): Promise<T | null>;
|
|
232
|
+
/**
|
|
233
|
+
* Upsert (insert or update) a single row.
|
|
234
|
+
*
|
|
235
|
+
* Uses PostgreSQL's INSERT ... ON CONFLICT ... DO UPDATE syntax.
|
|
236
|
+
*
|
|
237
|
+
* @param table - Target table name
|
|
238
|
+
* @param filter - Filter conditions to find existing row (used for conflict detection)
|
|
239
|
+
* @param document - Document data to insert or update
|
|
240
|
+
* @param options - Upsert options (conflictColumns for conflict target)
|
|
241
|
+
* @returns The upserted row
|
|
242
|
+
*/
|
|
243
|
+
upsert<T = unknown>(table: string, filter: Record<string, unknown>, document: Record<string, unknown>, options?: Record<string, unknown>): Promise<T>;
|
|
244
|
+
/**
|
|
245
|
+
* Find one and delete a single row matching the filter and return the deleted row.
|
|
246
|
+
*
|
|
247
|
+
* @param table - Target table name
|
|
248
|
+
* @param filter - Filter conditions
|
|
249
|
+
* @param options - Optional delete options
|
|
250
|
+
* @returns The deleted row or null
|
|
251
|
+
*/
|
|
252
|
+
findOneAndDelete<T = unknown>(table: string, filter: Record<string, unknown>, _options?: Record<string, unknown>): Promise<T | null>;
|
|
253
|
+
/**
|
|
254
|
+
* Delete a single row matching the filter.
|
|
255
|
+
*
|
|
256
|
+
* @param table - Target table name
|
|
257
|
+
* @param filter - Filter conditions
|
|
258
|
+
* @param options - Optional options
|
|
259
|
+
* @returns Number of deleted rows (0 or 1)
|
|
260
|
+
*/
|
|
261
|
+
delete(table: string, filter?: Record<string, unknown>, _options?: Record<string, unknown>): Promise<number>;
|
|
262
|
+
/**
|
|
263
|
+
* Delete multiple rows matching the filter.
|
|
264
|
+
*
|
|
265
|
+
* @param table - Target table name
|
|
266
|
+
* @param filter - Filter conditions
|
|
267
|
+
* @param options - Optional options
|
|
268
|
+
* @returns Number of deleted rows
|
|
269
|
+
*/
|
|
270
|
+
deleteMany(table: string, filter?: Record<string, unknown>, _options?: Record<string, unknown>): Promise<number>;
|
|
271
|
+
/**
|
|
272
|
+
* Truncate a table (remove all rows).
|
|
273
|
+
*
|
|
274
|
+
* Uses TRUNCATE TABLE for fast deletion with RESTART IDENTITY.
|
|
275
|
+
*
|
|
276
|
+
* @param table - Target table name
|
|
277
|
+
* @param options - Optional options
|
|
278
|
+
* @param options.cascade - If true, automatically truncate all tables with foreign key references (use with caution)
|
|
279
|
+
* @returns Number of deleted rows (always 0 for TRUNCATE)
|
|
280
|
+
*/
|
|
281
|
+
truncateTable(table: string, options?: {
|
|
282
|
+
cascade?: boolean;
|
|
283
|
+
}): Promise<number>;
|
|
284
|
+
/**
|
|
285
|
+
* Get a query builder for the specified table.
|
|
286
|
+
*
|
|
287
|
+
* @param table - Target table name
|
|
288
|
+
* @returns Query builder instance
|
|
289
|
+
*/
|
|
290
|
+
queryBuilder<T = unknown>(table: string): QueryBuilderContract<T>;
|
|
291
|
+
/**
|
|
292
|
+
* Begin a new database transaction.
|
|
293
|
+
*
|
|
294
|
+
* Acquires a client from the pool and starts a transaction.
|
|
295
|
+
* The client is stored in AsyncLocalStorage for automatic
|
|
296
|
+
* participation by subsequent queries.
|
|
297
|
+
*
|
|
298
|
+
* @param options - Optional transaction options
|
|
299
|
+
* @returns Transaction contract with commit/rollback methods
|
|
300
|
+
*/
|
|
301
|
+
beginTransaction(options?: PostgresTransactionOptions): Promise<DriverTransactionContract<PgPoolClient>>;
|
|
302
|
+
/**
|
|
303
|
+
* Execute a function within a transaction scope (recommended pattern).
|
|
304
|
+
*
|
|
305
|
+
* Automatically commits on success, rolls back on any error, and guarantees
|
|
306
|
+
* resource cleanup. This is the recommended way to use transactions.
|
|
307
|
+
*
|
|
308
|
+
* @param fn - Async function to execute within transaction
|
|
309
|
+
* @param options - Transaction options (isolation level, read-only, etc.)
|
|
310
|
+
* @returns The return value of the callback function
|
|
311
|
+
* @throws {Error} If transaction fails or is explicitly rolled back
|
|
312
|
+
*/
|
|
313
|
+
transaction<T>(fn: (ctx: TransactionContext) => Promise<T>, options?: Record<string, unknown>): Promise<T>;
|
|
314
|
+
/**
|
|
315
|
+
* Perform an atomic update operation.
|
|
316
|
+
*
|
|
317
|
+
* Uses PostgreSQL's row-level locking for atomicity.
|
|
318
|
+
*
|
|
319
|
+
* @param table - Target table name
|
|
320
|
+
* @param filter - Filter conditions
|
|
321
|
+
* @param operations - Update operations
|
|
322
|
+
* @param options - Optional options
|
|
323
|
+
* @returns Update result
|
|
324
|
+
*/
|
|
325
|
+
atomic(table: string, filter: Record<string, unknown>, operations: UpdateOperations, _options?: Record<string, unknown>): Promise<UpdateResult>;
|
|
326
|
+
/**
|
|
327
|
+
* Get the sync adapter for bulk denormalized updates.
|
|
328
|
+
*
|
|
329
|
+
* @returns Sync adapter instance
|
|
330
|
+
*/
|
|
331
|
+
syncAdapter(): SyncAdapterContract;
|
|
332
|
+
/**
|
|
333
|
+
* Get the migration driver for schema operations.
|
|
334
|
+
*
|
|
335
|
+
* @returns Migration driver instance
|
|
336
|
+
*/
|
|
337
|
+
migrationDriver(): MigrationDriverContract;
|
|
338
|
+
/**
|
|
339
|
+
* Return a SQL serializer for this driver's dialect.
|
|
340
|
+
* Used by Migration.toSQL() to convert pending operations to SQL strings.
|
|
341
|
+
*/
|
|
342
|
+
getSQLSerializer(): SQLSerializer;
|
|
343
|
+
/**
|
|
344
|
+
* Execute a raw SQL query.
|
|
345
|
+
*
|
|
346
|
+
* Automatically uses the transaction client if one is active.
|
|
347
|
+
*
|
|
348
|
+
* @param sql - SQL query string
|
|
349
|
+
* @param params - Query parameters
|
|
350
|
+
* @returns Query result
|
|
351
|
+
*/
|
|
352
|
+
query<T = Record<string, unknown>>(sql: string, params?: unknown[]): Promise<PostgresQueryResult<T>>;
|
|
353
|
+
/**
|
|
354
|
+
* Emit an event to all registered listeners.
|
|
355
|
+
*
|
|
356
|
+
* @param event - Event name
|
|
357
|
+
* @param args - Event arguments
|
|
358
|
+
*/
|
|
359
|
+
private emit;
|
|
360
|
+
/**
|
|
361
|
+
* Build a simple WHERE clause from a filter object.
|
|
362
|
+
*
|
|
363
|
+
* @param filter - Filter conditions
|
|
364
|
+
* @param startParamIndex - Starting parameter index
|
|
365
|
+
* @returns Object with WHERE clause string and parameters
|
|
366
|
+
*/
|
|
367
|
+
private buildWhereClause;
|
|
368
|
+
/**
|
|
369
|
+
* Build an UPDATE query from update operations.
|
|
370
|
+
*
|
|
371
|
+
* @param table - Target table name
|
|
372
|
+
* @param filter - Filter conditions
|
|
373
|
+
* @param update - Update operations
|
|
374
|
+
* @param limit - Optional limit (for single row update)
|
|
375
|
+
* @returns Object with SQL and parameters
|
|
376
|
+
*/
|
|
377
|
+
private buildUpdateQuery;
|
|
378
|
+
/**
|
|
379
|
+
* Create a new database.
|
|
380
|
+
*
|
|
381
|
+
* Note: This requires connecting to a system database (like 'postgres')
|
|
382
|
+
* since you cannot create a database while connected to it.
|
|
383
|
+
*
|
|
384
|
+
* @param name - Database name to create
|
|
385
|
+
* @param options - Creation options (encoding, template, etc.)
|
|
386
|
+
* @returns true if created, false if already exists
|
|
387
|
+
*/
|
|
388
|
+
createDatabase(name: string, options?: CreateDatabaseOptions): Promise<boolean>;
|
|
389
|
+
/**
|
|
390
|
+
* Drop a database.
|
|
391
|
+
*
|
|
392
|
+
* @param name - Database name to drop
|
|
393
|
+
* @param options - Drop options
|
|
394
|
+
* @returns true if dropped, false if didn't exist
|
|
395
|
+
*/
|
|
396
|
+
dropDatabase(name: string, options?: DropDatabaseOptions): Promise<boolean>;
|
|
397
|
+
/**
|
|
398
|
+
* Check if a database exists.
|
|
399
|
+
*
|
|
400
|
+
* @param name - Database name to check
|
|
401
|
+
* @returns true if database exists
|
|
402
|
+
*/
|
|
403
|
+
databaseExists(name: string): Promise<boolean>;
|
|
404
|
+
/**
|
|
405
|
+
* List all databases.
|
|
406
|
+
*
|
|
407
|
+
* @returns Array of database names
|
|
408
|
+
*/
|
|
409
|
+
listDatabases(): Promise<string[]>;
|
|
410
|
+
/**
|
|
411
|
+
* Drop a table.
|
|
412
|
+
*
|
|
413
|
+
* @param name - Table name to drop
|
|
414
|
+
* @throws Error if table doesn't exist
|
|
415
|
+
*/
|
|
416
|
+
dropTable(name: string): Promise<void>;
|
|
417
|
+
/**
|
|
418
|
+
* Drop a table if it exists.
|
|
419
|
+
*
|
|
420
|
+
* @param name - Table name to drop
|
|
421
|
+
*/
|
|
422
|
+
dropTableIfExists(name: string): Promise<void>;
|
|
423
|
+
/**
|
|
424
|
+
* Drop all tables in the current database.
|
|
425
|
+
*
|
|
426
|
+
* Uses CASCADE to handle foreign key dependencies.
|
|
427
|
+
* Useful for `migrate:fresh` command.
|
|
428
|
+
*/
|
|
429
|
+
dropAllTables(): Promise<void>;
|
|
430
|
+
}
|
|
431
|
+
export {};
|
|
432
|
+
//# sourceMappingURL=postgres-driver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postgres-driver.d.ts","sourceRoot":"","sources":["../../../src/drivers/postgres/postgres-driver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EACV,qBAAqB,EACrB,cAAc,EACd,mBAAmB,EACnB,yBAAyB,EACzB,mBAAmB,EACnB,YAAY,EACZ,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,EACb,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACzF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACzF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAEjF,OAAO,EAAE,aAAa,EAAE,MAAM,gC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