@venizia/ignis-atlas 0.1.0-1
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/LICENSE.md +104 -0
- package/README.md +144 -0
- package/dist/cjs/cli/modes.d.ts +29 -0
- package/dist/cjs/cli/modes.d.ts.map +1 -0
- package/dist/cjs/cli/modes.js +70 -0
- package/dist/cjs/cli/modes.js.map +1 -0
- package/dist/cjs/cli.d.ts +3 -0
- package/dist/cjs/cli.d.ts.map +1 -0
- package/dist/cjs/cli.js +60 -0
- package/dist/cjs/cli.js.map +1 -0
- package/dist/cjs/common/constants.d.ts +22 -0
- package/dist/cjs/common/constants.d.ts.map +1 -0
- package/dist/cjs/common/constants.js +32 -0
- package/dist/cjs/common/constants.js.map +1 -0
- package/dist/cjs/common/index.d.ts +3 -0
- package/dist/cjs/common/index.d.ts.map +1 -0
- package/dist/cjs/common/index.js +19 -0
- package/dist/cjs/common/index.js.map +1 -0
- package/dist/cjs/common/logger.d.ts +21 -0
- package/dist/cjs/common/logger.d.ts.map +1 -0
- package/dist/cjs/common/logger.js +50 -0
- package/dist/cjs/common/logger.js.map +1 -0
- package/dist/cjs/common/types.d.ts +5 -0
- package/dist/cjs/common/types.d.ts.map +1 -0
- package/dist/cjs/common/types.js +3 -0
- package/dist/cjs/common/types.js.map +1 -0
- package/dist/cjs/corpus/chunker.d.ts +12 -0
- package/dist/cjs/corpus/chunker.d.ts.map +1 -0
- package/dist/cjs/corpus/chunker.js +298 -0
- package/dist/cjs/corpus/chunker.js.map +1 -0
- package/dist/cjs/corpus/common/index.d.ts +2 -0
- package/dist/cjs/corpus/common/index.d.ts.map +1 -0
- package/dist/cjs/corpus/common/index.js +18 -0
- package/dist/cjs/corpus/common/index.js.map +1 -0
- package/dist/cjs/corpus/common/types.d.ts +37 -0
- package/dist/cjs/corpus/common/types.d.ts.map +1 -0
- package/dist/cjs/corpus/common/types.js +3 -0
- package/dist/cjs/corpus/common/types.js.map +1 -0
- package/dist/cjs/corpus/frontmatter.d.ts +13 -0
- package/dist/cjs/corpus/frontmatter.d.ts.map +1 -0
- package/dist/cjs/corpus/frontmatter.js +31 -0
- package/dist/cjs/corpus/frontmatter.js.map +1 -0
- package/dist/cjs/corpus/index.d.ts +6 -0
- package/dist/cjs/corpus/index.d.ts.map +1 -0
- package/dist/cjs/corpus/index.js +22 -0
- package/dist/cjs/corpus/index.js.map +1 -0
- package/dist/cjs/corpus/loader.d.ts +16 -0
- package/dist/cjs/corpus/loader.d.ts.map +1 -0
- package/dist/cjs/corpus/loader.js +72 -0
- package/dist/cjs/corpus/loader.js.map +1 -0
- package/dist/cjs/corpus/roots.d.ts +9 -0
- package/dist/cjs/corpus/roots.d.ts.map +1 -0
- package/dist/cjs/corpus/roots.js +30 -0
- package/dist/cjs/corpus/roots.js.map +1 -0
- package/dist/cjs/index.d.ts +2 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +18 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/protocol/common/constants.d.ts +9 -0
- package/dist/cjs/protocol/common/constants.d.ts.map +1 -0
- package/dist/cjs/protocol/common/constants.js +13 -0
- package/dist/cjs/protocol/common/constants.js.map +1 -0
- package/dist/cjs/protocol/common/index.d.ts +4 -0
- package/dist/cjs/protocol/common/index.d.ts.map +1 -0
- package/dist/cjs/protocol/common/index.js +20 -0
- package/dist/cjs/protocol/common/index.js.map +1 -0
- package/dist/cjs/protocol/common/rpc-error.d.ts +9 -0
- package/dist/cjs/protocol/common/rpc-error.d.ts.map +1 -0
- package/dist/cjs/protocol/common/rpc-error.js +12 -0
- package/dist/cjs/protocol/common/rpc-error.js.map +1 -0
- package/dist/cjs/protocol/common/types.d.ts +32 -0
- package/dist/cjs/protocol/common/types.d.ts.map +1 -0
- package/dist/cjs/protocol/common/types.js +3 -0
- package/dist/cjs/protocol/common/types.js.map +1 -0
- package/dist/cjs/protocol/index.d.ts +3 -0
- package/dist/cjs/protocol/index.d.ts.map +1 -0
- package/dist/cjs/protocol/index.js +19 -0
- package/dist/cjs/protocol/index.js.map +1 -0
- package/dist/cjs/protocol/transport.d.ts +28 -0
- package/dist/cjs/protocol/transport.d.ts.map +1 -0
- package/dist/cjs/protocol/transport.js +155 -0
- package/dist/cjs/protocol/transport.js.map +1 -0
- package/dist/cjs/search/common/constants.d.ts +23 -0
- package/dist/cjs/search/common/constants.d.ts.map +1 -0
- package/dist/cjs/search/common/constants.js +56 -0
- package/dist/cjs/search/common/constants.js.map +1 -0
- package/dist/cjs/search/common/index.d.ts +3 -0
- package/dist/cjs/search/common/index.d.ts.map +1 -0
- package/dist/cjs/search/common/index.js +19 -0
- package/dist/cjs/search/common/index.js.map +1 -0
- package/dist/cjs/search/common/types.d.ts +18 -0
- package/dist/cjs/search/common/types.d.ts.map +1 -0
- package/dist/cjs/search/common/types.js +3 -0
- package/dist/cjs/search/common/types.js.map +1 -0
- package/dist/cjs/search/index.d.ts +4 -0
- package/dist/cjs/search/index.d.ts.map +1 -0
- package/dist/cjs/search/index.js +20 -0
- package/dist/cjs/search/index.js.map +1 -0
- package/dist/cjs/search/planner.d.ts +13 -0
- package/dist/cjs/search/planner.d.ts.map +1 -0
- package/dist/cjs/search/planner.js +58 -0
- package/dist/cjs/search/planner.js.map +1 -0
- package/dist/cjs/search/store.d.ts +37 -0
- package/dist/cjs/search/store.d.ts.map +1 -0
- package/dist/cjs/search/store.js +141 -0
- package/dist/cjs/search/store.js.map +1 -0
- package/dist/cjs/server/freshness.d.ts +40 -0
- package/dist/cjs/server/freshness.d.ts.map +1 -0
- package/dist/cjs/server/freshness.js +85 -0
- package/dist/cjs/server/freshness.js.map +1 -0
- package/dist/cjs/server.d.ts +12 -0
- package/dist/cjs/server.d.ts.map +1 -0
- package/dist/cjs/server.js +65 -0
- package/dist/cjs/server.js.map +1 -0
- package/dist/cjs/tools/common/index.d.ts +2 -0
- package/dist/cjs/tools/common/index.d.ts.map +1 -0
- package/dist/cjs/tools/common/index.js +18 -0
- package/dist/cjs/tools/common/index.js.map +1 -0
- package/dist/cjs/tools/common/schemas.d.ts +23 -0
- package/dist/cjs/tools/common/schemas.d.ts.map +1 -0
- package/dist/cjs/tools/common/schemas.js +37 -0
- package/dist/cjs/tools/common/schemas.js.map +1 -0
- package/dist/cjs/tools/get.tool.d.ts +6 -0
- package/dist/cjs/tools/get.tool.d.ts.map +1 -0
- package/dist/cjs/tools/get.tool.js +115 -0
- package/dist/cjs/tools/get.tool.js.map +1 -0
- package/dist/cjs/tools/index.d.ts +4 -0
- package/dist/cjs/tools/index.d.ts.map +1 -0
- package/dist/cjs/tools/index.js +20 -0
- package/dist/cjs/tools/index.js.map +1 -0
- package/dist/cjs/tools/search.tool.d.ts +6 -0
- package/dist/cjs/tools/search.tool.d.ts.map +1 -0
- package/dist/cjs/tools/search.tool.js +58 -0
- package/dist/cjs/tools/search.tool.js.map +1 -0
- package/dist/corpus/changelogs/2025-12-16-initial-architecture.md +145 -0
- package/dist/corpus/changelogs/2025-12-16-model-repo-datasource-refactor.md +300 -0
- package/dist/corpus/changelogs/2025-12-17-refactor.md +90 -0
- package/dist/corpus/changelogs/2025-12-18-performance-optimizations.md +130 -0
- package/dist/corpus/changelogs/2025-12-18-repository-validation-security.md +255 -0
- package/dist/corpus/changelogs/2025-12-26-nested-relations-and-generics.md +86 -0
- package/dist/corpus/changelogs/2025-12-26-transaction-support.md +57 -0
- package/dist/corpus/changelogs/2025-12-29-dynamic-binding-registration.md +104 -0
- package/dist/corpus/changelogs/2025-12-29-snowflake-uid-helper.md +100 -0
- package/dist/corpus/changelogs/2025-12-30-repository-enhancements.md +214 -0
- package/dist/corpus/changelogs/2025-12-31-json-path-filtering-array-operators.md +214 -0
- package/dist/corpus/changelogs/2025-12-31-string-id-custom-generator.md +137 -0
- package/dist/corpus/changelogs/2026-01-02-default-filter-and-repository-mixins.md +421 -0
- package/dist/corpus/changelogs/2026-01-05-range-queries-content-range.md +184 -0
- package/dist/corpus/changelogs/2026-01-06-basic-authentication.md +103 -0
- package/dist/corpus/changelogs/2026-01-07-controller-route-customization.md +190 -0
- package/dist/corpus/changelogs/2026-01-11-logger-optimization-hf-logger.md +254 -0
- package/dist/corpus/changelogs/2026-02-06-socket-io-integration-fix.md +541 -0
- package/dist/corpus/changelogs/2026-02-10-websocket-heartbeat-payload.md +173 -0
- package/dist/corpus/changelogs/2026-02-11-crypto-refactor-ecdh.md +217 -0
- package/dist/corpus/changelogs/2026-02-11-websocket-encrypted-delivery.md +209 -0
- package/dist/corpus/changelogs/2026-02-11-websocket-generic-types.md +134 -0
- package/dist/corpus/changelogs/2026-02-16-authorization-system.md +378 -0
- package/dist/corpus/changelogs/2026-02-26-core-helpers-decoupling.md +145 -0
- package/dist/corpus/changelogs/2026-02-27-jwks-authentication.md +391 -0
- package/dist/corpus/changelogs/2026-03-02-model-authorize-settings.md +155 -0
- package/dist/corpus/changelogs/2026-03-04-jwt-payload-field-codecs.md +219 -0
- package/dist/corpus/changelogs/2026-03-06-filter-offset-skip-fix.md +88 -0
- package/dist/corpus/changelogs/2026-03-10-kafka-helpers-refactor.md +225 -0
- package/dist/corpus/changelogs/2026-03-12-kafka-helpers-enhancement.md +169 -0
- package/dist/corpus/changelogs/2026-03-15-grpc-controller-system.md +281 -0
- package/dist/corpus/changelogs/2026-03-30-row-level-locking.md +134 -0
- package/dist/corpus/changelogs/2026-03-31-typescript-6-and-toolchain.md +100 -0
- package/dist/corpus/changelogs/2026-04-23-error-response-extra-fields.md +131 -0
- package/dist/corpus/changelogs/2026-05-05-refresh-token-endpoint.md +116 -0
- package/dist/corpus/changelogs/2026-05-08-crud-route-toggles-and-typed-responses.md +136 -0
- package/dist/corpus/changelogs/2026-05-20-relation-scope-default-limit.md +133 -0
- package/dist/corpus/changelogs/2026-05-21-mass-mutation-guards.md +102 -0
- package/dist/corpus/changelogs/2026-05-22-casbin-adapter-schema-qualification.md +72 -0
- package/dist/corpus/changelogs/2026-05-25-per-model-default-limit.md +68 -0
- package/dist/corpus/changelogs/2026-05-27-casbin-domain-matching-function.md +90 -0
- package/dist/corpus/changelogs/2026-06-02-authorize-scoped-rbac.md +105 -0
- package/dist/corpus/changelogs/2026-06-14-validation-codes-and-error-hardening.md +124 -0
- package/dist/corpus/changelogs/2026-06-18-auth-user-information-endpoint.md +69 -0
- package/dist/corpus/changelogs/2026-06-25-redis-helpers-refactor.md +199 -0
- package/dist/corpus/changelogs/2026-07-05-unified-repository-connectors.md +206 -0
- package/dist/corpus/changelogs/2026-07-08-typesense-advanced-search.md +72 -0
- package/dist/corpus/changelogs/2026-07-11-connectors-consistency-hardening.md +192 -0
- package/dist/corpus/changelogs/2026-07-11-postgres-driver-seam-supabase.md +146 -0
- package/dist/corpus/changelogs/2026-07-12-core-consolidation-dedup.md +127 -0
- package/dist/corpus/changelogs/2026-07-13-hardening-round.md +99 -0
- package/dist/corpus/changelogs/2026-07-14-driver-class-bundling.md +100 -0
- package/dist/corpus/changelogs/2026-07-16-error-catalog-and-structured-message.md +64 -0
- package/dist/corpus/changelogs/2026-07-16-secrets-vault-integration.md +72 -0
- package/dist/corpus/changelogs/2026-07-17-error-module-redesign.md +202 -0
- package/dist/corpus/changelogs/2026-07-17-logger-correctness-pass.md +46 -0
- package/dist/corpus/changelogs/2026-07-17-secrets-bundler-invisible-peers.md +30 -0
- package/dist/corpus/changelogs/2026-07-18-dependency-refresh.md +55 -0
- package/dist/corpus/changelogs/2026-07-18-logger-overhaul.md +104 -0
- package/dist/corpus/changelogs/2026-07-18-repository-read-retry.md +74 -0
- package/dist/corpus/changelogs/2026-07-20-casbin-custom-grants.md +72 -0
- package/dist/corpus/changelogs/2026-07-20-casbin-single-wave-extraction.md +58 -0
- package/dist/corpus/changelogs/2026-07-20-error-from-error-client.md +66 -0
- package/dist/corpus/changelogs/2026-07-21-casbin-connector-resolution-fix.md +36 -0
- package/dist/corpus/changelogs/2026-07-25-error-logging.md +129 -0
- package/dist/corpus/changelogs/2026-07-25-ignis-filter-package.md +75 -0
- package/dist/corpus/changelogs/2026-07-26-search-and-mail-error-codes.md +58 -0
- package/dist/corpus/changelogs/2026-08-01-relational-connector-lift.md +403 -0
- package/dist/corpus/changelogs/2026-08-02-sqlite-and-pglite-connectors.md +177 -0
- package/dist/corpus/changelogs/2026-08-05-search-dialect-relational-parity.md +90 -0
- package/dist/corpus/changelogs/2026-08-06-aes-pbkdf2-and-key-rotation.md +131 -0
- package/dist/corpus/changelogs/2026-08-07-default-query-by.md +62 -0
- package/dist/corpus/changelogs/2026-08-07-nested-fields-and-order-validation.md +75 -0
- package/dist/corpus/changelogs/2026-08-07-typesense-multi-search-transport.md +97 -0
- package/dist/corpus/changelogs/2026-08-12-json-log-arguments.md +69 -0
- package/dist/corpus/changelogs/2026-08-13-browser-pure-kernel.md +130 -0
- package/dist/corpus/changelogs/2026-08-18-esm-builds-and-one-default-stack.md +104 -0
- package/dist/corpus/changelogs/2026-08-18-opaque-uid-helper.md +43 -0
- package/dist/corpus/changelogs/2026-08-19-browser-bff-multi-tab.md +88 -0
- package/dist/corpus/changelogs/2026-08-19-service-authentication-phase-1.md +157 -0
- package/dist/corpus/changelogs/2026-08-21-service-authentication-strategy.md +127 -0
- package/dist/corpus/changelogs/2026-08-22-logger-color-off-outside-development.md +48 -0
- package/dist/corpus/changelogs/2026-08-24-query-wrapper-schemas.md +77 -0
- package/dist/corpus/changelogs/2026-08-29-casbin-domain-hierarchy.md +66 -0
- package/dist/corpus/changelogs/2026-08-30-authorize-no-enforcer-fails-closed.md +60 -0
- package/dist/corpus/changelogs/2026-08-30-crypto-hashing.md +158 -0
- package/dist/corpus/changelogs/2026-08-30-policy-definition-extra-variants.md +62 -0
- package/dist/corpus/changelogs/2026-08-30-row-scope-filter.md +221 -0
- package/dist/corpus/changelogs/2026-08-30-search-connector-health-and-import-contract.md +46 -0
- package/dist/corpus/changelogs/2026-08-30-tree-and-recursive-sql.md +188 -0
- package/dist/corpus/changelogs/2026-08-30-typed-where-clauses.md +114 -0
- package/dist/corpus/changelogs/2026-08-31-entity-id-brand.md +70 -0
- package/dist/corpus/changelogs/2026-08-31-event-bus-retry.md +143 -0
- package/dist/corpus/changelogs/2026-08-31-policy-domain-split-release-b.md +54 -0
- package/dist/corpus/changelogs/2026-08-31-policy-domain-split.md +175 -0
- package/dist/corpus/changelogs/2026-08-31-scope-filter-boot-checks.md +77 -0
- package/dist/corpus/changelogs/2026-09-02-bundle-safe-helpers.md +71 -0
- package/dist/corpus/changelogs/2026-09-02-decorator-artifact-registration.md +119 -0
- package/dist/corpus/changelogs/2026-09-03-deprecated-boot-api-removed.md +133 -0
- package/dist/corpus/changelogs/2026-09-04-dependency-floors-raised.md +61 -0
- package/dist/corpus/changelogs/2026-09-05-boot-checks.md +57 -0
- package/dist/corpus/changelogs/2026-09-05-core-drops-boot-dependency.md +44 -0
- package/dist/corpus/changelogs/2026-09-05-list-response-contract.md +74 -0
- package/dist/corpus/changelogs/2026-09-06-bun-serve-options.md +51 -0
- package/dist/corpus/changelogs/2026-09-06-ignis-atlas.md +54 -0
- package/dist/corpus/changelogs/2026-09-06-repository-inheritance-and-quiet-cli.md +46 -0
- package/dist/corpus/changelogs/2026-09-06-shared-singletons-across-module-copies.md +43 -0
- package/dist/corpus/changelogs/index.md +135 -0
- package/dist/corpus/changelogs/planned-schema-migrator.md +553 -0
- package/dist/corpus/changelogs/template.md +64 -0
- package/dist/corpus/wiki/best-practices/api-usage-examples.md +617 -0
- package/dist/corpus/wiki/best-practices/architectural-patterns.md +437 -0
- package/dist/corpus/wiki/best-practices/architecture-decisions.md +524 -0
- package/dist/corpus/wiki/best-practices/code-style-standards/advanced-patterns.md +283 -0
- package/dist/corpus/wiki/best-practices/code-style-standards/constants-configuration.md +240 -0
- package/dist/corpus/wiki/best-practices/code-style-standards/control-flow.md +280 -0
- package/dist/corpus/wiki/best-practices/code-style-standards/documentation.md +241 -0
- package/dist/corpus/wiki/best-practices/code-style-standards/function-patterns.md +178 -0
- package/dist/corpus/wiki/best-practices/code-style-standards/index.md +114 -0
- package/dist/corpus/wiki/best-practices/code-style-standards/naming-conventions.md +200 -0
- package/dist/corpus/wiki/best-practices/code-style-standards/route-definitions.md +205 -0
- package/dist/corpus/wiki/best-practices/code-style-standards/tooling.md +168 -0
- package/dist/corpus/wiki/best-practices/code-style-standards/type-safety.md +199 -0
- package/dist/corpus/wiki/best-practices/common-pitfalls.md +447 -0
- package/dist/corpus/wiki/best-practices/contribution-workflow.md +211 -0
- package/dist/corpus/wiki/best-practices/data-modeling.md +548 -0
- package/dist/corpus/wiki/best-practices/deployment-strategies.md +736 -0
- package/dist/corpus/wiki/best-practices/error-handling.md +604 -0
- package/dist/corpus/wiki/best-practices/index.md +206 -0
- package/dist/corpus/wiki/best-practices/performance-optimization.md +437 -0
- package/dist/corpus/wiki/best-practices/security-guidelines.md +523 -0
- package/dist/corpus/wiki/best-practices/testing-strategies.md +639 -0
- package/dist/corpus/wiki/best-practices/troubleshooting-tips.md +227 -0
- package/dist/corpus/wiki/extensions/atlas/index.md +65 -0
- package/dist/corpus/wiki/extensions/components/api-reference.md +268 -0
- package/dist/corpus/wiki/extensions/components/authentication/api.md +643 -0
- package/dist/corpus/wiki/extensions/components/authentication/errors.md +211 -0
- package/dist/corpus/wiki/extensions/components/authentication/index.md +171 -0
- package/dist/corpus/wiki/extensions/components/authentication/usage.md +464 -0
- package/dist/corpus/wiki/extensions/components/authorization/api.md +1509 -0
- package/dist/corpus/wiki/extensions/components/authorization/errors.md +397 -0
- package/dist/corpus/wiki/extensions/components/authorization/getting-started.md +227 -0
- package/dist/corpus/wiki/extensions/components/authorization/index.md +155 -0
- package/dist/corpus/wiki/extensions/components/authorization/usage.md +587 -0
- package/dist/corpus/wiki/extensions/components/health-check.md +227 -0
- package/dist/corpus/wiki/extensions/components/index.md +26 -0
- package/dist/corpus/wiki/extensions/components/mail/api.md +773 -0
- package/dist/corpus/wiki/extensions/components/mail/errors.md +190 -0
- package/dist/corpus/wiki/extensions/components/mail/index.md +182 -0
- package/dist/corpus/wiki/extensions/components/mail/usage.md +370 -0
- package/dist/corpus/wiki/extensions/components/request-tracker.md +152 -0
- package/dist/corpus/wiki/extensions/components/socket-io/api.md +728 -0
- package/dist/corpus/wiki/extensions/components/socket-io/errors.md +119 -0
- package/dist/corpus/wiki/extensions/components/socket-io/index.md +116 -0
- package/dist/corpus/wiki/extensions/components/socket-io/usage.md +429 -0
- package/dist/corpus/wiki/extensions/components/static-asset/api.md +593 -0
- package/dist/corpus/wiki/extensions/components/static-asset/errors.md +159 -0
- package/dist/corpus/wiki/extensions/components/static-asset/index.md +160 -0
- package/dist/corpus/wiki/extensions/components/static-asset/usage.md +253 -0
- package/dist/corpus/wiki/extensions/components/template/api-page.md +125 -0
- package/dist/corpus/wiki/extensions/components/template/errors-page.md +100 -0
- package/dist/corpus/wiki/extensions/components/template/index.md +104 -0
- package/dist/corpus/wiki/extensions/components/template/setup-page.md +134 -0
- package/dist/corpus/wiki/extensions/components/template/single-page.md +132 -0
- package/dist/corpus/wiki/extensions/components/template/usage-page.md +127 -0
- package/dist/corpus/wiki/extensions/components/websocket/api.md +416 -0
- package/dist/corpus/wiki/extensions/components/websocket/errors.md +128 -0
- package/dist/corpus/wiki/extensions/components/websocket/index.md +127 -0
- package/dist/corpus/wiki/extensions/components/websocket/usage.md +257 -0
- package/dist/corpus/wiki/extensions/helpers/cron/index.md +116 -0
- package/dist/corpus/wiki/extensions/helpers/crypto/index.md +136 -0
- package/dist/corpus/wiki/extensions/helpers/crypto/reference.md +544 -0
- package/dist/corpus/wiki/extensions/helpers/env/index.md +119 -0
- package/dist/corpus/wiki/extensions/helpers/error/index.md +373 -0
- package/dist/corpus/wiki/extensions/helpers/index.md +63 -0
- package/dist/corpus/wiki/extensions/helpers/inversion/index.md +142 -0
- package/dist/corpus/wiki/extensions/helpers/inversion/reference.md +531 -0
- package/dist/corpus/wiki/extensions/helpers/kafka/admin.md +210 -0
- package/dist/corpus/wiki/extensions/helpers/kafka/compile-binary.md +125 -0
- package/dist/corpus/wiki/extensions/helpers/kafka/consumer.md +422 -0
- package/dist/corpus/wiki/extensions/helpers/kafka/examples.md +154 -0
- package/dist/corpus/wiki/extensions/helpers/kafka/index.md +84 -0
- package/dist/corpus/wiki/extensions/helpers/kafka/producer.md +408 -0
- package/dist/corpus/wiki/extensions/helpers/kafka/schema-registry.md +194 -0
- package/dist/corpus/wiki/extensions/helpers/logger/hf-logger.md +220 -0
- package/dist/corpus/wiki/extensions/helpers/logger/index.md +156 -0
- package/dist/corpus/wiki/extensions/helpers/logger/pino.md +107 -0
- package/dist/corpus/wiki/extensions/helpers/logger/reference.md +938 -0
- package/dist/corpus/wiki/extensions/helpers/network/api.md +1067 -0
- package/dist/corpus/wiki/extensions/helpers/network/index.md +189 -0
- package/dist/corpus/wiki/extensions/helpers/queue/index.md +165 -0
- package/dist/corpus/wiki/extensions/helpers/queue/reference.md +490 -0
- package/dist/corpus/wiki/extensions/helpers/redis/index.md +159 -0
- package/dist/corpus/wiki/extensions/helpers/redis/reference.md +784 -0
- package/dist/corpus/wiki/extensions/helpers/secrets/index.md +136 -0
- package/dist/corpus/wiki/extensions/helpers/socket-io/api.md +618 -0
- package/dist/corpus/wiki/extensions/helpers/socket-io/index.md +167 -0
- package/dist/corpus/wiki/extensions/helpers/storage/api.md +1021 -0
- package/dist/corpus/wiki/extensions/helpers/storage/index.md +162 -0
- package/dist/corpus/wiki/extensions/helpers/template/index.md +69 -0
- package/dist/corpus/wiki/extensions/helpers/template/single-page.md +126 -0
- package/dist/corpus/wiki/extensions/helpers/types/index.md +143 -0
- package/dist/corpus/wiki/extensions/helpers/types/reference.md +708 -0
- package/dist/corpus/wiki/extensions/helpers/uid/index.md +259 -0
- package/dist/corpus/wiki/extensions/helpers/websocket/api.md +888 -0
- package/dist/corpus/wiki/extensions/helpers/websocket/index.md +139 -0
- package/dist/corpus/wiki/extensions/helpers/worker-thread/index.md +142 -0
- package/dist/corpus/wiki/extensions/helpers/worker-thread/reference.md +434 -0
- package/dist/corpus/wiki/extensions/index.md +46 -0
- package/dist/corpus/wiki/guides/core-concepts/application/bootstrapping.md +274 -0
- package/dist/corpus/wiki/guides/core-concepts/application/index.md +239 -0
- package/dist/corpus/wiki/guides/core-concepts/components-guide.md +513 -0
- package/dist/corpus/wiki/guides/core-concepts/components.md +155 -0
- package/dist/corpus/wiki/guides/core-concepts/dependency-injection.md +336 -0
- package/dist/corpus/wiki/guides/core-concepts/grpc-controllers.md +296 -0
- package/dist/corpus/wiki/guides/core-concepts/persistent/datasources.md +195 -0
- package/dist/corpus/wiki/guides/core-concepts/persistent/index.md +132 -0
- package/dist/corpus/wiki/guides/core-concepts/persistent/models.md +331 -0
- package/dist/corpus/wiki/guides/core-concepts/persistent/pglite.md +218 -0
- package/dist/corpus/wiki/guides/core-concepts/persistent/postgres-drivers.md +207 -0
- package/dist/corpus/wiki/guides/core-concepts/persistent/repositories.md +311 -0
- package/dist/corpus/wiki/guides/core-concepts/persistent/search-meilisearch.md +195 -0
- package/dist/corpus/wiki/guides/core-concepts/persistent/search-typesense.md +443 -0
- package/dist/corpus/wiki/guides/core-concepts/persistent/sqlite.md +296 -0
- package/dist/corpus/wiki/guides/core-concepts/persistent/transactions.md +238 -0
- package/dist/corpus/wiki/guides/core-concepts/rest-controllers.md +465 -0
- package/dist/corpus/wiki/guides/core-concepts/secrets-vault.md +177 -0
- package/dist/corpus/wiki/guides/core-concepts/services.md +389 -0
- package/dist/corpus/wiki/guides/get-started/5-minute-quickstart.md +163 -0
- package/dist/corpus/wiki/guides/get-started/philosophy.md +135 -0
- package/dist/corpus/wiki/guides/get-started/setup.md +136 -0
- package/dist/corpus/wiki/guides/index.md +82 -0
- package/dist/corpus/wiki/guides/migrations/boot-api-removal-migration.md +79 -0
- package/dist/corpus/wiki/guides/migrations/redis-helpers-migration.md +178 -0
- package/dist/corpus/wiki/guides/migrations/scoped-rbac-migration.md +300 -0
- package/dist/corpus/wiki/guides/migrations/unified-connectors-migration.md +114 -0
- package/dist/corpus/wiki/guides/reference/glossary.md +250 -0
- package/dist/corpus/wiki/guides/tutorials/building-a-crud-api.md +704 -0
- package/dist/corpus/wiki/guides/tutorials/complete-installation.md +440 -0
- package/dist/corpus/wiki/guides/tutorials/ecommerce-api.md +1442 -0
- package/dist/corpus/wiki/guides/tutorials/realtime-chat.md +1571 -0
- package/dist/corpus/wiki/guides/tutorials/testing.md +264 -0
- package/dist/corpus/wiki/index.md +5 -0
- package/dist/corpus/wiki/public/apple-touch-icon.png +0 -0
- package/dist/corpus/wiki/public/logo.svg +1 -0
- package/dist/corpus/wiki/public/og-image.png +0 -0
- package/dist/corpus/wiki/public/site.webmanifest +11 -0
- package/dist/corpus/wiki/references/base/application.md +482 -0
- package/dist/corpus/wiki/references/base/bootstrapping.md +351 -0
- package/dist/corpus/wiki/references/base/components.md +883 -0
- package/dist/corpus/wiki/references/base/connectors.md +121 -0
- package/dist/corpus/wiki/references/base/controllers.md +1022 -0
- package/dist/corpus/wiki/references/base/datasources-reference.md +598 -0
- package/dist/corpus/wiki/references/base/datasources.md +165 -0
- package/dist/corpus/wiki/references/base/dependency-injection.md +423 -0
- package/dist/corpus/wiki/references/base/filter-system/application-usage.md +215 -0
- package/dist/corpus/wiki/references/base/filter-system/array-operators.md +135 -0
- package/dist/corpus/wiki/references/base/filter-system/comparison-operators.md +110 -0
- package/dist/corpus/wiki/references/base/filter-system/default-filter.md +267 -0
- package/dist/corpus/wiki/references/base/filter-system/fields-order-pagination.md +244 -0
- package/dist/corpus/wiki/references/base/filter-system/index.md +149 -0
- package/dist/corpus/wiki/references/base/filter-system/json-filtering.md +122 -0
- package/dist/corpus/wiki/references/base/filter-system/list-operators.md +56 -0
- package/dist/corpus/wiki/references/base/filter-system/logical-operators.md +148 -0
- package/dist/corpus/wiki/references/base/filter-system/null-operators.md +80 -0
- package/dist/corpus/wiki/references/base/filter-system/pattern-matching.md +105 -0
- package/dist/corpus/wiki/references/base/filter-system/quick-reference.md +172 -0
- package/dist/corpus/wiki/references/base/filter-system/range-operators.md +53 -0
- package/dist/corpus/wiki/references/base/filter-system/tips.md +154 -0
- package/dist/corpus/wiki/references/base/filter-system/use-cases.md +394 -0
- package/dist/corpus/wiki/references/base/grpc-controllers.md +1020 -0
- package/dist/corpus/wiki/references/base/index.md +112 -0
- package/dist/corpus/wiki/references/base/middlewares.md +543 -0
- package/dist/corpus/wiki/references/base/models-reference.md +886 -0
- package/dist/corpus/wiki/references/base/models.md +154 -0
- package/dist/corpus/wiki/references/base/providers.md +728 -0
- package/dist/corpus/wiki/references/base/repositories/advanced.md +627 -0
- package/dist/corpus/wiki/references/base/repositories/index.md +152 -0
- package/dist/corpus/wiki/references/base/repositories/mixins.md +103 -0
- package/dist/corpus/wiki/references/base/repositories/relations.md +379 -0
- package/dist/corpus/wiki/references/base/repositories/soft-deletable.md +307 -0
- package/dist/corpus/wiki/references/base/secrets.md +267 -0
- package/dist/corpus/wiki/references/base/services.md +417 -0
- package/dist/corpus/wiki/references/configuration/environment-variables.md +498 -0
- package/dist/corpus/wiki/references/configuration/index.md +132 -0
- package/dist/corpus/wiki/references/index.md +172 -0
- package/dist/corpus/wiki/references/quick-reference.md +594 -0
- package/dist/corpus/wiki/references/utilities/date.md +50 -0
- package/dist/corpus/wiki/references/utilities/duration.md +85 -0
- package/dist/corpus/wiki/references/utilities/index.md +81 -0
- package/dist/corpus/wiki/references/utilities/jsx-reference.md +298 -0
- package/dist/corpus/wiki/references/utilities/jsx.md +131 -0
- package/dist/corpus/wiki/references/utilities/module.md +110 -0
- package/dist/corpus/wiki/references/utilities/parse.md +55 -0
- package/dist/corpus/wiki/references/utilities/performance.md +54 -0
- package/dist/corpus/wiki/references/utilities/promise.md +54 -0
- package/dist/corpus/wiki/references/utilities/request.md +85 -0
- package/dist/corpus/wiki/references/utilities/retry.md +148 -0
- package/dist/corpus/wiki/references/utilities/schema.md +69 -0
- package/dist/corpus/wiki/references/utilities/statuses-reference.md +360 -0
- package/dist/corpus/wiki/references/utilities/statuses.md +122 -0
- package/package.json +74 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Search and Mail Errors Join the Framework Catalog
|
|
3
|
+
description: Five client-facing codes from the search connectors and the mail component are now catalogued definitions instead of hand-typed at each throw. Codes and statuses are unchanged on the wire.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Changelog - 2026-07-26
|
|
7
|
+
|
|
8
|
+
## Search and Mail Errors Join the Framework Catalog
|
|
9
|
+
|
|
10
|
+
<Badge type="tip" text="Enhancement" />
|
|
11
|
+
|
|
12
|
+
**In one line.** Nothing changes for a client - the same five codes with the same statuses - but the framework can no longer drift between two throw sites that mean the same failure.
|
|
13
|
+
|
|
14
|
+
## What changed
|
|
15
|
+
|
|
16
|
+
Two catalogs join the five that already existed:
|
|
17
|
+
|
|
18
|
+
| Catalog | Codes |
|
|
19
|
+
|---|---|
|
|
20
|
+
| `SearchErrors` | `core.search_engine.not_found`, `core.search_engine.already_exists` |
|
|
21
|
+
| `MailErrors` | `core.mail.template_not_found`, `core.mail.invalid_configuration`, `core.mail.invalid_recipient` |
|
|
22
|
+
|
|
23
|
+
Every code and status is byte-identical to before. If you branch on `error.normalized.code`, nothing to do.
|
|
24
|
+
|
|
25
|
+
## The problem it solves
|
|
26
|
+
|
|
27
|
+
These nine throw sites already carried a code. What they did not have was one place that tied the code to its status - each throw retyped both:
|
|
28
|
+
|
|
29
|
+
```typescript
|
|
30
|
+
// before - in the Typesense connector, and again in the Meilisearch one
|
|
31
|
+
throw getError({
|
|
32
|
+
statusCode: HTTP.ResultCodes.RS_4.Conflict,
|
|
33
|
+
messageCode: SearchErrorCodes.ALREADY_EXISTS,
|
|
34
|
+
message: `Document '${id}' already exists in collection '${collection}'.`,
|
|
35
|
+
});
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
`ALREADY_EXISTS` with `Conflict` was hand-typed in two connectors, `INVALID_CONFIGURATION` with `400` in three mail sites, and mail spelled its statuses as bare `400` / `404` rather than `HTTP.ResultCodes`. Nothing checked that the copies agreed. That is how one failure ends up with two codes.
|
|
39
|
+
|
|
40
|
+
```typescript
|
|
41
|
+
// after - status and code come from the definition, message stays human
|
|
42
|
+
throw getError({
|
|
43
|
+
error: SearchErrors.ALREADY_EXISTS,
|
|
44
|
+
message: `Document '${id}' already exists in collection '${collection}'.`,
|
|
45
|
+
});
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
All five codes are pinned in a test, so renaming one now fails the build here rather than a customer's frontend.
|
|
49
|
+
|
|
50
|
+
## What is deliberately not catalogued
|
|
51
|
+
|
|
52
|
+
Only **client-facing 4xx** get codes. An internal failure - a misconfiguration, a DI invariant, a programming error - stays codeless on purpose: it surfaces as a 500, and a code there is an identifier nobody can act on.
|
|
53
|
+
|
|
54
|
+
That distinction is worth stating because the raw numbers mislead. Of the `getError` sites in core that still spell their message inline, 197 declare no status at all and 38 declare a 5xx. None of those belong in a catalog. Exactly nine carried a 4xx, and this change closed them.
|
|
55
|
+
|
|
56
|
+
## Migration
|
|
57
|
+
|
|
58
|
+
None. `SearchErrorCodes` and `MailErrorCodes` remain exported - their other members serve the 5xx paths that stay codeless.
|
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Relational Connector Lift - Engine-Neutral SQL Tier
|
|
3
|
+
description: The SQL repository and datasource tier splits into an engine-neutral connectors/relational and a Postgres branch, reachable at a new @venizia/ignis/relational export. Ten names leave @venizia/ignis/postgres for their Postgres spellings, and findById finally accepts options.retry.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Changelog - 2026-08-01
|
|
7
|
+
|
|
8
|
+
## Relational Connector Lift - Engine-Neutral SQL Tier
|
|
9
|
+
|
|
10
|
+
<Badge type="danger" text="Breaking Change" /> <Badge type="tip" text="Enhancement" /> <Badge type="info" text="Bug Fix" /> <Badge type="warning" text="Behavior Change" />
|
|
11
|
+
|
|
12
|
+
**In one line.** IGNIS's SQL repository and datasource tier now splits into an engine-neutral
|
|
13
|
+
`connectors/relational` and a Postgres branch on top of it, published at a new
|
|
14
|
+
`@venizia/ignis/relational` export. Ten `*Relational*` names leave `@venizia/ignis` and
|
|
15
|
+
`@venizia/ignis/postgres` for their Postgres spellings on the same path, and `findById` accepts
|
|
16
|
+
`options.retry` for the first time.
|
|
17
|
+
|
|
18
|
+
**Upgrading?** Go straight to the [Migration guide](#migration-guide). It is a detection grep, a
|
|
19
|
+
codemod, and a short table of hand edits. Every break here is a rename, so `tsc` finds all of them.
|
|
20
|
+
|
|
21
|
+
## The problem it solves
|
|
22
|
+
|
|
23
|
+
Every SQL class in IGNIS - `DefaultCRUDRepository`, `BasePostgresDataSource`, the query dialect - was
|
|
24
|
+
hard-wired to Postgres, down to a single class calling Drizzle's Postgres query builder directly. A
|
|
25
|
+
second SQL engine (SQLite, or a Postgres-compatible engine like PGlite for tests and browsers) had no
|
|
26
|
+
seam to plug into; it would have needed its own copy of the repository chain.
|
|
27
|
+
|
|
28
|
+
## What changed
|
|
29
|
+
|
|
30
|
+
- **New engine-neutral tier.** `connectors/relational` carries the datasource root, driver contract,
|
|
31
|
+
entity base, and the five-class repository chain (`RelationalBaseRepository` through
|
|
32
|
+
`SoftDeletableRelationalRepository`), all free of Postgres-specific Drizzle imports.
|
|
33
|
+
- **One repository, any SQL engine.** A repository reaches the database through two ports its
|
|
34
|
+
datasource supplies: `getQueryDialect()` (filter and update translation) and `getQueryExecutor()`
|
|
35
|
+
(the seven query verbs - `select`, `count`, `findMany`, `findFirst`, `insert`, `update`, `remove`).
|
|
36
|
+
`PostgresQueryExecutor` is now the only place in `connectors/postgres` that calls a Drizzle query
|
|
37
|
+
builder.
|
|
38
|
+
- **New `@venizia/ignis/relational` export**, published beside `@venizia/ignis/postgres`. It is not
|
|
39
|
+
merged into the root barrel - the two tiers declare several of the same class names (see Details).
|
|
40
|
+
- **`@venizia/ignis/relational` publishes a dialect-free `TTableSchemaWithId`**, bound by Drizzle's
|
|
41
|
+
`Table` rather than `PgTable`, so a `sqliteTable` satisfies it. The `TTableSchemaWithId` on
|
|
42
|
+
`@venizia/ignis` and `@venizia/ignis/postgres` is unchanged and stays `PgTable`-branded - it has to
|
|
43
|
+
compose with the `TTableObject` and `TTableInsert` those entries serve.
|
|
44
|
+
- **`findById` now accepts `options.retry`** on `SoftDeletableRepository`. The runtime always
|
|
45
|
+
supported it; only the type signature rejected it. See [Fixes](#fixes).
|
|
46
|
+
|
|
47
|
+
## Breaking changes
|
|
48
|
+
|
|
49
|
+
Every rename below is name-only. The class or type is the same one you already use, on the same
|
|
50
|
+
import path, with the same type parameters and the same behavior.
|
|
51
|
+
|
|
52
|
+
### Ten names move to their Postgres spelling
|
|
53
|
+
|
|
54
|
+
The neutral tier now declares the `*Relational*` names for real, so `@venizia/ignis/postgres` can no
|
|
55
|
+
longer alias them onto its own classes. One name would mean two different classes on sibling
|
|
56
|
+
sub-paths. Each old name has a Postgres spelling that was already exported before the lift.
|
|
57
|
+
|
|
58
|
+
Rename the import. Do not switch to `@venizia/ignis/relational` - the class of that name there is the
|
|
59
|
+
neutral one, and its `connector` is `unknown` rather than a `PgDatabase`.
|
|
60
|
+
|
|
61
|
+
| Old name | Use instead | Kind |
|
|
62
|
+
|----------|-------------|------|
|
|
63
|
+
| `RelationalBaseRepository` | `PostgresBaseRepository` | abstract class |
|
|
64
|
+
| `ReadableRelationalRepository` | `ReadableRepository` | class |
|
|
65
|
+
| `PersistableRelationalRepository` | `PersistableRepository` | class |
|
|
66
|
+
| `DefaultRelationalRepository` | `DefaultCRUDRepository` | class |
|
|
67
|
+
| `SoftDeletableRelationalRepository` | `SoftDeletableRepository` | class |
|
|
68
|
+
| `AbstractRelationalDataSource` | `AbstractPostgresDataSource` | abstract class |
|
|
69
|
+
| `BaseRelationalDataSource` | `BasePostgresDataSource` | abstract class |
|
|
70
|
+
| `FilterBuilder` | `PostgresFilterBuilder` | class |
|
|
71
|
+
| `IRelationalDriver` | `TRelationalDriver` | type |
|
|
72
|
+
| `IRelationalConnection` | `TRelationalConnection` | type |
|
|
73
|
+
|
|
74
|
+
```typescript
|
|
75
|
+
// Before
|
|
76
|
+
import { BaseRelationalDataSource, DefaultRelationalRepository, FilterBuilder } from '@venizia/ignis';
|
|
77
|
+
// After
|
|
78
|
+
import { BasePostgresDataSource, DefaultCRUDRepository, PostgresFilterBuilder } from '@venizia/ignis';
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
A repository subclass changes only its `extends` clause:
|
|
82
|
+
|
|
83
|
+
```typescript
|
|
84
|
+
// Before
|
|
85
|
+
export class UserRepository extends DefaultRelationalRepository<typeof User.schema> {}
|
|
86
|
+
// After
|
|
87
|
+
export class UserRepository extends DefaultCRUDRepository<typeof User.schema> {}
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
`BaseDataSource`, `BaseEntity`, `BasePostgresEntity`, `BaseRelationalEntity`, `IStatementResult` and
|
|
91
|
+
`UpdateBuilder` are untouched. Each still resolves from `@venizia/ignis` and
|
|
92
|
+
`@venizia/ignis/postgres` under the name you already use. `NodePostgresDriver` and `PostgresJsDriver`
|
|
93
|
+
keep their own sub-paths, `@venizia/ignis/postgres/node-postgres` and
|
|
94
|
+
`@venizia/ignis/postgres/postgres-js`, unchanged.
|
|
95
|
+
|
|
96
|
+
### The two driver types are now `T`-prefixed
|
|
97
|
+
|
|
98
|
+
`IRelationalDriver` and `IRelationalConnection` were interfaces in
|
|
99
|
+
`connectors/postgres/drivers/driver.ts`. They are now Postgres *narrowings* - type aliases over the
|
|
100
|
+
neutral interfaces of the same name. IGNIS names a symbol after its declaration keyword: `I` for an
|
|
101
|
+
`interface`, `T` for a `type`. So the aliases are `TRelationalDriver` and `TRelationalConnection`.
|
|
102
|
+
|
|
103
|
+
The type parameters did not change, so an existing driver class needs one edit:
|
|
104
|
+
|
|
105
|
+
```typescript
|
|
106
|
+
// Before
|
|
107
|
+
import type { IRelationalConnection, IRelationalDriver } from '@venizia/ignis/postgres';
|
|
108
|
+
export class MyDriver<Schema extends TAnyDataSourceSchema> implements IRelationalDriver<Schema, Pool> {
|
|
109
|
+
async acquire(opts: { schema: Schema }): Promise<IRelationalConnection<Schema>> { /* ... */ }
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// After
|
|
113
|
+
import type { TRelationalConnection, TRelationalDriver } from '@venizia/ignis/postgres';
|
|
114
|
+
export class MyDriver<Schema extends TAnyDataSourceSchema> implements TRelationalDriver<Schema, Pool> {
|
|
115
|
+
async acquire(opts: { schema: Schema }): Promise<TRelationalConnection<Schema>> { /* ... */ }
|
|
116
|
+
}
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
The genuine interfaces keep the `I` prefix at `@venizia/ignis/relational`. There they take a
|
|
120
|
+
connector type parameter instead of a schema: `IRelationalDriver<TConnector, Client>` and
|
|
121
|
+
`IRelationalConnection<TConnector>`. Reach for those only when you build a second SQL engine.
|
|
122
|
+
`IStatementResult` is still an interface and is unchanged on both paths.
|
|
123
|
+
|
|
124
|
+
### `denyOperation` takes an options object
|
|
125
|
+
|
|
126
|
+
`AbstractRepository.denyOperation` is `protected`, so this breaks any repository subclass that calls
|
|
127
|
+
it. Both connector families are affected - a `ReadableSearchRepository` subclass as much as a
|
|
128
|
+
relational one.
|
|
129
|
+
|
|
130
|
+
```typescript
|
|
131
|
+
// Before
|
|
132
|
+
protected denyOperation(methodName: string): never;
|
|
133
|
+
// After
|
|
134
|
+
protected denyOperation(opts: { methodName: string }): never;
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
```typescript
|
|
138
|
+
// Before
|
|
139
|
+
return this.denyOperation(this.create.name);
|
|
140
|
+
// After
|
|
141
|
+
return this.denyOperation({ methodName: this.create.name });
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### Two protected members leave the repository tier
|
|
145
|
+
|
|
146
|
+
Both were `protected`, so they are invisible from outside but part of the contract a subclass
|
|
147
|
+
inherits. Nothing about them changed for a caller that only uses the public verbs.
|
|
148
|
+
|
|
149
|
+
| Removed | Was | Use instead |
|
|
150
|
+
|---------|-----|-------------|
|
|
151
|
+
| `getQueryInterface(opts?)` | `protected`, on the repository base | `queryExecutor`, a `protected` getter returning the datasource's `IRelationalQueryExecutor` |
|
|
152
|
+
| `_updateBuilder` | `protected` field of type `UpdateBuilder` | the public `updateBuilder` getter, or `dataSource.getQueryDialect()` |
|
|
153
|
+
|
|
154
|
+
Resolving Drizzle's relational-query interface is engine knowledge, so it moved down into each
|
|
155
|
+
engine's query executor, where it is now `private`. A subclass that overrode `getQueryInterface` to
|
|
156
|
+
reach the raw connector should call `resolveConnector` instead - that is unchanged.
|
|
157
|
+
|
|
158
|
+
The public `updateBuilder` getter survives, now typed `AnyType` and marked `@deprecated`: the
|
|
159
|
+
concrete builder is engine-specific, and an engine without one returns `undefined`.
|
|
160
|
+
|
|
161
|
+
## Migration guide
|
|
162
|
+
|
|
163
|
+
Every break in this release is a rename. No behavior changes, no signature changes, no new required
|
|
164
|
+
arguments. A project with no `*Relational*` imports has nothing to do.
|
|
165
|
+
|
|
166
|
+
### 1. Find what is affected
|
|
167
|
+
|
|
168
|
+
```bash
|
|
169
|
+
# Renamed symbols
|
|
170
|
+
grep -rn --include='*.ts' --include='*.tsx' -E \
|
|
171
|
+
'\b(RelationalBaseRepository|ReadableRelationalRepository|PersistableRelationalRepository|DefaultRelationalRepository|SoftDeletableRelationalRepository|AbstractRelationalDataSource|BaseRelationalDataSource|FilterBuilder|IRelationalDriver|IRelationalConnection)\b' src/
|
|
172
|
+
|
|
173
|
+
# Hand edits - protected members and the reworded error string
|
|
174
|
+
grep -rn --include='*.ts' -E \
|
|
175
|
+
'\b(denyOperation|getQueryInterface|_updateBuilder)\b|is not a postgres transaction' src/
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
Both commands silent means the release is a drop-in upgrade.
|
|
179
|
+
|
|
180
|
+
### 2. Rename the imports
|
|
181
|
+
|
|
182
|
+
The renames are mechanical. Run this from the project root:
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
grep -rlZ --include='*.ts' --include='*.tsx' -E \
|
|
186
|
+
'\b(RelationalBaseRepository|ReadableRelationalRepository|PersistableRelationalRepository|DefaultRelationalRepository|SoftDeletableRelationalRepository|AbstractRelationalDataSource|BaseRelationalDataSource|FilterBuilder|IRelationalDriver|IRelationalConnection)\b' src/ \
|
|
187
|
+
| xargs -0 -r sed -i -E '
|
|
188
|
+
s/\bRelationalBaseRepository\b/PostgresBaseRepository/g;
|
|
189
|
+
s/\bReadableRelationalRepository\b/ReadableRepository/g;
|
|
190
|
+
s/\bPersistableRelationalRepository\b/PersistableRepository/g;
|
|
191
|
+
s/\bDefaultRelationalRepository\b/DefaultCRUDRepository/g;
|
|
192
|
+
s/\bSoftDeletableRelationalRepository\b/SoftDeletableRepository/g;
|
|
193
|
+
s/\bAbstractRelationalDataSource\b/AbstractPostgresDataSource/g;
|
|
194
|
+
s/\bBaseRelationalDataSource\b/BasePostgresDataSource/g;
|
|
195
|
+
s/\bFilterBuilder\b/PostgresFilterBuilder/g;
|
|
196
|
+
s/\bIRelationalDriver\b/TRelationalDriver/g;
|
|
197
|
+
s/\bIRelationalConnection\b/TRelationalConnection/g;
|
|
198
|
+
'
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
The `\b` anchors are load-bearing, not decoration. Without them `FilterBuilder` also rewrites the
|
|
202
|
+
inside of `PostgresFilterBuilder` and `SqliteFilterBuilder`, producing
|
|
203
|
+
`PostgresPostgresFilterBuilder`. On BSD sed (macOS) use `sed -i ''` instead of `sed -i`.
|
|
204
|
+
|
|
205
|
+
**Two things the codemod cannot decide for you:**
|
|
206
|
+
|
|
207
|
+
- **Duplicate imports.** A file that already imported `PostgresFilterBuilder` alongside
|
|
208
|
+
`FilterBuilder` ends up importing the same name twice, which is a `TS2300`. Merge the two import
|
|
209
|
+
statements. `tsc` points at every one.
|
|
210
|
+
- **`@venizia/ignis/relational` is exempt.** `IRelationalDriver` and `IRelationalConnection` keep the
|
|
211
|
+
`I` prefix on that sub-path, because there they really are interfaces. Only the `@venizia/ignis`
|
|
212
|
+
and `@venizia/ignis/postgres` spellings became `T`. If you import from `/relational`, revert those
|
|
213
|
+
two lines by hand - and see the warning below about which class you actually want.
|
|
214
|
+
|
|
215
|
+
### 3. The hand edits
|
|
216
|
+
|
|
217
|
+
| If you have | Change to | Why |
|
|
218
|
+
|---|---|---|
|
|
219
|
+
| `denyOperation(name)` | `denyOperation({ methodName: name })` | Options-object convention. Affects search repositories too |
|
|
220
|
+
| an override of `getQueryInterface` | call `resolveConnector` directly, or use `queryExecutor` | Moved into each engine's query executor |
|
|
221
|
+
| a read of `this._updateBuilder` | the public `updateBuilder` getter | The protected field is gone |
|
|
222
|
+
| a match on `"is not a postgres transaction"` | `"is not a relational transaction"` | Message reworded, condition identical |
|
|
223
|
+
| a parser reading `rs.rowCount` from the `shouldReturn: false` debug log | `rs.count` | Normalized across drivers |
|
|
224
|
+
| `ReadableRepository === ReadableRelationalRepository` | `instanceof` | The Postgres names are subclasses now, not aliases |
|
|
225
|
+
|
|
226
|
+
### 4. Verify
|
|
227
|
+
|
|
228
|
+
```bash
|
|
229
|
+
bun run typecheck # or: tsc --noEmit
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
Every break in this release is a compile error, so a green typecheck is the whole proof. Do not rely
|
|
233
|
+
on `bun test` here - Bun erases types rather than checking them, so a test run stays green while the
|
|
234
|
+
build is broken.
|
|
235
|
+
|
|
236
|
+
### What NOT to change
|
|
237
|
+
|
|
238
|
+
**Do not repoint these imports at `@venizia/ignis/relational`.** The old names do exist there, so the
|
|
239
|
+
import resolves and the file compiles - which is exactly what makes it a trap. The class you get is
|
|
240
|
+
the engine-neutral one:
|
|
241
|
+
|
|
242
|
+
```typescript
|
|
243
|
+
import { DefaultRelationalRepository } from '@venizia/ignis/relational';
|
|
244
|
+
import { DefaultCRUDRepository } from '@venizia/ignis/postgres';
|
|
245
|
+
|
|
246
|
+
neutral.connector; // unknown
|
|
247
|
+
postgres.connector; // TRelationalConnector<TAnyDataSourceSchema>
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
Every Drizzle call on an `unknown` connector then fails to typecheck, one layer away from the import
|
|
251
|
+
that caused it. `@venizia/ignis/relational` is for building a second SQL engine, not for consuming
|
|
252
|
+
Postgres.
|
|
253
|
+
|
|
254
|
+
**These are untouched, at the same paths, with the same behavior:** `BaseDataSource`, `BaseEntity`,
|
|
255
|
+
`BasePostgresEntity`, `BaseRelationalEntity`, `IStatementResult`, `UpdateBuilder`,
|
|
256
|
+
`NodePostgresDriver`, `PostgresJsDriver`, and every repository already spelled the Postgres way
|
|
257
|
+
(`ReadableRepository`, `PersistableRepository`, `DefaultCRUDRepository`, `SoftDeletableRepository`,
|
|
258
|
+
`PostgresBaseRepository`, `BasePostgresDataSource`, `AbstractPostgresDataSource`).
|
|
259
|
+
|
|
260
|
+
## Behavior changes
|
|
261
|
+
|
|
262
|
+
- **`resolveConnector`'s error message reworded.** A repository called with a transaction it cannot
|
|
263
|
+
use now throws `"... is not a relational transaction"`, where it previously said
|
|
264
|
+
`"... is not a postgres transaction"`. The failure condition is identical; only the wording changed.
|
|
265
|
+
- **A debug log now carries different content in one branch.** `create`/`updateAll`/`deleteAll`
|
|
266
|
+
called with `options: { shouldReturn: false }` still emit the same debug line
|
|
267
|
+
(`'INSERT result | shouldReturn: %s | rs: %j'` and its `UPDATE`/`DELETE` siblings, same level, same
|
|
268
|
+
scope), but `rs` is now `{ count, rows: [] }` instead of the raw driver result (`pg`'s
|
|
269
|
+
`{ rows, rowCount }`, or postgres-js's `RowList`). Anything parsing that specific log line's `%j`
|
|
270
|
+
payload sees a different object shape in the `shouldReturn: false` branch only.
|
|
271
|
+
- **The five Postgres repository names are subclasses, not aliases.** They used to be the neutral
|
|
272
|
+
classes under a second name. So `ReadableRepository === ReadableRelationalRepository` is false
|
|
273
|
+
where it used to be true, and `instanceof DefaultCRUDRepository` is false for a
|
|
274
|
+
`SoftDeletableRepository`. `instanceof` down the chain is unaffected, and nothing in IGNIS compares
|
|
275
|
+
repository classes by identity.
|
|
276
|
+
|
|
277
|
+
## Fixes
|
|
278
|
+
|
|
279
|
+
### `findById` accepts `options.retry`
|
|
280
|
+
|
|
281
|
+
This is the most user-visible change in the set. [Read retry](/references/base/repositories/advanced#read-retry-replica-lag)
|
|
282
|
+
shipped for `find`, `findOne` and `findById`, but `findById` was rejected at compile time on
|
|
283
|
+
`SoftDeletableRepository`. Its three overloads typed `options` as `ExtraOptions & { isStrict?: X }`,
|
|
284
|
+
which drops `IWithReadRetry`. `RelationalBaseRepository`'s four abstract read verbs had the same
|
|
285
|
+
defect. The runtime plumbing was always complete, so the option worked the moment the signature
|
|
286
|
+
allowed it.
|
|
287
|
+
|
|
288
|
+
All seven signatures now carry `TFindOptions`, `TFindRangeOptions` or `TFindOneOptions`, matching the
|
|
289
|
+
`IReadableRepository` contract. Nothing to migrate - code that did not compile now does:
|
|
290
|
+
|
|
291
|
+
```typescript
|
|
292
|
+
const category = await repository.findById({
|
|
293
|
+
id: 123,
|
|
294
|
+
options: { retry: { maxAttempts: 4 } },
|
|
295
|
+
});
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
**Ordering.** Pass `retry` and `isStrict: true` together and retries run first. `isStrict` is
|
|
299
|
+
evaluated after the loop is exhausted, because retry lives in `super.findById` -> `findOne`. So a
|
|
300
|
+
strict read waits out replica lag before it throws `ENTITY_NOT_FOUND`:
|
|
301
|
+
|
|
302
|
+
```typescript
|
|
303
|
+
const category = await repository.findById({
|
|
304
|
+
id: 123,
|
|
305
|
+
options: { retry: { maxAttempts: 4 }, isStrict: true },
|
|
306
|
+
});
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
### `TSoftDeletableTableSchema` composes with the root barrel again
|
|
310
|
+
|
|
311
|
+
The Postgres tier declares `TSoftDeletableTableSchema` itself rather than re-exporting the neutral
|
|
312
|
+
one. The neutral schema is branded with Drizzle's dialect-free `Table`, while the root barrel serves
|
|
313
|
+
`PgTable`-branded `TTableObject` and `TTableInsert` beside it. The two could not compose.
|
|
314
|
+
|
|
315
|
+
The symptom, if you saw it: intersecting the schema and feeding the result to the row types failed
|
|
316
|
+
with `TS2344`.
|
|
317
|
+
|
|
318
|
+
```typescript
|
|
319
|
+
import type { TSoftDeletableTableSchema, TTableObject } from '@venizia/ignis';
|
|
320
|
+
|
|
321
|
+
type TArchivableTableSchema = TSoftDeletableTableSchema & { status: unknown };
|
|
322
|
+
type TArchivableRow = TTableObject<TArchivableTableSchema>; // TS2344 before the fix
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
Nothing to migrate. The break never reached a release, and both sides of the root barrel are
|
|
326
|
+
`PgTable`-branded again. `packages/core-server/src/__tests__/connectors/postgres/root-barrel-composability.test.ts`
|
|
327
|
+
pins it - `bun run typecheck` is the gate, since `bun test` erases types.
|
|
328
|
+
|
|
329
|
+
### `getIdType` is one function again
|
|
330
|
+
|
|
331
|
+
The Postgres copy is deleted. `@venizia/ignis/postgres` re-exports the neutral function from
|
|
332
|
+
`connectors/relational/models/common`. Same signature, same behavior, one object instead of two. The
|
|
333
|
+
neutral bound is `Table`-branded and therefore wider, so every Postgres caller still satisfies it.
|
|
334
|
+
Invisible at runtime, nothing to migrate.
|
|
335
|
+
|
|
336
|
+
## Notes
|
|
337
|
+
|
|
338
|
+
`TRelationalTransactionOptions` is the neutral SQL transaction options type, at
|
|
339
|
+
`@venizia/ignis/relational`. It was spelled `IRelationalTransactionOptions` earlier in this work and
|
|
340
|
+
follows the same `T`-for-`type` rule as the two driver types above. It is new here and was never
|
|
341
|
+
published, so there is nothing to migrate. `IDatabaseTransactionOptions` extends it and is unchanged.
|
|
342
|
+
|
|
343
|
+
## Who is affected
|
|
344
|
+
|
|
345
|
+
- **Anyone importing a `*Relational*` repository, datasource, driver type or `FilterBuilder` from
|
|
346
|
+
`@venizia/ignis` or `@venizia/ignis/postgres`.** Rename per the table above. Same path, same
|
|
347
|
+
behavior.
|
|
348
|
+
- **Anyone using `ReadableRepository`, `PersistableRepository`, `DefaultCRUDRepository`,
|
|
349
|
+
`SoftDeletableRepository`, `BasePostgresDataSource`, `AbstractPostgresDataSource`, `BaseDataSource`,
|
|
350
|
+
`BaseRelationalEntity` or `NodePostgresDriver`.** No action needed. Every one of these still
|
|
351
|
+
resolves at the same import path, with the same behavior and the same Postgres-typed `connector`.
|
|
352
|
+
- **Any repository subclass that calls `denyOperation`.** Wrap the argument:
|
|
353
|
+
`denyOperation({ methodName })`. This includes search repositories.
|
|
354
|
+
- **Any repository subclass that overrode `getQueryInterface` or read `this._updateBuilder`.** Both
|
|
355
|
+
are gone from the repository tier - use `queryExecutor` and the public `updateBuilder` getter. A
|
|
356
|
+
subclass that only uses the public verbs is unaffected.
|
|
357
|
+
- **Anyone who wanted `retry` on `findById`.** It compiles now. Nothing else to do.
|
|
358
|
+
- **Anyone who hit `TS2344` intersecting `TSoftDeletableTableSchema`.** Fixed. Delete any local
|
|
359
|
+
workaround that re-declared the schema.
|
|
360
|
+
- **Anything matching on the literal string `"is not a postgres transaction"`.** Update the match to
|
|
361
|
+
`"is not a relational transaction"`.
|
|
362
|
+
- **A log pipeline parsing the `shouldReturn: false` branch's `rs` field structurally** (for example,
|
|
363
|
+
reading `rs.rowCount`). Read `rs.count` instead - it is already normalized across drivers.
|
|
364
|
+
- **Anything comparing repository classes by identity.** `ReadableRepository ===
|
|
365
|
+
ReadableRelationalRepository` is now false. Use `instanceof`.
|
|
366
|
+
- **Building a second SQL engine connector (SQLite, PGlite).** The seam now exists:
|
|
367
|
+
`connectors/relational` has no Postgres coupling to work around.
|
|
368
|
+
|
|
369
|
+
## Details
|
|
370
|
+
|
|
371
|
+
The Postgres branch declares `AbstractPostgresDataSource` and `BasePostgresDataSource`. The neutral
|
|
372
|
+
tier declares `AbstractRelationalDataSource` and `BaseRelationalDataSource`. No two classes share a
|
|
373
|
+
declaration name. The same holds for the five repository classes and for `FilterBuilder`.
|
|
374
|
+
|
|
375
|
+
`connectors/index.ts` exports `./postgres` only. Merging `./relational` into the root barrel would
|
|
376
|
+
put two different classes under one name for every pair above, and make one of each unreachable.
|
|
377
|
+
That is also why the compat aliases are gone rather than kept: an alias would have reintroduced the
|
|
378
|
+
collision across sibling sub-paths. Reach the neutral tier only through `@venizia/ignis/relational`,
|
|
379
|
+
and import one sub-path per file.
|
|
380
|
+
|
|
381
|
+
`FilterBuilder` turned out to already be engine-neutral - zero `drizzle-orm/pg-core` imports - once
|
|
382
|
+
its one Postgres-only call (`getTableConfig(schema).name`) was swapped for Drizzle's dialect-free
|
|
383
|
+
`getTableName(schema)`. It moved whole to `connectors/relational/repositories/dialect/filter.ts` and
|
|
384
|
+
became `abstract`: its operator table is now `protected abstract get operators()`, so the class names
|
|
385
|
+
no engine at all. `PostgresFilterBuilder` is the Postgres subclass, and it supplies one member -
|
|
386
|
+
`PostgresQueryOperators.FNS`. A second SQL engine does the same and inherits the other 736 lines. The
|
|
387
|
+
JSON-path methods stay `protected` on the neutral base for the same reason: override, never fork.
|
|
388
|
+
|
|
389
|
+
Only `PostgresQueryOperators`, `UpdateBuilder`, and those JSON-path defaults remain genuinely
|
|
390
|
+
Postgres-specific.
|
|
391
|
+
|
|
392
|
+
| File | Package |
|
|
393
|
+
|------|---------|
|
|
394
|
+
| `src/connectors/relational/**` | core |
|
|
395
|
+
| `src/connectors/postgres/datasources/**` | core |
|
|
396
|
+
| `src/connectors/postgres/drivers/driver.ts` | core |
|
|
397
|
+
| `src/connectors/postgres/repositories/**` | core |
|
|
398
|
+
| `src/connectors/postgres/models/**` | core |
|
|
399
|
+
| `src/base/repositories/core/abstract.ts` | core |
|
|
400
|
+
| `src/connectors/search/repositories/core/readable.ts` | core |
|
|
401
|
+
|
|
402
|
+
See also: [Connectors](/references/base/connectors) for how IGNIS's engine-neutral contract works
|
|
403
|
+
across every connector family, Postgres included.
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: SQLite and PGlite - Two Embedded Relational Engines
|
|
3
|
+
description: A SQLite connector at @venizia/ignis/sqlite driven by libsql, and a PGliteDriver that runs Postgres in-process as WebAssembly. Both sit on the engine-neutral relational tier, proven by one repository conformance suite that runs against both.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Changelog - 2026-08-02
|
|
7
|
+
|
|
8
|
+
## SQLite and PGlite - Two Embedded Relational Engines
|
|
9
|
+
|
|
10
|
+
<Badge type="tip" text="New Feature" /> <Badge type="tip" text="Enhancement" />
|
|
11
|
+
|
|
12
|
+
**In one line.** IGNIS gains two embedded databases - a SQLite connector at `@venizia/ignis/sqlite`
|
|
13
|
+
driven by libsql, and a `PGliteDriver` that runs real Postgres in your process as WebAssembly - both
|
|
14
|
+
on the engine-neutral relational tier, and both proven by one repository suite that runs against
|
|
15
|
+
each for real.
|
|
16
|
+
|
|
17
|
+
Nothing breaks. Existing Postgres code is untouched.
|
|
18
|
+
|
|
19
|
+
## The problem it solves
|
|
20
|
+
|
|
21
|
+
[The relational lift](./2026-08-01-relational-connector-lift) split IGNIS's SQL tier into an
|
|
22
|
+
engine-neutral `connectors/relational` and a Postgres branch on top of it. That left a claim
|
|
23
|
+
untested: a seam only one engine satisfies is not a seam.
|
|
24
|
+
|
|
25
|
+
Two engines now sit on it. Every port `connectors/relational` declares abstract has two
|
|
26
|
+
implementations, not one.
|
|
27
|
+
|
|
28
|
+
## What changed
|
|
29
|
+
|
|
30
|
+
- **New SQLite connector** at `@venizia/ignis/sqlite`, with the libsql driver at
|
|
31
|
+
`@venizia/ignis/sqlite/libsql`. Datasource, entity base, five repository classes, five column
|
|
32
|
+
enrichers, and a SQLite dialect for filters and JSON updates.
|
|
33
|
+
- **New `PGliteDriver`** at `@venizia/ignis/postgres/pglite`. PGlite is Postgres compiled to
|
|
34
|
+
WebAssembly, so it reuses the entire Postgres connector - same dialect, same enrichers, same
|
|
35
|
+
`pgTable` models. It is a driver, not an engine.
|
|
36
|
+
- **One repository conformance suite, run against both engines in-process.** 23 tests per engine,
|
|
37
|
+
46 total, against a real PGlite database and a real libsql `:memory:` database.
|
|
38
|
+
- **Every SQLite gap throws rather than faking.** Row locking, `regexp`, array operators and
|
|
39
|
+
isolation levels raise `501 Not Implemented` with `normalized.code: 'core.not_supported'`.
|
|
40
|
+
- **`@electric-sql/pglite` and `@libsql/client` are optional peer dependencies.** Neither reaches
|
|
41
|
+
the `@venizia/ignis` root barrel, so apps that use neither pull in neither.
|
|
42
|
+
|
|
43
|
+
## Migration
|
|
44
|
+
|
|
45
|
+
Nothing to migrate. This release is purely additive: four new sub-path exports, no symbol removed,
|
|
46
|
+
renamed or re-signatured. Every existing import resolves exactly as before.
|
|
47
|
+
|
|
48
|
+
If you are upgrading across both releases at once, the renames live in the
|
|
49
|
+
[Relational Connector Lift](./2026-08-01-relational-connector-lift#migration-guide) migration guide,
|
|
50
|
+
which carries the detection grep and the codemod.
|
|
51
|
+
|
|
52
|
+
## Who is affected
|
|
53
|
+
|
|
54
|
+
- **Every existing Postgres application.** No action needed. Nothing on the Postgres path changed.
|
|
55
|
+
- **Anyone writing tests against a database.** `PGliteDriver` gives you real Postgres semantics with
|
|
56
|
+
no Docker and no fixture server. See [PGlite](/guides/core-concepts/persistent/pglite).
|
|
57
|
+
- **Anyone shipping a CLI, desktop app or edge worker.** Both engines run embedded - one data
|
|
58
|
+
directory or one file, no service. See [SQLite](/guides/core-concepts/persistent/sqlite).
|
|
59
|
+
- **Anyone considering SQLite as a production engine.** Read the capability table on the SQLite page
|
|
60
|
+
first. `like` is case-insensitive there and `nlike` silently drops rows a Postgres `nlike` keeps.
|
|
61
|
+
- **Anyone using the `Authentication`, `Authorization` or `StaticAssetComponent` components.** They
|
|
62
|
+
stay Postgres-only in this release - their models are `pgTable`.
|
|
63
|
+
- **Anyone building a third SQL engine.** The seam is now falsified rather than asserted. Supply a
|
|
64
|
+
dialect, an executor and a driver; inherit the rest.
|
|
65
|
+
|
|
66
|
+
## The conformance suite
|
|
67
|
+
|
|
68
|
+
`src/__tests__/connectors/relational/conformance/repository-conformance.ts` is one repository-level
|
|
69
|
+
suite, run against two real in-process databases. It asserts behaviour a repository consumer depends
|
|
70
|
+
on - CRUD verbs, filter composition, default-filter merging, hidden properties, commit and rollback -
|
|
71
|
+
and never an engine's SQL text.
|
|
72
|
+
|
|
73
|
+
Each engine declares what it can do, and the suite asserts the **refusal** where a capability is
|
|
74
|
+
`false`:
|
|
75
|
+
|
|
76
|
+
```typescript
|
|
77
|
+
runRepositoryConformance({
|
|
78
|
+
engine: 'sqlite (libsql :memory:)',
|
|
79
|
+
capabilities: {
|
|
80
|
+
rowLocking: false,
|
|
81
|
+
regexp: false,
|
|
82
|
+
arrayOperators: false,
|
|
83
|
+
caseInsensitiveLike: true,
|
|
84
|
+
nullsSortHigh: false,
|
|
85
|
+
},
|
|
86
|
+
build: () => harness,
|
|
87
|
+
});
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
The last two are not refusals. They are divergences - the same call succeeds on both engines and
|
|
91
|
+
answers differently - so each engine pins the answer it actually gives:
|
|
92
|
+
|
|
93
|
+
| Divergence | PostgreSQL | SQLite |
|
|
94
|
+
|---|---|---|
|
|
95
|
+
| `{ like: 'alpha' }` | matches `alpha` | matches `Alpha` and `alpha` |
|
|
96
|
+
| `{ nlike: 'alpha' }` | keeps `Alpha` | **drops** `Alpha` |
|
|
97
|
+
| `order: ['score ASC']` with a NULL | NULL last | NULL first |
|
|
98
|
+
|
|
99
|
+
A suite that skipped the differences would prove nothing, so nothing is skipped. It found a real
|
|
100
|
+
defect on its first run: `PostgresQueryExecutor.readAffectedRowCount` knew `pg`'s `rowCount` and
|
|
101
|
+
postgres-js's `count`, but PGlite reports `affectedRows` and nothing else. Every Postgres write with
|
|
102
|
+
`shouldReturn: false` threw against PGlite until that was fixed.
|
|
103
|
+
|
|
104
|
+
## Details
|
|
105
|
+
|
|
106
|
+
### SQLite
|
|
107
|
+
|
|
108
|
+
`BaseSqliteDataSource` inherits `getConnectionString()` - the libsql URL **is** SQLite's connection
|
|
109
|
+
string, so there is nothing for an application to guess. `:memory:`, `file:./data.db`, a Turso
|
|
110
|
+
`libsql://` URL and an embedded replica all run on the one driver.
|
|
111
|
+
|
|
112
|
+
SQLite has no isolation levels, because every SQLite transaction is already serializable. The axis is
|
|
113
|
+
a locking mode instead - `SqliteBeginModes.DEFERRED | IMMEDIATE | EXCLUSIVE`, defaulting to
|
|
114
|
+
`IMMEDIATE`. `BEGIN DEFERRED` takes its write lock at the first write, and that upgrade fails outright
|
|
115
|
+
with `SQLITE_BUSY` when another writer got there first. `IMMEDIATE` waits on the busy timeout instead.
|
|
116
|
+
Passing `isolationLevel` throws rather than being ignored.
|
|
117
|
+
|
|
118
|
+
The driver is libsql and not `bun:sqlite` or `better-sqlite3` for one reason: those are synchronous,
|
|
119
|
+
and IGNIS repositories return promises. A synchronous driver blocks the event loop on every query.
|
|
120
|
+
Drizzle also types `bun:sqlite`'s run result as `void`, which puts affected-row counts out of reach.
|
|
121
|
+
|
|
122
|
+
`.returning()` works on insert, update and delete - MySQL cannot do that, so nothing is emulated with
|
|
123
|
+
a read-then-write.
|
|
124
|
+
|
|
125
|
+
### PGlite
|
|
126
|
+
|
|
127
|
+
PGlite reports `PostgreSQL 18.3`, so `#>>` JSON paths, `ILIKE`, regex operators, arrays and
|
|
128
|
+
`SELECT ... FOR UPDATE` all work unchanged. What it does not have is a second connection.
|
|
129
|
+
|
|
130
|
+
`PGliteDriver.acquire()` borrows the one session from a 1-slot pool, so transactions serialise. A
|
|
131
|
+
second `BEGIN` on that session would not nest and would not error - it joins the open transaction
|
|
132
|
+
silently, and the outer `COMMIT` commits the inner writer's rows. The pool is what prevents that.
|
|
133
|
+
|
|
134
|
+
The wait for that slot is bounded by `acquireTimeoutMs`, defaulting to
|
|
135
|
+
`PGliteDriver.DEFAULT_ACQUIRE_TIMEOUT_MS` (30000). A transaction leaked between `BEGIN` and commit
|
|
136
|
+
then surfaces as a named error on the next `acquire()`, instead of hanging every later transaction in
|
|
137
|
+
the process forever. The timeout bounds the wait for the slot, never the transaction, so a migration
|
|
138
|
+
running alone never trips it.
|
|
139
|
+
|
|
140
|
+
One session has a consequence worth stating plainly: a write through `createConnector()` - the path
|
|
141
|
+
every repository takes without `options.transaction` - runs inside whatever transaction is open at
|
|
142
|
+
that moment, and that transaction's `ROLLBACK` discards it. That is PGlite, not the driver. Under
|
|
143
|
+
concurrency, pass the transaction.
|
|
144
|
+
|
|
145
|
+
### Two quickstart examples
|
|
146
|
+
|
|
147
|
+
`examples/pglite-quickstart` and `examples/sqlite-quickstart` are the same CRUD app on both engines.
|
|
148
|
+
Reading them side by side is the fastest way to see where the boundary falls: the models differ
|
|
149
|
+
because the storage classes do, and the datasources differ because the clients do. The repositories
|
|
150
|
+
and controllers are byte-identical apart from their imports.
|
|
151
|
+
|
|
152
|
+
Neither needs a server, a container or a connection string:
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
cd examples/pglite-quickstart # or examples/sqlite-quickstart
|
|
156
|
+
bun install
|
|
157
|
+
bun run start
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
Both carry generated drizzle-kit migrations under `migration/` and apply them in-process at boot,
|
|
161
|
+
rather than hand-writing DDL. Runtime state - the database and rotating logs - lives under
|
|
162
|
+
`app_data/`, the same layout `vert` uses.
|
|
163
|
+
|
|
164
|
+
| File | Package |
|
|
165
|
+
|------|---------|
|
|
166
|
+
| `src/connectors/sqlite/**` | core |
|
|
167
|
+
| `src/connectors/postgres/drivers/pglite.ts` | core |
|
|
168
|
+
| `src/__tests__/connectors/relational/conformance/**` | core |
|
|
169
|
+
| `src/__tests__/connectors/sqlite/**` | core |
|
|
170
|
+
| `src/__tests__/connectors/postgres/drivers/pglite.test.ts` | core |
|
|
171
|
+
| `examples/pglite-quickstart/**` | - |
|
|
172
|
+
| `examples/sqlite-quickstart/**` | - |
|
|
173
|
+
|
|
174
|
+
See also: [SQLite](/guides/core-concepts/persistent/sqlite) and
|
|
175
|
+
[PGlite](/guides/core-concepts/persistent/pglite) for the guides,
|
|
176
|
+
[Relational Connector Lift](./2026-08-01-relational-connector-lift) for the tier they sit on, and
|
|
177
|
+
[Connectors](/references/base/connectors) for the engine-neutral contract.
|