litedbmodel 2.0.2 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/dist/DBConditions.d.ts.map +1 -1
- package/dist/DBConditions.js +16 -1
- package/dist/DBConditions.js.map +1 -1
- package/dist/DBHandler.d.ts.map +1 -1
- package/dist/DBHandler.js +6 -0
- package/dist/DBHandler.js.map +1 -1
- package/dist/DBModel.d.ts +84 -2
- package/dist/DBModel.d.ts.map +1 -1
- package/dist/DBModel.js +312 -29
- package/dist/DBModel.js.map +1 -1
- package/dist/decorators.d.ts +52 -0
- package/dist/decorators.d.ts.map +1 -1
- package/dist/decorators.js +127 -24
- package/dist/decorators.js.map +1 -1
- package/dist/drivers/mysql.d.ts.map +1 -1
- package/dist/drivers/mysql.js +12 -2
- package/dist/drivers/mysql.js.map +1 -1
- package/dist/drivers/postgres.d.ts.map +1 -1
- package/dist/drivers/postgres.js +13 -2
- package/dist/drivers/postgres.js.map +1 -1
- package/dist/drivers/sqlite.d.ts +2 -0
- package/dist/drivers/sqlite.d.ts.map +1 -1
- package/dist/drivers/sqlite.js +49 -4
- package/dist/drivers/sqlite.js.map +1 -1
- package/dist/index.cjs +10741 -0
- package/dist/index.d.cts +1 -0
- package/dist/scp/coltype.d.ts +108 -0
- package/dist/scp/coltype.d.ts.map +1 -1
- package/dist/scp/coltype.js +293 -6
- package/dist/scp/coltype.js.map +1 -1
- package/dist/scp/connection-routing.d.ts +312 -0
- package/dist/scp/connection-routing.d.ts.map +1 -0
- package/dist/scp/connection-routing.js +394 -0
- package/dist/scp/connection-routing.js.map +1 -0
- package/dist/scp/dbmodel-runtime.d.ts +101 -0
- package/dist/scp/dbmodel-runtime.d.ts.map +1 -0
- package/dist/scp/dbmodel-runtime.js +174 -0
- package/dist/scp/dbmodel-runtime.js.map +1 -0
- package/dist/scp/decorator-adapter.d.ts +196 -0
- package/dist/scp/decorator-adapter.d.ts.map +1 -0
- package/dist/scp/decorator-adapter.js +286 -0
- package/dist/scp/decorator-adapter.js.map +1 -0
- package/dist/scp/emit/emitter.d.ts +108 -0
- package/dist/scp/emit/emitter.d.ts.map +1 -0
- package/dist/scp/emit/emitter.js +782 -0
- package/dist/scp/emit/emitter.js.map +1 -0
- package/dist/scp/emit/endpoint.d.ts +248 -0
- package/dist/scp/emit/endpoint.d.ts.map +1 -0
- package/dist/scp/emit/endpoint.js +20 -0
- package/dist/scp/emit/endpoint.js.map +1 -0
- package/dist/scp/emit/index.d.ts +11 -0
- package/dist/scp/emit/index.d.ts.map +1 -0
- package/dist/scp/emit/index.js +13 -0
- package/dist/scp/emit/index.js.map +1 -0
- package/dist/scp/errors.d.ts +45 -1
- package/dist/scp/errors.d.ts.map +1 -1
- package/dist/scp/errors.js +47 -1
- package/dist/scp/errors.js.map +1 -1
- package/dist/scp/exec-context.d.ts +390 -0
- package/dist/scp/exec-context.d.ts.map +1 -0
- package/dist/scp/exec-context.js +540 -0
- package/dist/scp/exec-context.js.map +1 -0
- package/dist/scp/grouping.d.ts +32 -0
- package/dist/scp/grouping.d.ts.map +1 -0
- package/dist/scp/grouping.js +0 -0
- package/dist/scp/grouping.js.map +1 -0
- package/dist/scp/index.cjs +6432 -17579
- package/dist/scp/index.d.cts +1 -0
- package/dist/scp/index.d.mts +1 -0
- package/dist/scp/index.d.ts +51 -52
- package/dist/scp/index.d.ts.map +1 -1
- package/dist/scp/index.js +189 -152
- package/dist/scp/index.js.map +1 -1
- package/dist/scp/index.mjs +6067 -3659
- package/dist/scp/leaf-transport.d.ts +50 -0
- package/dist/scp/leaf-transport.d.ts.map +1 -0
- package/dist/scp/leaf-transport.js +92 -0
- package/dist/scp/leaf-transport.js.map +1 -0
- package/dist/scp/leaves.d.ts +174 -0
- package/dist/scp/leaves.d.ts.map +1 -0
- package/dist/scp/leaves.js +287 -0
- package/dist/scp/leaves.js.map +1 -0
- package/dist/scp/limit-config.d.ts +118 -0
- package/dist/scp/limit-config.d.ts.map +1 -0
- package/dist/scp/limit-config.js +126 -0
- package/dist/scp/limit-config.js.map +1 -0
- package/dist/scp/makesql/compile-relation.d.ts +49 -23
- package/dist/scp/makesql/compile-relation.d.ts.map +1 -1
- package/dist/scp/makesql/compile-relation.js +101 -76
- package/dist/scp/makesql/compile-relation.js.map +1 -1
- package/dist/scp/makesql/compile-select.d.ts +45 -10
- package/dist/scp/makesql/compile-select.d.ts.map +1 -1
- package/dist/scp/makesql/compile-select.js +50 -10
- package/dist/scp/makesql/compile-select.js.map +1 -1
- package/dist/scp/makesql/handler.d.ts +1 -1
- package/dist/scp/makesql/handler.d.ts.map +1 -1
- package/dist/scp/makesql/index.d.ts +7 -10
- package/dist/scp/makesql/index.d.ts.map +1 -1
- package/dist/scp/makesql/index.js +19 -30
- package/dist/scp/makesql/index.js.map +1 -1
- package/dist/scp/makesql/json-array.d.ts +65 -0
- package/dist/scp/makesql/json-array.d.ts.map +1 -1
- package/dist/scp/makesql/json-array.js +99 -10
- package/dist/scp/makesql/json-array.js.map +1 -1
- package/dist/scp/makesql/json-batch.d.ts.map +1 -1
- package/dist/scp/makesql/json-batch.js +21 -19
- package/dist/scp/makesql/json-batch.js.map +1 -1
- package/dist/scp/makesql/makesql.d.ts +1 -1
- package/dist/scp/makesql/makesql.d.ts.map +1 -1
- package/dist/scp/makesql/mysql-returning.d.ts +93 -0
- package/dist/scp/makesql/mysql-returning.d.ts.map +1 -0
- package/dist/scp/makesql/mysql-returning.js +215 -0
- package/dist/scp/makesql/mysql-returning.js.map +1 -0
- package/dist/scp/makesql/outtype.d.ts +75 -34
- package/dist/scp/makesql/outtype.d.ts.map +1 -1
- package/dist/scp/makesql/outtype.js +91 -118
- package/dist/scp/makesql/outtype.js.map +1 -1
- package/dist/scp/makesql/pool-executor.d.ts +135 -13
- package/dist/scp/makesql/pool-executor.d.ts.map +1 -1
- package/dist/scp/makesql/pool-executor.js +229 -21
- package/dist/scp/makesql/pool-executor.js.map +1 -1
- package/dist/scp/makesql/tx.d.ts +107 -22
- package/dist/scp/makesql/tx.d.ts.map +1 -1
- package/dist/scp/makesql/tx.js +451 -97
- package/dist/scp/makesql/tx.js.map +1 -1
- package/dist/scp/makesql/writeouttype.d.ts +7 -8
- package/dist/scp/makesql/writeouttype.d.ts.map +1 -1
- package/dist/scp/makesql/writeouttype.js +8 -7
- package/dist/scp/makesql/writeouttype.js.map +1 -1
- package/dist/scp/middleware.d.ts +287 -0
- package/dist/scp/middleware.d.ts.map +1 -0
- package/dist/scp/middleware.js +358 -0
- package/dist/scp/middleware.js.map +1 -0
- package/dist/scp/relation.d.ts +80 -9
- package/dist/scp/relation.d.ts.map +1 -1
- package/dist/scp/relation.js +198 -78
- package/dist/scp/relation.js.map +1 -1
- package/dist/scp/tx-options.d.ts +136 -0
- package/dist/scp/tx-options.d.ts.map +1 -0
- package/dist/scp/tx-options.js +184 -0
- package/dist/scp/tx-options.js.map +1 -0
- package/dist/scp/write-bundle.d.ts +131 -0
- package/dist/scp/write-bundle.d.ts.map +1 -0
- package/dist/scp/write-bundle.js +160 -0
- package/dist/scp/write-bundle.js.map +1 -0
- package/dist/types.d.ts +7 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/docs/BENCHMARK.md +58 -56
- package/docs/benchmark-chart.svg +166 -166
- package/docs/design/phase-a-execution-context.md +139 -0
- package/package.json +16 -9
- package/dist/scp/authoring-sql.d.ts +0 -134
- package/dist/scp/authoring-sql.d.ts.map +0 -1
- package/dist/scp/authoring-sql.js +0 -191
- package/dist/scp/authoring-sql.js.map +0 -1
- package/dist/scp/authoring.d.ts +0 -155
- package/dist/scp/authoring.d.ts.map +0 -1
- package/dist/scp/authoring.js +0 -162
- package/dist/scp/authoring.js.map +0 -1
- package/dist/scp/catalog.d.ts +0 -94
- package/dist/scp/catalog.d.ts.map +0 -1
- package/dist/scp/catalog.js +0 -234
- package/dist/scp/catalog.js.map +0 -1
- package/dist/scp/codegen.d.ts +0 -189
- package/dist/scp/codegen.d.ts.map +0 -1
- package/dist/scp/codegen.js +0 -421
- package/dist/scp/codegen.js.map +0 -1
- package/dist/scp/find-filter-guard.d.ts +0 -68
- package/dist/scp/find-filter-guard.d.ts.map +0 -1
- package/dist/scp/find-filter-guard.js +0 -88
- package/dist/scp/find-filter-guard.js.map +0 -1
- package/dist/scp/guard.d.ts +0 -43
- package/dist/scp/guard.d.ts.map +0 -1
- package/dist/scp/guard.js +0 -134
- package/dist/scp/guard.js.map +0 -1
- package/dist/scp/makesql/authoring-compile.d.ts +0 -90
- package/dist/scp/makesql/authoring-compile.d.ts.map +0 -1
- package/dist/scp/makesql/authoring-compile.js +0 -494
- package/dist/scp/makesql/authoring-compile.js.map +0 -1
- package/dist/scp/makesql/ir.d.ts +0 -42
- package/dist/scp/makesql/ir.d.ts.map +0 -1
- package/dist/scp/makesql/ir.js +0 -66
- package/dist/scp/makesql/ir.js.map +0 -1
- package/dist/scp/makesql/static-bundle.d.ts +0 -187
- package/dist/scp/makesql/static-bundle.d.ts.map +0 -1
- package/dist/scp/makesql/static-bundle.js +0 -1113
- package/dist/scp/makesql/static-bundle.js.map +0 -1
- package/dist/scp/runtime.d.ts +0 -242
- package/dist/scp/runtime.d.ts.map +0 -1
- package/dist/scp/runtime.js +0 -400
- package/dist/scp/runtime.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './index.js';
|
package/dist/scp/index.d.ts
CHANGED
|
@@ -1,66 +1,65 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* litedbmodel v2 SCP — public surface
|
|
2
|
+
* litedbmodel v2 SCP — public surface.
|
|
3
3
|
*
|
|
4
|
-
* The SQL-backend consumer layer over behavior-contracts (spec §1).
|
|
4
|
+
* The SQL-backend consumer layer over behavior-contracts (spec §1). litedbmodel supplies exactly four
|
|
5
|
+
* things and nothing else:
|
|
5
6
|
*
|
|
6
|
-
*
|
|
7
|
+
* 1. **The leaf transport declaration** — `Db` (`@leaf static executeSQL / pluck / group`), the ONE
|
|
8
|
+
* `@leaf` catalog every authored / emitted model imports (`./leaf-transport`). `bc generate --from`
|
|
9
|
+
* reads it; there is no second declaration anywhere in the repo.
|
|
10
|
+
* 2. **The leaf transport implementation** — `leafHandlers` / `leafHandlersAsync` (`./leaves`), the
|
|
11
|
+
* handler map a bc-generated TS module's `bind(handlers)` / `bindAsync(handlers)` consumes. This is
|
|
12
|
+
* the whole TS runtime seam: `bind(leafHandlers({ exec, dialect }))`.
|
|
13
|
+
* 3. **The tuned SQL** — the `./makesql` subtree (dialect SELECT / INSERT / UPDATE / DELETE / relation
|
|
14
|
+
* / batch builders, byte-true to the v1 builders) and the write bundles + gate-first transaction
|
|
15
|
+
* plans built on it.
|
|
16
|
+
* 4. **The language runtime** — the execution context (connection routing, middleware, transactions),
|
|
17
|
+
* the relation grouping core, the column-type de-box SoT, and the typed-object read surface.
|
|
7
18
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* the original tuned builders — byte-for-byte). A query is a COMPOSITION of `makeSQL`
|
|
12
|
-
* components; a subquery is a NESTED `makeSQL` in a param slot. `= ANY`, `CROSS JOIN
|
|
13
|
-
* LATERAL`, `UNNEST`, cast, batch shapes are all TEXT inside `sql` — never modeled.
|
|
14
|
-
* bc supplies composition / value-eval / envelope / plan. The whole `./makesql`
|
|
15
|
-
* subtree (re-exported below) is the recommended integration surface.
|
|
16
|
-
*
|
|
17
|
-
* ## Superseded (legacy) reduced path.
|
|
18
|
-
*
|
|
19
|
-
* The earlier abstract path (`ir.ts` FragmentTree + `WHERE_SLOT`, `relation.ts`
|
|
20
|
-
* `RelationOp`, `compile-sqlite.ts` reduced SELECT/INSERT/UPDATE forms, `render.ts`,
|
|
21
|
-
* `dialect.ts` strategy table) reduced the tuned SQL to a closed expression/relation-op
|
|
22
|
-
* vocabulary and regressed the byte-parity the library is built on (see
|
|
23
|
-
* `docs/proposal/v2-sql-parity-checklist.md`). It is SUPERSEDED by `./makesql`: SQL
|
|
24
|
-
* structure now lives as text inside `makeSQL`, not as IR "kinds". The legacy modules
|
|
25
|
-
* remain exported (below) only for the historical WS test-suite; new code must use
|
|
26
|
-
* `./makesql`.
|
|
19
|
+
* WIRING IS AUTOMATIC. A behavior is declared in TypeScript, bc compiles it, and the only per-language
|
|
20
|
+
* hand-wiring is the harness calling the generated module's method with the handler map above. There is
|
|
21
|
+
* no runtime IR, no programmatic compile, and no runtime behavior dispatch in this package.
|
|
27
22
|
*/
|
|
28
|
-
export { MAKESQL, makeSqlCatalogEntry, LITEDBMODEL_MAKESQL_CATALOG, isMakeSQL, assembleMakeSQL, composeMakeSQL, renderPlaceholders, renderPorts, makeSqlHandler, makeSqlHandlerSync, compileWhere, whereClause, andTrailing, formatterFor, pgCastFormatter, noCastFormatter, compileSelect as compileSelectMakeSQL, builderFor, compileInsert as compileInsertMakeSQL, compileUpdateMany, compileUpdateSingle, compileDelete as compileDeleteMakeSQL, inferPgArrayType, resolvePgArrayCast, PG_ARRAY_CAST_TOKEN, compileSingleKeyUnlimited, compileSingleKeyLimited, compileCompositeKeyUnlimited, compileCompositeKeyStaticUnlimited, compileCompositeKeyLimited,
|
|
29
|
-
export type { MakeSQL, SqlParam, AssembledSql, Dialect as MakeSQLDialect, SqlExecutor, SqlExecutorSync,
|
|
30
|
-
export {
|
|
31
|
-
export
|
|
23
|
+
export { MAKESQL, makeSqlCatalogEntry, LITEDBMODEL_MAKESQL_CATALOG, isMakeSQL, assembleMakeSQL, composeMakeSQL, renderPlaceholders, renderPorts, makeSqlHandler, makeSqlHandlerSync, compileWhere, whereClause, andTrailing, formatterFor, pgCastFormatter, noCastFormatter, compileSelect as compileSelectMakeSQL, builderFor, compileInsert as compileInsertMakeSQL, compileUpdateMany, compileUpdateSingle, compileDelete as compileDeleteMakeSQL, inferPgArrayType, resolvePgArrayCast, PG_ARRAY_CAST_TOKEN, compileSingleKeyUnlimited, compileSingleKeyLimited, compileCompositeKeyUnlimited, compileCompositeKeyStaticUnlimited, compileCompositeKeyLimited, configurePgDeboxTypeParsers, mysqlDeboxPoolOptions, pgConnectionPool, mysqlConnectionPool, pgPoolFactory, mysqlPoolFactory, } from './makesql';
|
|
24
|
+
export type { MakeSQL, SqlParam, AssembledSql, Dialect as MakeSQLDialect, SqlExecutor, SqlExecutorSync, SelectDesc as MakeSQLSelectDesc, RelationCompileBase, PgPoolLike, MysqlPoolLike, PgTypesLike, PgModuleLike, Mysql2ModuleLike, } from './makesql';
|
|
25
|
+
export { Db } from './leaf-transport';
|
|
26
|
+
export { executeSQL, executeSQLAsync, pluck, group, leafHandlers, leafHandlersAsync, LEAF_TRANSPORT_SYMBOLS, prepareSql, spliceWhere, assembleDynamicWhere } from './leaves';
|
|
27
|
+
export type { LeafContext, AsyncLeafContext, DynamicWhereFrag, DynamicWherePlan } from './leaves';
|
|
28
|
+
export { emitBehaviorModule } from './emit';
|
|
29
|
+
export type { EmitSpec, EmitResult, EmittedEndpoint, ComparisonOp, ComparePredicate, InPredicate, TupleInPredicate, NullPredicate, CorrelationTerm, ExistsPredicate, SubqueryPredicate, Predicate, RelationSelection, QueryView, PageBound, ReadEndpoint, ValueBinding, CreateEndpoint, UpdateEndpoint, DeleteEndpoint, CreateManyEndpoint, UpdateManyEndpoint, DeleteManyEndpoint, Endpoint, EndpointSet, } from './emit';
|
|
32
30
|
export { dialectFor, toDollarPlaceholders, SQLITE, POSTGRES, MYSQL } from './dialect';
|
|
33
31
|
export type { Dialect, DialectName } from './dialect';
|
|
34
|
-
export {
|
|
35
|
-
export type {
|
|
36
|
-
export {
|
|
37
|
-
export type {
|
|
38
|
-
export {
|
|
39
|
-
export {
|
|
40
|
-
export type {
|
|
41
|
-
export {
|
|
42
|
-
export type {
|
|
43
|
-
export {
|
|
44
|
-
export type {
|
|
45
|
-
export {
|
|
46
|
-
export type {
|
|
47
|
-
export {
|
|
48
|
-
export type {
|
|
32
|
+
export { mapSqliteError, SqlFailure, LimitExceededError } from './errors';
|
|
33
|
+
export type { SqlFailureKind, LimitExceededContext } from './errors';
|
|
34
|
+
export { setLimitConfig, getLimitConfig, resetLimitConfig, resolveFindHardLimit, resolveHasManyHardLimit, assertFindHardLimit } from './limit-config';
|
|
35
|
+
export type { LimitConfig } from './limit-config';
|
|
36
|
+
export { sqlTypeToBcScalar, sqlTypeToMaterializeClass, materializeCell, materializeClassOrUndefined, parseSchemaColumnTypes, schemaColumnTypeResolver, materializeResolverFromColumnMap, failClosedMaterializeResolverFromColumnMap, columnTypeResolverFromColumnMap } from './coltype';
|
|
37
|
+
export type { BcScalar, MaterializeClass, ColumnTypeResolver, MaterializeResolver } from './coltype';
|
|
38
|
+
export type { SqliteDb, ExecuteOptions, SqlBundle } from './write-bundle';
|
|
39
|
+
export { execute, executeSafe, run, executeAsync, runAsync, runGuarded, runGuardedAsync, contextForDriver, contextForConnection, connectionForDriver, MiddlewareChain, PooledAsyncContext, withTransactionAsync, transaction, runWithPinnedAsyncConnection, currentPinnedAsyncConnection, } from './exec-context';
|
|
40
|
+
export type { ExecutionContext, AsyncExecutionContext, StatementIntent, Rows, RunInfo, SyncConnection, AsyncConnection, AsyncConnectionPool, Middleware, MiddlewareStackSource, SeamNext, SqliteDriver, TxOptions, } from './exec-context';
|
|
41
|
+
export { Registry, currentRegistry, withMiddlewareScope, activeSqlMiddlewares, register, use, createMiddleware, runMethod, Logger, rawExecute, rawExecuteAsync, rawQuery, rawQueryAsync, clearMiddlewares, } from './middleware';
|
|
42
|
+
export type { SqlHook, MethodKind, MethodHook, MethodNext, MiddlewareDescriptor, MiddlewareHandle, MiddlewareConfig, MethodHookFn, SqlNext, LogEntry, LoggerOptions, RawResult, } from './middleware';
|
|
43
|
+
export { ConnectionRegistry, ConnectionRegistryBuilder, WriterStickyClock, DEFAULT_CONNECTION, withWriter, inWriterScope, resolvePool, resolveConnectionConfig, sessionStatements, sessionResetStatements, configuredPool, singlePoolPair, readerWriterPair, buildRoutingConfig, } from './connection-routing';
|
|
44
|
+
export type { ConnectionConfig, ResolvedConnectionConfig, ReaderWriterPools, RoutingConfig, ConnectionSetup, PoolCloser, PoolFactory, } from './connection-routing';
|
|
45
|
+
export { isolationPhrase, beginStatements, resolveTxOptions, isRetryableTxError, sleep, runInTransactionScope, withReadOnly, isInTransaction, isReadOnly, checkWriteAllowed, WriteOutsideTransactionError, WriteInReadOnlyContextError, } from './tx-options';
|
|
46
|
+
export type { IsolationLevel, TransactionOptions, ResolvedTxOptions } from './tx-options';
|
|
49
47
|
export { entityWrites, edgeWrites, lifecycleFor, parseEffectPath, ENTITY_ROOT, } from './writes';
|
|
50
48
|
export type { PathRoot, EffectPath, RequiresEffect, UniqueEffect, DeriveEffect, EdgeEffect, EmitEffect, IdempotencyEffect, LifecycleEffects, LifecycleContract, WriteLifecyclePhase, EntityWritesDefinition, EntityWritesShape, WriteRecorder, } from './writes';
|
|
51
|
-
export { deriveTransactionPlan, executeTransaction, countingDriver, renderTxStatement, compileWriteNode, mysqlPkHint, stripMysqlPkHint } from './makesql';
|
|
52
|
-
export type { TxExpr, TxOp, StatementRole, GateRule, TxStatement, TransactionPlan, IdempotentHitPolicy, BaseWrite, TransactionResult, ShortCircuitReason, } from './makesql';
|
|
53
|
-
export { compileWriteBundle,
|
|
54
|
-
export { compileCompositeWriteBundle
|
|
55
|
-
export type { CompositeWriteEntry } from './
|
|
56
|
-
export { compileCreateManyBundle, compileUpdateManyBundle, compileDeleteManyBundle } from './
|
|
57
|
-
export { compileDeleteMany } from './makesql';
|
|
58
|
-
export {
|
|
59
|
-
export type { CodegenLanguage, SqlCatalogCompanion, CodegenArtifact, } from './codegen';
|
|
49
|
+
export { deriveTransactionPlan, executeTransaction, executeTransactionAsync, countingDriver, renderTxStatement, compileWriteNode, mysqlPkHint, stripMysqlPkHint } from './makesql';
|
|
50
|
+
export type { TxExpr, TxOp, StatementRole, GateRule, TxStatement, TransactionPlan, IdempotentHitPolicy, BaseWrite, TransactionResult, ShortCircuitReason, WriteExecOptions, } from './makesql';
|
|
51
|
+
export { compileWriteBundle, executeTransactionBundle } from './write-bundle';
|
|
52
|
+
export { compileCompositeWriteBundle } from './write-bundle';
|
|
53
|
+
export type { CompositeWriteEntry } from './write-bundle';
|
|
54
|
+
export { compileCreateManyBundle, compileUpdateManyBundle, compileDeleteManyBundle } from './write-bundle';
|
|
55
|
+
export { compileDeleteMany, compileInsertMany } from './makesql';
|
|
56
|
+
export { dbCast, dbCastIn } from '../DBValues';
|
|
60
57
|
export { compileRelationOp, runRelationOp, distributeToParent, RELATION_KEYS_HEAD, } from './relation';
|
|
61
58
|
export type { RelationKind, RelationDecl, RelationOp, RelationBatch, RelationDriver, } from './relation';
|
|
62
59
|
export { buildResultSet, readRelationContext, RelationContext, RELATION_CONTEXT, } from './typed-object';
|
|
63
60
|
export type { HydrateFactory, ReadOptions } from './typed-object';
|
|
64
|
-
export {
|
|
65
|
-
export type {
|
|
61
|
+
export { deriveModelColumns, columnSqlType, tableNameOf, COLUMN_FAMILY_SQL_TYPE, DEFAULT_UNCAST_SQL_TYPE, compileCreateBundle, compileUpdateBundle, compileDeleteBundle, modelColumnResolver, relationKeyTypeResolver, deriveRelationDecls, relationDeclOf, compileRelationOps, } from './decorator-adapter';
|
|
62
|
+
export type { ModelClassLike, DeriveColumnsOptions, ModelColumns, KeyTypeResolver } from './decorator-adapter';
|
|
63
|
+
export { behavior, leaf, opt, refsConnection, AuthoringFailure } from 'behavior-contracts';
|
|
64
|
+
export type { Int, Float, WireValue, AuthoringFailureCode } from 'behavior-contracts';
|
|
66
65
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/scp/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scp/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scp/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AA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