@mistriwork/engine 0.0.0 → 1.0.0-rc.11
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 +21 -0
- package/README.md +16 -1
- package/dist/adapters/adapter.d.ts +726 -0
- package/dist/adapters/adapter.js +444 -0
- package/dist/adapters/cache/cacheStore.d.ts +75 -0
- package/dist/adapters/cache/cacheStore.js +160 -0
- package/dist/adapters/cache/resp.d.ts +52 -0
- package/dist/adapters/cache/resp.js +237 -0
- package/dist/adapters/commands/canonicalJson.d.ts +19 -0
- package/dist/adapters/commands/canonicalJson.js +154 -0
- package/dist/adapters/connect.d.ts +29 -0
- package/dist/adapters/connect.js +40 -0
- package/dist/adapters/connectionBudget.d.ts +101 -0
- package/dist/adapters/connectionBudget.js +128 -0
- package/dist/adapters/dbLatency.d.ts +35 -0
- package/dist/adapters/dbLatency.js +79 -0
- package/dist/adapters/epochCache.d.ts +50 -0
- package/dist/adapters/epochCache.js +85 -0
- package/dist/adapters/http/egress.d.ts +48 -0
- package/dist/adapters/http/egress.js +175 -0
- package/dist/adapters/http/httpAdapter.d.ts +71 -0
- package/dist/adapters/http/httpAdapter.js +512 -0
- package/dist/adapters/http/httpDescription.d.ts +32 -0
- package/dist/adapters/http/httpDescription.js +246 -0
- package/dist/adapters/http/openapi.d.ts +98 -0
- package/dist/adapters/http/openapi.js +487 -0
- package/dist/adapters/layoutRefusal.d.ts +24 -0
- package/dist/adapters/layoutRefusal.js +35 -0
- package/dist/adapters/net/networkPolicy.d.ts +44 -0
- package/dist/adapters/net/networkPolicy.js +123 -0
- package/dist/adapters/net/untrustedDatabase.d.ts +18 -0
- package/dist/adapters/net/untrustedDatabase.js +120 -0
- package/dist/adapters/poolAdmission.d.ts +43 -0
- package/dist/adapters/poolAdmission.js +184 -0
- package/dist/adapters/poolMetrics.d.ts +121 -0
- package/dist/adapters/poolMetrics.js +185 -0
- package/dist/adapters/postgres.d.ts +441 -0
- package/dist/adapters/postgres.js +1841 -0
- package/dist/adapters/postgresCatalog.d.ts +107 -0
- package/dist/adapters/postgresCatalog.js +421 -0
- package/dist/adapters/postgresCatalogDigest.d.ts +30 -0
- package/dist/adapters/postgresCatalogDigest.js +93 -0
- package/dist/adapters/postgresCatalogRows.d.ts +64 -0
- package/dist/adapters/postgresCatalogRows.js +37 -0
- package/dist/adapters/postgresDates.d.ts +1 -0
- package/dist/adapters/postgresDates.js +39 -0
- package/dist/adapters/postgresMaintenance.d.ts +33 -0
- package/dist/adapters/postgresMaintenance.js +179 -0
- package/dist/adapters/postgresPool.d.ts +255 -0
- package/dist/adapters/postgresPool.js +838 -0
- package/dist/adapters/postgresPooler.d.ts +28 -0
- package/dist/adapters/postgresPooler.js +267 -0
- package/dist/adapters/postgresReadCatalog.d.ts +31 -0
- package/dist/adapters/postgresReadCatalog.js +226 -0
- package/dist/adapters/postgresReadSnapshot.d.ts +46 -0
- package/dist/adapters/postgresReadSnapshot.js +133 -0
- package/dist/adapters/postgresSchemaEpoch.d.ts +24 -0
- package/dist/adapters/postgresSchemaEpoch.js +149 -0
- package/dist/adapters/postgresTransactionHandle.d.ts +173 -0
- package/dist/adapters/postgresTransactionHandle.js +524 -0
- package/dist/adapters/postgresValues.d.ts +30 -0
- package/dist/adapters/postgresValues.js +75 -0
- package/dist/adapters/postgresWriteAhead.d.ts +47 -0
- package/dist/adapters/postgresWriteAhead.js +209 -0
- package/dist/adapters/replicas.d.ts +70 -0
- package/dist/adapters/replicas.js +208 -0
- package/dist/adapters/reservedSql.d.ts +38 -0
- package/dist/adapters/reservedSql.js +264 -0
- package/dist/adapters/rolePrivileges.d.ts +17 -0
- package/dist/adapters/rolePrivileges.js +22 -0
- package/dist/adapters/scoped/keyRows.d.ts +65 -0
- package/dist/adapters/scoped/keyRows.js +179 -0
- package/dist/adapters/scoped/keyTypes.d.ts +34 -0
- package/dist/adapters/scoped/keyTypes.js +66 -0
- package/dist/adapters/scoped/postgresScopeCatalog.d.ts +34 -0
- package/dist/adapters/scoped/postgresScopeCatalog.js +457 -0
- package/dist/adapters/scoped/postgresTriggers.d.ts +137 -0
- package/dist/adapters/scoped/postgresTriggers.js +1545 -0
- package/dist/adapters/scoped/scopeTriggers.d.ts +122 -0
- package/dist/adapters/scoped/scopeTriggers.js +131 -0
- package/dist/adapters/scoped/scopedCommandOperations.d.ts +5 -0
- package/dist/adapters/scoped/scopedCommandOperations.js +48 -0
- package/dist/adapters/scoped/scopedReads.d.ts +22 -0
- package/dist/adapters/scoped/scopedReads.js +192 -0
- package/dist/adapters/scoped/scopedTransaction.d.ts +159 -0
- package/dist/adapters/scoped/scopedTransaction.js +547 -0
- package/dist/adapters/scoped/sqliteScopeCatalog.d.ts +32 -0
- package/dist/adapters/scoped/sqliteScopeCatalog.js +420 -0
- package/dist/adapters/scoped/sqliteTriggerSession.d.ts +64 -0
- package/dist/adapters/scoped/sqliteTriggerSession.js +245 -0
- package/dist/adapters/scoped/sqliteTriggers.d.ts +20 -0
- package/dist/adapters/scoped/sqliteTriggers.js +822 -0
- package/dist/adapters/scoped/storedText.d.ts +45 -0
- package/dist/adapters/scoped/storedText.js +61 -0
- package/dist/adapters/scoped/triggerEffects.d.ts +98 -0
- package/dist/adapters/scoped/triggerEffects.js +189 -0
- package/dist/adapters/scoped/triggerProof.d.ts +124 -0
- package/dist/adapters/scoped/triggerProof.js +366 -0
- package/dist/adapters/scoped/updateGuard.d.ts +3 -0
- package/dist/adapters/scoped/updateGuard.js +40 -0
- package/dist/adapters/serverSettings.d.ts +45 -0
- package/dist/adapters/serverSettings.js +46 -0
- package/dist/adapters/snapshotRead.d.ts +8 -0
- package/dist/adapters/snapshotRead.js +37 -0
- package/dist/adapters/sqlite.d.ts +273 -0
- package/dist/adapters/sqlite.js +1557 -0
- package/dist/adapters/sqliteCostlyReads.d.ts +33 -0
- package/dist/adapters/sqliteCostlyReads.js +49 -0
- package/dist/adapters/sqliteDecimals.d.ts +22 -0
- package/dist/adapters/sqliteDecimals.js +51 -0
- package/dist/adapters/sqliteHandles.d.ts +43 -0
- package/dist/adapters/sqliteHandles.js +143 -0
- package/dist/adapters/sqliteStatementProcess.d.ts +29 -0
- package/dist/adapters/sqliteStatementProcess.js +131 -0
- package/dist/adapters/statementControl.d.ts +34 -0
- package/dist/adapters/statementControl.js +90 -0
- package/dist/adapters/storeHost.d.ts +133 -0
- package/dist/adapters/storeHost.js +13 -0
- package/dist/adapters/telemetry/drivers.d.ts +21 -0
- package/dist/adapters/telemetry/drivers.js +321 -0
- package/dist/adapters/telemetry/metrics.d.ts +63 -0
- package/dist/adapters/telemetry/metrics.js +122 -0
- package/dist/adapters/telemetry/otlp.d.ts +12 -0
- package/dist/adapters/telemetry/otlp.js +320 -0
- package/dist/adapters/telemetry/otlpEncode.d.ts +48 -0
- package/dist/adapters/telemetry/otlpEncode.js +366 -0
- package/dist/adapters/telemetry/otlpEnv.d.ts +1 -0
- package/dist/adapters/telemetry/otlpEnv.js +12 -0
- package/dist/adapters/telemetry/serverTiming.d.ts +83 -0
- package/dist/adapters/telemetry/serverTiming.js +503 -0
- package/dist/adapters/telemetry/start.d.ts +10 -0
- package/dist/adapters/telemetry/start.js +25 -0
- package/dist/adapters/telemetry/statement.d.ts +16 -0
- package/dist/adapters/telemetry/statement.js +134 -0
- package/dist/adapters/telemetry/trace.d.ts +127 -0
- package/dist/adapters/telemetry/trace.js +295 -0
- package/dist/adapters/writeAhead.d.ts +27 -0
- package/dist/adapters/writeAhead.js +46 -0
- package/dist/adapters/writeAttribution.d.ts +18 -0
- package/dist/adapters/writeAttribution.js +23 -0
- package/dist/adapters/writeCapture.d.ts +80 -0
- package/dist/adapters/writeCapture.js +20 -0
- package/dist/adapters/writeLanes.d.ts +94 -0
- package/dist/adapters/writeLanes.js +232 -0
- package/dist/engine.d.ts +15 -0
- package/dist/engine.js +13 -0
- package/dist/server/auth/credentials.d.ts +61 -0
- package/dist/server/auth/credentials.js +260 -0
- package/dist/server/cacheService.d.ts +50 -0
- package/dist/server/cacheService.js +110 -0
- package/dist/server/cli/args.d.ts +182 -0
- package/dist/server/cli/args.js +348 -0
- package/dist/server/cli/bin.d.ts +5 -0
- package/dist/server/cli/bin.js +66 -0
- package/dist/server/cli/browser.d.ts +15 -0
- package/dist/server/cli/browser.js +37 -0
- package/dist/server/cli/config.d.ts +50 -0
- package/dist/server/cli/config.js +206 -0
- package/dist/server/cli/startup.d.ts +36 -0
- package/dist/server/cli/startup.js +128 -0
- package/dist/server/cli/startupOptions.d.ts +63 -0
- package/dist/server/cli/startupOptions.js +143 -0
- package/dist/server/cli/subcommand.d.ts +28 -0
- package/dist/server/cli/subcommand.js +32 -0
- package/dist/server/cli/usage.d.ts +13 -0
- package/dist/server/cli/usage.js +31 -0
- package/dist/server/clientHttp.d.ts +184 -0
- package/dist/server/clientHttp.js +700 -0
- package/dist/server/clientSurface.d.ts +128 -0
- package/dist/server/clientSurface.js +182 -0
- package/dist/server/columnGrants.d.ts +106 -0
- package/dist/server/columnGrants.js +741 -0
- package/dist/server/compileCache.d.ts +1 -0
- package/dist/server/compileCache.js +30 -0
- package/dist/server/config/locations.d.ts +1 -0
- package/dist/server/config/locations.js +15 -0
- package/dist/server/config/profile.d.ts +123 -0
- package/dist/server/config/profile.js +236 -0
- package/dist/server/configPaths.d.ts +7 -0
- package/dist/server/configPaths.js +34 -0
- package/dist/server/configSections.d.ts +64 -0
- package/dist/server/configSections.js +72 -0
- package/dist/server/connectionRedaction.d.ts +30 -0
- package/dist/server/connectionRedaction.js +77 -0
- package/dist/server/connections.d.ts +358 -0
- package/dist/server/connections.js +988 -0
- package/dist/server/constraints.d.ts +82 -0
- package/dist/server/constraints.js +169 -0
- package/dist/server/demo.d.ts +9 -0
- package/dist/server/demo.js +554 -0
- package/dist/server/devclient.d.ts +108 -0
- package/dist/server/devclient.js +361 -0
- package/dist/server/evidence.d.ts +55 -0
- package/dist/server/evidence.js +323 -0
- package/dist/server/hiddenColumns.d.ts +32 -0
- package/dist/server/hiddenColumns.js +244 -0
- package/dist/server/http/baselineHeaders.d.ts +24 -0
- package/dist/server/http/baselineHeaders.js +12 -0
- package/dist/server/http/captured.d.ts +35 -0
- package/dist/server/http/captured.js +73 -0
- package/dist/server/http/clock.d.ts +1 -0
- package/dist/server/http/clock.js +14 -0
- package/dist/server/http/connectionSource.d.ts +4 -0
- package/dist/server/http/connectionSource.js +48 -0
- package/dist/server/http/context.d.ts +189 -0
- package/dist/server/http/context.js +11 -0
- package/dist/server/http/crawlerText.d.ts +15 -0
- package/dist/server/http/crawlerText.js +32 -0
- package/dist/server/http/dataRoutes.d.ts +88 -0
- package/dist/server/http/dataRoutes.js +137 -0
- package/dist/server/http/door.d.ts +57 -0
- package/dist/server/http/door.js +39 -0
- package/dist/server/http/exportRoute.d.ts +15 -0
- package/dist/server/http/exportRoute.js +320 -0
- package/dist/server/http/firstPaint.d.ts +108 -0
- package/dist/server/http/firstPaint.js +262 -0
- package/dist/server/http/httpOperationRoutes.d.ts +11 -0
- package/dist/server/http/httpOperationRoutes.js +50 -0
- package/dist/server/http/pageReads.d.ts +20 -0
- package/dist/server/http/pageReads.js +205 -0
- package/dist/server/http/pageRoutes.d.ts +39 -0
- package/dist/server/http/pageRoutes.js +291 -0
- package/dist/server/http/probes.d.ts +22 -0
- package/dist/server/http/probes.js +27 -0
- package/dist/server/http/rateLimit.d.ts +131 -0
- package/dist/server/http/rateLimit.js +351 -0
- package/dist/server/http/readRoutes.d.ts +9 -0
- package/dist/server/http/readRoutes.js +131 -0
- package/dist/server/http/readRouting.d.ts +20 -0
- package/dist/server/http/readRouting.js +80 -0
- package/dist/server/http/recordCompose.d.ts +67 -0
- package/dist/server/http/recordCompose.js +167 -0
- package/dist/server/http/recordWrites.d.ts +89 -0
- package/dist/server/http/recordWrites.js +298 -0
- package/dist/server/http/refusalReport.d.ts +38 -0
- package/dist/server/http/refusalReport.js +75 -0
- package/dist/server/http/reply.d.ts +130 -0
- package/dist/server/http/reply.js +394 -0
- package/dist/server/http/requestOrigin.d.ts +11 -0
- package/dist/server/http/requestOrigin.js +8 -0
- package/dist/server/http/router.d.ts +45 -0
- package/dist/server/http/router.js +22 -0
- package/dist/server/http/serverCore.d.ts +68 -0
- package/dist/server/http/serverCore.js +177 -0
- package/dist/server/http/traceRequest.d.ts +30 -0
- package/dist/server/http/traceRequest.js +224 -0
- package/dist/server/http/trust.d.ts +261 -0
- package/dist/server/http/trust.js +472 -0
- package/dist/server/http/writeRefusal.d.ts +33 -0
- package/dist/server/http/writeRefusal.js +24 -0
- package/dist/server/httpConnection.d.ts +49 -0
- package/dist/server/httpConnection.js +170 -0
- package/dist/server/impact.d.ts +55 -0
- package/dist/server/impact.js +47 -0
- package/dist/server/journal.d.ts +134 -0
- package/dist/server/journal.js +398 -0
- package/dist/server/keysetReadHttp.d.ts +52 -0
- package/dist/server/keysetReadHttp.js +85 -0
- package/dist/server/layouts.d.ts +49 -0
- package/dist/server/layouts.js +192 -0
- package/dist/server/migrate/cli.d.ts +102 -0
- package/dist/server/migrate/cli.js +702 -0
- package/dist/server/migrate/database.d.ts +37 -0
- package/dist/server/migrate/database.js +247 -0
- package/dist/server/migrate/desired.d.ts +76 -0
- package/dist/server/migrate/desired.js +292 -0
- package/dist/server/migrate/files.d.ts +34 -0
- package/dist/server/migrate/files.js +141 -0
- package/dist/server/migrate/flyway.d.ts +7 -0
- package/dist/server/migrate/flyway.js +69 -0
- package/dist/server/migrate/history.d.ts +70 -0
- package/dist/server/migrate/history.js +211 -0
- package/dist/server/migrate/runner.d.ts +100 -0
- package/dist/server/migrate/runner.js +413 -0
- package/dist/server/migrate/snapshot.d.ts +30 -0
- package/dist/server/migrate/snapshot.js +239 -0
- package/dist/server/migrate/target.d.ts +33 -0
- package/dist/server/migrate/target.js +82 -0
- package/dist/server/openapiDraft.d.ts +25 -0
- package/dist/server/openapiDraft.js +171 -0
- package/dist/server/operations/diagnostics.d.ts +101 -0
- package/dist/server/operations/diagnostics.js +284 -0
- package/dist/server/operations/requestMetrics.d.ts +33 -0
- package/dist/server/operations/requestMetrics.js +94 -0
- package/dist/server/packageVersion.d.ts +1 -0
- package/dist/server/packageVersion.js +11 -0
- package/dist/server/poolConfig.d.ts +34 -0
- package/dist/server/poolConfig.js +114 -0
- package/dist/server/product.d.ts +20 -0
- package/dist/server/product.js +12 -0
- package/dist/server/recordHistoryOperations.d.ts +39 -0
- package/dist/server/recordHistoryOperations.js +43 -0
- package/dist/server/recordWriteOperations.d.ts +111 -0
- package/dist/server/recordWriteOperations.js +329 -0
- package/dist/server/resourceReadHttp.d.ts +81 -0
- package/dist/server/resourceReadHttp.js +606 -0
- package/dist/server/resourceReadOperations.d.ts +147 -0
- package/dist/server/resourceReadOperations.js +452 -0
- package/dist/server/scaffoldMachine.d.ts +54 -0
- package/dist/server/scaffoldMachine.js +184 -0
- package/dist/server/seed/cli.d.ts +20 -0
- package/dist/server/seed/cli.js +164 -0
- package/dist/server/seed/lexicon.d.ts +26 -0
- package/dist/server/seed/lexicon.js +585 -0
- package/dist/server/seed/seed.d.ts +70 -0
- package/dist/server/seed/seed.js +779 -0
- package/dist/server/seed/words.d.ts +21 -0
- package/dist/server/seed/words.js +164 -0
- package/dist/server/serverRequests.d.ts +6 -0
- package/dist/server/serverRequests.js +33 -0
- package/dist/server/serverTimeouts.d.ts +33 -0
- package/dist/server/serverTimeouts.js +32 -0
- package/dist/server/shapeonly.d.ts +32 -0
- package/dist/server/shapeonly.js +115 -0
- package/dist/server/startupWarnings.d.ts +32 -0
- package/dist/server/startupWarnings.js +92 -0
- package/dist/shared/addressParams.d.ts +28 -0
- package/dist/shared/addressParams.js +47 -0
- package/dist/shared/aggregate.d.ts +49 -0
- package/dist/shared/aggregate.js +107 -0
- package/dist/shared/appCards.d.ts +123 -0
- package/dist/shared/appCards.js +385 -0
- package/dist/shared/appComponents.d.ts +177 -0
- package/dist/shared/appComponents.js +422 -0
- package/dist/shared/appDocuments.d.ts +43 -0
- package/dist/shared/appDocuments.js +131 -0
- package/dist/shared/appEmbeds.d.ts +21 -0
- package/dist/shared/appEmbeds.js +24 -0
- package/dist/shared/appIcons.d.ts +28 -0
- package/dist/shared/appIcons.js +223 -0
- package/dist/shared/appLinks.d.ts +17 -0
- package/dist/shared/appLinks.js +124 -0
- package/dist/shared/appListColumns.d.ts +3 -0
- package/dist/shared/appListColumns.js +66 -0
- package/dist/shared/appLocale.d.ts +36 -0
- package/dist/shared/appLocale.js +86 -0
- package/dist/shared/appMessages.d.ts +44 -0
- package/dist/shared/appMessages.js +78 -0
- package/dist/shared/appNoun.d.ts +21 -0
- package/dist/shared/appNoun.js +32 -0
- package/dist/shared/autoBucket.d.ts +98 -0
- package/dist/shared/autoBucket.js +305 -0
- package/dist/shared/autoValues.d.ts +25 -0
- package/dist/shared/autoValues.js +25 -0
- package/dist/shared/breakdown.d.ts +228 -0
- package/dist/shared/breakdown.js +570 -0
- package/dist/shared/breakdowntext.d.ts +41 -0
- package/dist/shared/breakdowntext.js +400 -0
- package/dist/shared/builtInThemes.d.ts +2 -0
- package/dist/shared/builtInThemes.js +771 -0
- package/dist/shared/chartSeparation.d.ts +11 -0
- package/dist/shared/chartSeparation.js +58 -0
- package/dist/shared/clauses.d.ts +22 -0
- package/dist/shared/clauses.js +97 -0
- package/dist/shared/columnCaption.d.ts +16 -0
- package/dist/shared/columnCaption.js +90 -0
- package/dist/shared/commandFieldPath.d.ts +2 -0
- package/dist/shared/commandFieldPath.js +7 -0
- package/dist/shared/commandWire.d.ts +26 -0
- package/dist/shared/commandWire.js +41 -0
- package/dist/shared/computed.d.ts +161 -0
- package/dist/shared/computed.js +378 -0
- package/dist/shared/computedParse.d.ts +13 -0
- package/dist/shared/computedParse.js +278 -0
- package/dist/shared/computedValue.d.ts +47 -0
- package/dist/shared/computedValue.js +191 -0
- package/dist/shared/connection.d.ts +30 -0
- package/dist/shared/connection.js +1 -0
- package/dist/shared/csv.d.ts +20 -0
- package/dist/shared/csv.js +63 -0
- package/dist/shared/dashLayout.d.ts +30 -0
- package/dist/shared/dashLayout.js +132 -0
- package/dist/shared/dashboardAsks.d.ts +93 -0
- package/dist/shared/dashboardAsks.js +129 -0
- package/dist/shared/dashboardTrend.d.ts +20 -0
- package/dist/shared/dashboardTrend.js +50 -0
- package/dist/shared/decimals.d.ts +37 -0
- package/dist/shared/decimals.js +148 -0
- package/dist/shared/declaredReferences.d.ts +50 -0
- package/dist/shared/declaredReferences.js +202 -0
- package/dist/shared/definedFields.d.ts +63 -0
- package/dist/shared/definedFields.js +103 -0
- package/dist/shared/definedValues.d.ts +63 -0
- package/dist/shared/definedValues.js +184 -0
- package/dist/shared/displayDefaults.d.ts +135 -0
- package/dist/shared/displayDefaults.js +543 -0
- package/dist/shared/dueDate.d.ts +6 -0
- package/dist/shared/dueDate.js +6 -0
- package/dist/shared/duration.d.ts +4 -0
- package/dist/shared/duration.js +23 -0
- package/dist/shared/fileBounds.d.ts +9 -0
- package/dist/shared/fileBounds.js +9 -0
- package/dist/shared/filter.d.ts +238 -0
- package/dist/shared/filter.js +332 -0
- package/dist/shared/firstPaint.d.ts +24 -0
- package/dist/shared/firstPaint.js +33 -0
- package/dist/shared/form.d.ts +21 -0
- package/dist/shared/form.js +25 -0
- package/dist/shared/formValues.d.ts +104 -0
- package/dist/shared/formValues.js +352 -0
- package/dist/shared/funnel.d.ts +45 -0
- package/dist/shared/funnel.js +108 -0
- package/dist/shared/httpOperations.d.ts +48 -0
- package/dist/shared/httpOperations.js +9 -0
- package/dist/shared/iconGlyphs.d.ts +4 -0
- package/dist/shared/iconGlyphs.js +151 -0
- package/dist/shared/iconWeights.d.ts +3 -0
- package/dist/shared/iconWeights.js +162 -0
- package/dist/shared/imageWidths.d.ts +32 -0
- package/dist/shared/imageWidths.js +38 -0
- package/dist/shared/keysetPage.d.ts +64 -0
- package/dist/shared/keysetPage.js +161 -0
- package/dist/shared/like.d.ts +20 -0
- package/dist/shared/like.js +29 -0
- package/dist/shared/listEmpty.d.ts +12 -0
- package/dist/shared/listEmpty.js +36 -0
- package/dist/shared/listFilters.d.ts +28 -0
- package/dist/shared/listFilters.js +84 -0
- package/dist/shared/listPresentations.d.ts +199 -0
- package/dist/shared/listPresentations.js +7 -0
- package/dist/shared/listQuestion.d.ts +52 -0
- package/dist/shared/listQuestion.js +137 -0
- package/dist/shared/lookPalettes.d.ts +62 -0
- package/dist/shared/lookPalettes.js +306 -0
- package/dist/shared/maskQuoted.d.ts +24 -0
- package/dist/shared/maskQuoted.js +48 -0
- package/dist/shared/mentionLabel.d.ts +19 -0
- package/dist/shared/mentionLabel.js +38 -0
- package/dist/shared/mentionLookup.d.ts +17 -0
- package/dist/shared/mentionLookup.js +64 -0
- package/dist/shared/menuCounts.d.ts +16 -0
- package/dist/shared/menuCounts.js +74 -0
- package/dist/shared/model.d.ts +79 -0
- package/dist/shared/model.js +153 -0
- package/dist/shared/money.d.ts +53 -0
- package/dist/shared/money.js +98 -0
- package/dist/shared/moneyEntry.d.ts +7 -0
- package/dist/shared/moneyEntry.js +27 -0
- package/dist/shared/mount.d.ts +118 -0
- package/dist/shared/mount.js +248 -0
- package/dist/shared/niceTicks.d.ts +26 -0
- package/dist/shared/niceTicks.js +50 -0
- package/dist/shared/order.d.ts +59 -0
- package/dist/shared/order.js +133 -0
- package/dist/shared/page.d.ts +135 -0
- package/dist/shared/page.js +1187 -0
- package/dist/shared/pageAnatomy.d.ts +99 -0
- package/dist/shared/pageAnatomy.js +370 -0
- package/dist/shared/pageConfig.d.ts +25 -0
- package/dist/shared/pageConfig.js +1308 -0
- package/dist/shared/pageEmptyActions.d.ts +12 -0
- package/dist/shared/pageEmptyActions.js +20 -0
- package/dist/shared/pageLayouts.d.ts +72 -0
- package/dist/shared/pageLayouts.js +205 -0
- package/dist/shared/pageModel.d.ts +785 -0
- package/dist/shared/pageModel.js +121 -0
- package/dist/shared/pagePaths.d.ts +180 -0
- package/dist/shared/pagePaths.js +869 -0
- package/dist/shared/pagePlans.d.ts +52 -0
- package/dist/shared/pagePlans.js +108 -0
- package/dist/shared/pageRoutes.d.ts +9 -0
- package/dist/shared/pageRoutes.js +9 -0
- package/dist/shared/query.d.ts +166 -0
- package/dist/shared/query.js +1302 -0
- package/dist/shared/queryDates.d.ts +12 -0
- package/dist/shared/queryDates.js +101 -0
- package/dist/shared/queryOperands.d.ts +99 -0
- package/dist/shared/queryOperands.js +131 -0
- package/dist/shared/reads.d.ts +103 -0
- package/dist/shared/reads.js +154 -0
- package/dist/shared/recordLabel.d.ts +51 -0
- package/dist/shared/recordLabel.js +123 -0
- package/dist/shared/recordReadKeys.d.ts +30 -0
- package/dist/shared/recordReadKeys.js +51 -0
- package/dist/shared/recordReads.d.ts +268 -0
- package/dist/shared/recordReads.js +368 -0
- package/dist/shared/recordview.d.ts +198 -0
- package/dist/shared/recordview.js +356 -0
- package/dist/shared/referenceModel.d.ts +58 -0
- package/dist/shared/referenceModel.js +194 -0
- package/dist/shared/refusal.d.ts +80 -0
- package/dist/shared/refusal.js +184 -0
- package/dist/shared/relatedCreate.d.ts +30 -0
- package/dist/shared/relatedCreate.js +162 -0
- package/dist/shared/resourceHttp.d.ts +464 -0
- package/dist/shared/resourceHttp.js +1 -0
- package/dist/shared/richText.d.ts +85 -0
- package/dist/shared/richText.js +305 -0
- package/dist/shared/rollups.d.ts +143 -0
- package/dist/shared/rollups.js +64 -0
- package/dist/shared/rowScope.d.ts +72 -0
- package/dist/shared/rowScope.js +376 -0
- package/dist/shared/runtimeTables.d.ts +44 -0
- package/dist/shared/runtimeTables.js +79 -0
- package/dist/shared/schema.d.ts +529 -0
- package/dist/shared/schema.js +627 -0
- package/dist/shared/schematext.d.ts +38 -0
- package/dist/shared/schematext.js +101 -0
- package/dist/shared/scopeCatalog.d.ts +29 -0
- package/dist/shared/scopeCatalog.js +472 -0
- package/dist/shared/servedApp.d.ts +686 -0
- package/dist/shared/servedApp.js +45 -0
- package/dist/shared/sessionLease.d.ts +34 -0
- package/dist/shared/sessionLease.js +3 -0
- package/dist/shared/shape.d.ts +55 -0
- package/dist/shared/shape.js +168 -0
- package/dist/shared/slug.d.ts +1 -0
- package/dist/shared/slug.js +12 -0
- package/dist/shared/sortText.d.ts +14 -0
- package/dist/shared/sortText.js +26 -0
- package/dist/shared/sqlRelation.d.ts +4 -0
- package/dist/shared/sqlRelation.js +8 -0
- package/dist/shared/sqlsaved.d.ts +44 -0
- package/dist/shared/sqlsaved.js +63 -0
- package/dist/shared/stitchedPaths.d.ts +27 -0
- package/dist/shared/stitchedPaths.js +38 -0
- package/dist/shared/structuredFilter.d.ts +22 -0
- package/dist/shared/structuredFilter.js +1 -0
- package/dist/shared/subtitlePath.d.ts +20 -0
- package/dist/shared/subtitlePath.js +24 -0
- package/dist/shared/suggest.d.ts +18 -0
- package/dist/shared/suggest.js +59 -0
- package/dist/shared/tableSizing.d.ts +4 -0
- package/dist/shared/tableSizing.js +9 -0
- package/dist/shared/tagLists.d.ts +57 -0
- package/dist/shared/tagLists.js +34 -0
- package/dist/shared/textRules.d.ts +54 -0
- package/dist/shared/textRules.js +133 -0
- package/dist/shared/theme.d.ts +94 -0
- package/dist/shared/theme.js +800 -0
- package/dist/shared/themeColor.d.ts +34 -0
- package/dist/shared/themeColor.js +109 -0
- package/dist/shared/themeFaces.d.ts +30 -0
- package/dist/shared/themeFaces.js +42 -0
- package/dist/shared/themeInk.d.ts +20 -0
- package/dist/shared/themeInk.js +52 -0
- package/dist/shared/themeLooks.d.ts +9 -0
- package/dist/shared/themeLooks.js +572 -0
- package/dist/shared/themeParts.d.ts +26 -0
- package/dist/shared/themeParts.js +71 -0
- package/dist/shared/themePartsCheck.d.ts +21 -0
- package/dist/shared/themePartsCheck.js +91 -0
- package/dist/shared/themePresets.d.ts +85 -0
- package/dist/shared/themePresets.js +139 -0
- package/dist/shared/themeRecipeWords.d.ts +156 -0
- package/dist/shared/themeRecipeWords.js +156 -0
- package/dist/shared/themeRecipes.d.ts +213 -0
- package/dist/shared/themeRecipes.js +234 -0
- package/dist/shared/themeResolve.d.ts +55 -0
- package/dist/shared/themeResolve.js +52 -0
- package/dist/shared/themeTokens.d.ts +107 -0
- package/dist/shared/themeTokens.js +116 -0
- package/dist/shared/themeType.d.ts +38 -0
- package/dist/shared/themeType.js +205 -0
- package/dist/shared/unitWord.d.ts +4 -0
- package/dist/shared/unitWord.js +37 -0
- package/dist/shared/view.d.ts +195 -0
- package/dist/shared/view.js +987 -0
- package/dist/shared/viewLabels.d.ts +47 -0
- package/dist/shared/viewLabels.js +459 -0
- package/dist/shared/viewPaths.d.ts +248 -0
- package/dist/shared/viewPaths.js +294 -0
- package/dist/shared/viewtext.d.ts +57 -0
- package/dist/shared/viewtext.js +282 -0
- package/dist/shared/vocabulary.d.ts +71 -0
- package/dist/shared/vocabulary.js +249 -0
- package/dist/shared/weekStart.d.ts +7 -0
- package/dist/shared/weekStart.js +36 -0
- package/mark.svg +1 -0
- package/package.json +266 -3
- package/schema/model.d.ts +298 -0
- package/schema/theme.d.ts +587 -0
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
import { DatabaseSync, type SQLInputValue } from 'node:sqlite';
|
|
2
|
+
import { type Adapter, type ScopedReads, type Filter, type QueryRequest, type QueryResult, type SqlRequest, type SqlResult, type DeleteRequest, type DeleteResult, type UpdateRequest, type UpdateResult, type ViewResult, type BreakdownResult, TransactionOperations, type WriteTransaction, type InsertRequest, type InsertResult, type ExplainRequest, type ExplainResult, type ProfileLimits, type ProfileResult, type CountItem, type AggregateRequest, type AggregateResult } from './adapter.js';
|
|
3
|
+
import type { TriggerAcceptance } from './scoped/triggerProof.js';
|
|
4
|
+
import { type SqliteScopeCatalog } from './scoped/sqliteScopeCatalog.js';
|
|
5
|
+
import type { ScopeTrigger } from './scoped/scopeTriggers.js';
|
|
6
|
+
import type { TriggerKeyFacts } from './scoped/triggerEffects.js';
|
|
7
|
+
import { type RowScope } from '../shared/rowScope.js';
|
|
8
|
+
import { type ViewDef } from '../shared/view.js';
|
|
9
|
+
import { type BreakdownDef } from '../shared/breakdown.js';
|
|
10
|
+
import { type DatabaseSchema } from '../shared/schema.js';
|
|
11
|
+
/** Identity-only native provenance; no caller can register a lookalike. */
|
|
12
|
+
export declare const isSqliteVerifiedCommandSource: (value: unknown) => value is SqliteAdapter;
|
|
13
|
+
export declare class SqliteAdapter implements Adapter {
|
|
14
|
+
private file;
|
|
15
|
+
private label;
|
|
16
|
+
readonly dialect: 'sqlite';
|
|
17
|
+
private db;
|
|
18
|
+
/** Opened lazily, only when an edit is actually applied. */
|
|
19
|
+
private writeDb;
|
|
20
|
+
private closed;
|
|
21
|
+
private writes;
|
|
22
|
+
private readonly writeIdentity;
|
|
23
|
+
private readonly introspectedVersions;
|
|
24
|
+
private readonly catalogCache;
|
|
25
|
+
/** The epoch the open write transaction read, on the handle it read it on. */
|
|
26
|
+
private txEpoch?;
|
|
27
|
+
constructor(file: string, label?: string);
|
|
28
|
+
private queueWrite;
|
|
29
|
+
private assertWriteIdentity;
|
|
30
|
+
private schemaVersion;
|
|
31
|
+
/** Opt-in physical-schema lifetime fence. No logical clone or another
|
|
32
|
+
* adapter's schema is accepted. Ordinary DDL invalidates it synchronously;
|
|
33
|
+
* malicious manual schema_version resets are outside this contract. */
|
|
34
|
+
captureSchemaLifetime(schema: DatabaseSchema): () => void;
|
|
35
|
+
/** Each table's triggers, read on the reader as a scoped write reads them on its writer (sqliteTriggers.ts). A TEMP
|
|
36
|
+
* trigger is its own connection's, which this reader cannot see; the writer reads those too. */
|
|
37
|
+
triggers(): Promise<ReadonlyMap<string, readonly ScopeTrigger[]>>;
|
|
38
|
+
/** What a write reads to judge a trigger's effects (sqliteScopeCatalog.ts): every table's keys, the conflict clauses
|
|
39
|
+
* its schema declares, and the tables a scoped write cannot target, on the reader. */
|
|
40
|
+
triggerKeys(): Promise<TriggerKeyFacts>;
|
|
41
|
+
introspect(): Promise<DatabaseSchema>;
|
|
42
|
+
private indexesOf;
|
|
43
|
+
/**
|
|
44
|
+
* The columns a unique index makes unique alone. `PRAGMA index_list`
|
|
45
|
+
* reports UNIQUE constraints as the indexes SQLite made for them, so one
|
|
46
|
+
* reading covers both; a partial index proves nothing about the rows it
|
|
47
|
+
* leaves out, and an expression column has no name.
|
|
48
|
+
*/
|
|
49
|
+
private uniqueColumns;
|
|
50
|
+
/** The column pairs a unique index of exactly two named columns keeps
|
|
51
|
+
* unique together, read as uniqueColumns reads one alone. */
|
|
52
|
+
private uniquePairs;
|
|
53
|
+
/**
|
|
54
|
+
* The columns an ORDER BY can lean on.
|
|
55
|
+
*
|
|
56
|
+
* `PRAGMA index_list` reports every index including the implicit ones
|
|
57
|
+
* SQLite creates for UNIQUE and for a non-integer primary key; `index_info`
|
|
58
|
+
* gives their columns in order and only the first of each is useful for
|
|
59
|
+
* sorting.
|
|
60
|
+
*
|
|
61
|
+
* `INTEGER PRIMARY KEY` is special and has no index at all — it *is* the
|
|
62
|
+
* rowid, so ordering by it is free — which is exactly the case a naive
|
|
63
|
+
* index scan would report as unindexed and then refuse to sort by.
|
|
64
|
+
*/
|
|
65
|
+
private leadingIndexColumns;
|
|
66
|
+
query(request: QueryRequest): Promise<QueryResult>;
|
|
67
|
+
scopeReads(input: RowScope): Promise<ScopedReads>;
|
|
68
|
+
private queryOn;
|
|
69
|
+
/**
|
|
70
|
+
* Run a compiled view.
|
|
71
|
+
*
|
|
72
|
+
* Everything hard happened in `compileView`: paths resolved against the
|
|
73
|
+
* catalog, joins planned with collision-free aliases, values reduced to
|
|
74
|
+
* bound parameters. What is left here is picking the dialect's style and
|
|
75
|
+
* handing the statement to the driver — which is the point. An adapter that
|
|
76
|
+
* built its own joins would be an adapter that could get LEFT wrong on its
|
|
77
|
+
* own.
|
|
78
|
+
*/
|
|
79
|
+
runView(view: ViewDef, offset?: number): Promise<ViewResult>;
|
|
80
|
+
runBreakdown(breakdown: BreakdownDef, offset?: number): Promise<BreakdownResult>;
|
|
81
|
+
countBreakdown(breakdown: BreakdownDef, limit?: number): Promise<number>;
|
|
82
|
+
countView(view: ViewDef, limit?: number): Promise<number>;
|
|
83
|
+
/**
|
|
84
|
+
* EXPLAIN QUERY PLAN, indented the way the tree nests.
|
|
85
|
+
*
|
|
86
|
+
* Prepared and read, never executed: the rows come from the EXPLAIN
|
|
87
|
+
* statement itself, so even a write handed here is only ever planned — on
|
|
88
|
+
* the read-only handle, at that.
|
|
89
|
+
*/
|
|
90
|
+
explainSql(request: ExplainRequest): Promise<ExplainResult>;
|
|
91
|
+
/**
|
|
92
|
+
* SQLite keeps no column statistics worth reading — sqlite_stat1 knows
|
|
93
|
+
* index selectivity, not null shares — so this looks: one aggregate pass
|
|
94
|
+
* for counts and edges, then one small GROUP BY per column that provably
|
|
95
|
+
* repeats. `source` tells the caller what the look cost.
|
|
96
|
+
*
|
|
97
|
+
* Above `scanAtMost` rows it stops scanning and samples, because
|
|
98
|
+
* node:sqlite is synchronous and a full pass over a ten-million-row table
|
|
99
|
+
* holds the whole process for seconds. Every k-th rowid rather than the
|
|
100
|
+
* first N: insertion order is not a sample, it is a history, and a min
|
|
101
|
+
* taken from the first month of data would be presented as the table's.
|
|
102
|
+
* A view — or a WITHOUT ROWID table, which refuses the arithmetic — falls
|
|
103
|
+
* back to the first N with the same honest label, because running a view
|
|
104
|
+
* twice to randomise it would cost what sampling exists to avoid.
|
|
105
|
+
*/
|
|
106
|
+
profile(table: string, limits?: ProfileLimits): Promise<ProfileResult>;
|
|
107
|
+
/**
|
|
108
|
+
* After each statement a call runs: a turn of the event loop — a cancel
|
|
109
|
+
* can only be read when there is one, and node:sqlite gives none while a
|
|
110
|
+
* statement runs — then a stop if the call was cancelled, before its next
|
|
111
|
+
* statement starts. After, not before, so a read takes its arguments as it
|
|
112
|
+
* is called. A read nobody can cancel does not pay for it.
|
|
113
|
+
*/
|
|
114
|
+
private turn;
|
|
115
|
+
/** Introspection is cheap here but not free; the view path re-uses it. */
|
|
116
|
+
private cachedSchema;
|
|
117
|
+
private schema;
|
|
118
|
+
count(table: string, filter?: Filter, limit?: number): Promise<number>;
|
|
119
|
+
aggregate(request: AggregateRequest): Promise<AggregateResult>;
|
|
120
|
+
countEach(items: readonly CountItem[], limit?: number): Promise<number[]>;
|
|
121
|
+
private countOn;
|
|
122
|
+
private aggregateOn;
|
|
123
|
+
/**
|
|
124
|
+
* One compiled read's rows, BigInts and all. A read that could hold the
|
|
125
|
+
* server's one thread — a count, a filter or a sort over a large table —
|
|
126
|
+
* runs in the statement process instead (sqliteCostlyReads.ts); one on the
|
|
127
|
+
* write handle, inside a transaction, stays where its transaction is.
|
|
128
|
+
*/
|
|
129
|
+
private readRows;
|
|
130
|
+
/**
|
|
131
|
+
* SQLite stores the original statement text, so this is the real thing —
|
|
132
|
+
* whitespace, comments, check constraints and all — not a reconstruction.
|
|
133
|
+
* Indexes are appended because they are separate statements in
|
|
134
|
+
* `sqlite_master` and are usually the first thing you want after the shape.
|
|
135
|
+
*/
|
|
136
|
+
ddl(table: string): Promise<string | undefined>;
|
|
137
|
+
/**
|
|
138
|
+
* The write path, on its own handle.
|
|
139
|
+
*
|
|
140
|
+
* `this.db` is opened read-only and stays that way for the life of the
|
|
141
|
+
* process, so browsing can never write no matter what the UI believes. A
|
|
142
|
+
* second handle is opened the first time an edit is actually applied.
|
|
143
|
+
*/
|
|
144
|
+
update(request: UpdateRequest): Promise<UpdateResult>;
|
|
145
|
+
private updateNow;
|
|
146
|
+
/**
|
|
147
|
+
* Add one row.
|
|
148
|
+
*
|
|
149
|
+
* The guards are `update`'s where they apply — real columns, coerced
|
|
150
|
+
* values, a NOT NULL that cannot be handed null — but the key rules
|
|
151
|
+
* invert: a primary key may be supplied (currency.code is one somebody
|
|
152
|
+
* types) or left for the database to assign. What is deliberately *not*
|
|
153
|
+
* pre-checked is completeness: a missing NOT NULL column with no default
|
|
154
|
+
* is the database's refusal to make, and its message names the column
|
|
155
|
+
* better than a paraphrase would.
|
|
156
|
+
*
|
|
157
|
+
* `RETURNING *` rather than last_insert_rowid plus a re-read: one
|
|
158
|
+
* statement returns the row as stored — defaults filled, the assigned key
|
|
159
|
+
* included — with no window for another write to land in between.
|
|
160
|
+
*/
|
|
161
|
+
insert(request: InsertRequest): Promise<InsertResult>;
|
|
162
|
+
private insertNow;
|
|
163
|
+
/**
|
|
164
|
+
* Run a statement the user wrote.
|
|
165
|
+
*
|
|
166
|
+
* The read handle is opened `readOnly: true` at the file level, which SQLite
|
|
167
|
+
* enforces in the engine — there is no session setting for a statement to
|
|
168
|
+
* reset, so unlike the other two adapters no transaction wrapper is needed
|
|
169
|
+
* to make the guarantee real.
|
|
170
|
+
*
|
|
171
|
+
* What SQLite does not have is a statement timeout, and `node:sqlite` is
|
|
172
|
+
* synchronous with no interrupt, so a pathological statement on this handle
|
|
173
|
+
* blocks the whole process rather than one request. The LIMIT wrap covers
|
|
174
|
+
* the ordinary case — a streaming SELECT stops once it has enough rows — but
|
|
175
|
+
* not an aggregate over a cross join, which has to finish before it returns
|
|
176
|
+
* anything. So a read whose caller can stop it — one run inside
|
|
177
|
+
* `withCancellation`, as every MCP tool call is — runs in a process of its
|
|
178
|
+
* own instead, which its cap or a cancel kills (sqliteStatementProcess.ts).
|
|
179
|
+
* The browser's SQL editor runs its reads that way too (dataWriteRoutes.ts);
|
|
180
|
+
* only an in-memory database, which has no second handle, and a caller with
|
|
181
|
+
* no signal keep the in-process handle and its limit.
|
|
182
|
+
*/
|
|
183
|
+
runSql(request: SqlRequest): Promise<SqlResult>;
|
|
184
|
+
private runSqlNow;
|
|
185
|
+
/**
|
|
186
|
+
* Delete one row.
|
|
187
|
+
*
|
|
188
|
+
* The guards are `update`'s, for the same reason they are `update`'s: the
|
|
189
|
+
* danger in an editor is never injection, it is a statement whose WHERE is
|
|
190
|
+
* broader than the author believed. A delete has the sharper version of that
|
|
191
|
+
* problem, so nothing here is relaxed.
|
|
192
|
+
*
|
|
193
|
+
* Foreign keys are the database's business. `node:sqlite` enables
|
|
194
|
+
* `foreign_keys` by default — checked, not assumed — so a RESTRICT fires and
|
|
195
|
+
* a CASCADE cascades exactly as the schema says, and the error the user sees
|
|
196
|
+
* is SQLite's own.
|
|
197
|
+
*/
|
|
198
|
+
remove(request: DeleteRequest): Promise<DeleteResult>;
|
|
199
|
+
private recordsHistory;
|
|
200
|
+
/**
|
|
201
|
+
* A store's layout attested once per schema epoch rather than on every
|
|
202
|
+
* read: its three catalog reads were two of every room's statements in an
|
|
203
|
+
* App that keeps notices. The epoch — the schema versions, and the store's
|
|
204
|
+
* meta row, a data fact — is one statement read first; the layout is
|
|
205
|
+
* described again whenever it has moved.
|
|
206
|
+
*/
|
|
207
|
+
private attestedStore;
|
|
208
|
+
/** A write capture's reads on a transaction's own handle (writeCapture.ts). */
|
|
209
|
+
private captureSource;
|
|
210
|
+
private lockRecordNow;
|
|
211
|
+
private removeNow;
|
|
212
|
+
private writeHandle;
|
|
213
|
+
/**
|
|
214
|
+
* Several writes as one, or none of them.
|
|
215
|
+
*
|
|
216
|
+
* `BEGIN IMMEDIATE` serializes writers across processes, not just this queue.
|
|
217
|
+
* Reads and mutation preflights inside the callback share its write handle.
|
|
218
|
+
* Ordinary browsing remains on the separate read-only handle.
|
|
219
|
+
*
|
|
220
|
+
* `node:sqlite` is synchronous, so nothing can interleave *within* one
|
|
221
|
+
* statement; the queue is what stops another request's write interleaving
|
|
222
|
+
* *between* two of these.
|
|
223
|
+
*/
|
|
224
|
+
transaction<T>(run: (tx: WriteTransaction) => Promise<T>): Promise<T>;
|
|
225
|
+
/**
|
|
226
|
+
* Records and a durable journal in one transaction, the journal lent by
|
|
227
|
+
* the App framework (storeHost.ts TransactionJournal): the command journal,
|
|
228
|
+
* or a public placement's. Lent through the store host, never on the
|
|
229
|
+
* class, so the database browser has no journal path at all. A verified
|
|
230
|
+
* ordinary transaction's check is trusted host code, never a
|
|
231
|
+
* handler/request: it runs after BEGIN and journal attestation and after
|
|
232
|
+
* the operations drain, before COMMIT, and infers no tenant namespace, row
|
|
233
|
+
* scope or bearer authority.
|
|
234
|
+
*/
|
|
235
|
+
private journalTransaction;
|
|
236
|
+
scopeTransaction<T>(input: RowScope, run: (tx: WriteTransaction, catalog: DatabaseSchema) => Promise<T>, triggers?: TriggerAcceptance): Promise<T>;
|
|
237
|
+
/** Private source-owner boundary, deliberately absent from Adapter. The
|
|
238
|
+
* verifier is trusted host code, never a business callback or wire value.
|
|
239
|
+
* It must be synchronous and may not retain the raw handle. */
|
|
240
|
+
scopeVerifiedTransaction<T>(input: RowScope, verify: (db: DatabaseSync, catalog: SqliteScopeCatalog) => void, run: (tx: WriteTransaction, catalog: DatabaseSchema) => Promise<T>): Promise<T>;
|
|
241
|
+
/** Internal runtime-owner composition, deliberately absent from Adapter.
|
|
242
|
+
* Only trusted runtime code may create bounded maintenance facades here; raw
|
|
243
|
+
* handles must never reach business handlers, policies or request callbacks.
|
|
244
|
+
* Runtime edits share the ordinary writer queue, drain and outcome handling. */
|
|
245
|
+
runtimeMaintenanceTransaction<T>(verify: (db: DatabaseSync) => void, run: (db: DatabaseSync, operations: TransactionOperations, assertCurrent: () => void) => Promise<T>): Promise<T>;
|
|
246
|
+
private transact;
|
|
247
|
+
close(): Promise<void>;
|
|
248
|
+
/**
|
|
249
|
+
* Table names are the one identifier that cannot be a bound parameter, so
|
|
250
|
+
* they are checked against the catalog rather than escaped and hoped for.
|
|
251
|
+
* An unknown name is rejected before it reaches a statement.
|
|
252
|
+
*/
|
|
253
|
+
/**
|
|
254
|
+
* The same check for a read on the browsing handle, answered from the
|
|
255
|
+
* catalog read on connect when it names the table: a name found there is
|
|
256
|
+
* one the catalog gave, so the probe would only say so again, once per
|
|
257
|
+
* statement. A name it does not hold — a table made since — still gets the
|
|
258
|
+
* live probe, and so does every write (assertTable).
|
|
259
|
+
*/
|
|
260
|
+
private readTable;
|
|
261
|
+
private assertTable;
|
|
262
|
+
/** A table's columns, as a write reads them: from the catalog, or inside a
|
|
263
|
+
* write transaction from what was read under the epoch it holds. */
|
|
264
|
+
private tableInfo;
|
|
265
|
+
/** Whether a relation is a view, as a write reads it: kept under the epoch, as its columns are. */
|
|
266
|
+
private isView;
|
|
267
|
+
/** The epoch the open write transaction holds, when `db` is its handle and it is still open. */
|
|
268
|
+
private epochOf;
|
|
269
|
+
}
|
|
270
|
+
export declare function sqliteParams(params: readonly unknown[]): SQLInputValue[];
|
|
271
|
+
/** As toJsonSafe, but a blob stays its bytes: a file download asked for them (`QueryRequest.binary`). */
|
|
272
|
+
export declare function withBytes(row: Record<string, unknown>): Record<string, unknown>;
|
|
273
|
+
export declare function toJsonSafe(row: Record<string, unknown>): Record<string, unknown>;
|