@danceroutine/tango-orm 1.11.1 → 1.11.3
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/dist/Adapter-DKxAaL4l.d.ts +73 -0
- package/dist/DBClient-DuYcXolQ.d.ts +27 -0
- package/dist/{InternalDialect-ClSaUNso.js → InternalDialect-U3mwJjKA.js} +3 -4
- package/dist/InternalDialect-U3mwJjKA.js.map +1 -0
- package/dist/QuerySetState-CjyvAUBs.d.ts +1310 -0
- package/dist/SqliteAdapter-6oyUmoJf.js +279 -0
- package/dist/SqliteAdapter-6oyUmoJf.js.map +1 -0
- package/dist/chunk-8H4AJuhK.js +14 -0
- package/dist/connection/index.d.ts +4 -11
- package/dist/connection/index.js +3 -6
- package/dist/{connection-Dmhgx31M.js → connection-D-E6_Yf1.js} +28 -30
- package/dist/connection-D-E6_Yf1.js.map +1 -0
- package/dist/{defaultRuntime-DzqBQ9Hb.js → defaultRuntime-CdTX8cXm.js} +41 -35
- package/dist/defaultRuntime-CdTX8cXm.js.map +1 -0
- package/dist/index-B-aibguC.d.ts +226 -0
- package/dist/index-D9B6gKez.d.ts +70 -0
- package/dist/index-rjKca3U_.d.ts +31 -0
- package/dist/index-uuG57Y7C.d.ts +97 -0
- package/dist/index.d.ts +9 -22
- package/dist/index.js +9 -12
- package/dist/manager/index.d.ts +4 -12
- package/dist/manager/index.js +3 -9
- package/dist/{manager-DrDTiCAz.js → manager-CiYqAYpn.js} +7 -11
- package/dist/{manager-DrDTiCAz.js.map → manager-CiYqAYpn.js.map} +1 -1
- package/dist/query/index.d.ts +3 -14
- package/dist/query/index.js +2 -4
- package/dist/{query-DUZnBFhf.js → query-CP1UMIX6.js} +163 -121
- package/dist/query-CP1UMIX6.js.map +1 -0
- package/dist/registerModelObjects-C-MliIiM.d.ts +229 -0
- package/dist/{registerModelObjects-22ZJKoit.js → registerModelObjects-DZfZ20fa.js} +119 -69
- package/dist/registerModelObjects-DZfZ20fa.js.map +1 -0
- package/dist/runtime/index.d.ts +3 -15
- package/dist/runtime/index.js +15 -8
- package/dist/runtime/index.js.map +1 -0
- package/dist/transaction/index.d.ts +2 -6
- package/dist/transaction/index.js +2 -7
- package/dist/{transaction-ZhfDf-f8.js → transaction-2_2m7VUo.js} +26 -10
- package/dist/transaction-2_2m7VUo.js.map +1 -0
- package/package.json +7 -7
- package/dist/InternalDialect-ClSaUNso.js.map +0 -1
- package/dist/PostgresAdapter-CXKdKBG-.js +0 -4
- package/dist/PostgresAdapter-DySFW6vy.js +0 -128
- package/dist/PostgresAdapter-DySFW6vy.js.map +0 -1
- package/dist/SqliteAdapter-CDdOjRmW.js +0 -151
- package/dist/SqliteAdapter-CDdOjRmW.js.map +0 -1
- package/dist/SqliteAdapter-mjtXuVTg.js +0 -4
- package/dist/chunk-DLY2FNSh.js +0 -12
- package/dist/connection/adapters/Adapter.d.ts +0 -60
- package/dist/connection/adapters/AdapterRegistry.d.ts +0 -44
- package/dist/connection/adapters/dialects/PostgresAdapter.d.ts +0 -30
- package/dist/connection/adapters/dialects/SqliteAdapter.d.ts +0 -22
- package/dist/connection/adapters/dialects/index.d.ts +0 -5
- package/dist/connection/adapters/index.d.ts +0 -8
- package/dist/connection/clients/DBClient.d.ts +0 -23
- package/dist/connection/clients/dialects/PostgresClient.d.ts +0 -54
- package/dist/connection/clients/dialects/SqliteClient.d.ts +0 -54
- package/dist/connection/clients/dialects/index.d.ts +0 -5
- package/dist/connection/clients/index.d.ts +0 -7
- package/dist/connection-Dmhgx31M.js.map +0 -1
- package/dist/defaultRuntime-DzqBQ9Hb.js.map +0 -1
- package/dist/manager/ManagerLike.d.ts +0 -34
- package/dist/manager/ModelManager.d.ts +0 -106
- package/dist/manager/internal/MutationCompiler.d.ts +0 -23
- package/dist/manager/internal/RuntimeBoundClient.d.ts +0 -20
- package/dist/manager/registerModelObjects.d.ts +0 -5
- package/dist/manager/relations/ManyToManyRelatedManager.d.ts +0 -181
- package/dist/manager/relations/ManyToManyRelatedQuerySet.d.ts +0 -62
- package/dist/manager/relations/MaterializedModelRecord.d.ts +0 -28
- package/dist/manager/relations/index.d.ts +0 -9
- package/dist/manager/relations/internal/ThroughTableManager.d.ts +0 -85
- package/dist/query/ModelQuerySet.d.ts +0 -20
- package/dist/query/QBuilder.d.ts +0 -29
- package/dist/query/QuerySet.d.ts +0 -215
- package/dist/query/compiler/QueryCompiler.d.ts +0 -49
- package/dist/query/compiler/index.d.ts +0 -4
- package/dist/query/domain/CompiledQuery.d.ts +0 -209
- package/dist/query/domain/Dialect.d.ts +0 -2
- package/dist/query/domain/Direction.d.ts +0 -2
- package/dist/query/domain/FilterInput.d.ts +0 -3
- package/dist/query/domain/FilterKey.d.ts +0 -4
- package/dist/query/domain/FilterValue.d.ts +0 -1
- package/dist/query/domain/LookupType.d.ts +0 -2
- package/dist/query/domain/OrderSpec.d.ts +0 -5
- package/dist/query/domain/OrderToken.d.ts +0 -1
- package/dist/query/domain/QNode.d.ts +0 -9
- package/dist/query/domain/QueryResult.d.ts +0 -35
- package/dist/query/domain/QuerySetState.d.ts +0 -13
- package/dist/query/domain/RelationMeta.d.ts +0 -56
- package/dist/query/domain/RelationTyping.d.ts +0 -163
- package/dist/query/domain/TableMeta.d.ts +0 -16
- package/dist/query/domain/TableMetaFactory.d.ts +0 -10
- package/dist/query/domain/WhereClause.d.ts +0 -4
- package/dist/query/domain/index.d.ts +0 -21
- package/dist/query/domain/internal/InternalDialect.d.ts +0 -4
- package/dist/query/domain/internal/InternalDirection.d.ts +0 -4
- package/dist/query/domain/internal/InternalLookupType.d.ts +0 -15
- package/dist/query/domain/internal/InternalPrefetchQueryKind.d.ts +0 -20
- package/dist/query/domain/internal/InternalQNodeType.d.ts +0 -6
- package/dist/query/domain/internal/InternalRelationKind.d.ts +0 -6
- package/dist/query/internal/isQNodeLike.d.ts +0 -3
- package/dist/query/planning/QueryPlanner.d.ts +0 -16
- package/dist/query/planning/domain/QueryHydrationPlan.d.ts +0 -20
- package/dist/query/planning/index.d.ts +0 -2
- package/dist/query-DUZnBFhf.js.map +0 -1
- package/dist/registerModelObjects-22ZJKoit.js.map +0 -1
- package/dist/runtime/TangoRuntime.d.ts +0 -56
- package/dist/runtime/defaultRuntime.d.ts +0 -13
- package/dist/runtime/internal/DBClientProvider.d.ts +0 -12
- package/dist/runtime/internal/PostgresDBClientProvider.d.ts +0 -12
- package/dist/runtime/internal/SqliteDBClientProvider.d.ts +0 -19
- package/dist/runtime/internal/createDBClientProvider.d.ts +0 -5
- package/dist/runtime-1H88J3nN.js +0 -18
- package/dist/runtime-1H88J3nN.js.map +0 -1
- package/dist/transaction/AtomicTransaction.d.ts +0 -32
- package/dist/transaction/UnitOfWork.d.ts +0 -52
- package/dist/transaction/atomic.d.ts +0 -2
- package/dist/transaction/internal/context/AsyncLocalTransactionEngine.d.ts +0 -21
- package/dist/transaction/internal/context/CallbackRecord.d.ts +0 -5
- package/dist/transaction/internal/context/FrameBoundTransaction.d.ts +0 -20
- package/dist/transaction/internal/context/FrameTransactionHandle.d.ts +0 -4
- package/dist/transaction/internal/context/TransactionEngine.d.ts +0 -16
- package/dist/transaction/internal/context/TransactionFrame.d.ts +0 -7
- package/dist/transaction/internal/context/TransactionState.d.ts +0 -10
- package/dist/transaction/internal/context/index.d.ts +0 -1
- package/dist/transaction-ZhfDf-f8.js.map +0 -1
- package/dist/validation/OrmSqlSafetyAdapter.d.ts +0 -22
- package/dist/validation/SQLValidationEngine.d.ts +0 -68
- package/dist/validation/SqlValidationPlan.d.ts +0 -43
- package/dist/validation/index.d.ts +0 -3
- package/dist/validation/internal/InternalSqlValidationPlanKind.d.ts +0 -25
- package/dist/validation/internal/InternalValidatedFilterDescriptorKind.d.ts +0 -4
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { t as DBClient } from "./DBClient-DuYcXolQ.js";
|
|
2
|
+
|
|
3
|
+
//#region src/transaction/AtomicTransaction.d.ts
|
|
4
|
+
interface OnCommitOptions {
|
|
5
|
+
robust?: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface SavepointOptions {
|
|
8
|
+
throwOnError?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Result returned by `tx.savepoint(...)`.
|
|
12
|
+
*/
|
|
13
|
+
type SavepointResult<T> = {
|
|
14
|
+
ok: true;
|
|
15
|
+
value: T;
|
|
16
|
+
} | {
|
|
17
|
+
ok: false;
|
|
18
|
+
error: unknown;
|
|
19
|
+
};
|
|
20
|
+
interface AtomicTransaction {
|
|
21
|
+
/**
|
|
22
|
+
* Register a callback that should run only after the outermost transaction commit succeeds.
|
|
23
|
+
*/
|
|
24
|
+
onCommit(callback: () => void, options?: OnCommitOptions): void;
|
|
25
|
+
/**
|
|
26
|
+
* Run work inside a nested savepoint and, by default, capture rollback as a result object instead of throwing.
|
|
27
|
+
*/
|
|
28
|
+
savepoint<T>(work: (tx: AtomicTransaction) => Promise<T> | T): Promise<SavepointResult<T>>;
|
|
29
|
+
savepoint<T>(work: (tx: AtomicTransaction) => Promise<T> | T, options: {
|
|
30
|
+
throwOnError: false;
|
|
31
|
+
}): Promise<SavepointResult<T>>;
|
|
32
|
+
savepoint<T>(work: (tx: AtomicTransaction) => Promise<T> | T, options: {
|
|
33
|
+
throwOnError: true;
|
|
34
|
+
}): Promise<T>;
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/transaction/atomic.d.ts
|
|
38
|
+
declare function atomic<T>(work: (tx: AtomicTransaction) => Promise<T> | T): Promise<T>;
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/transaction/UnitOfWork.d.ts
|
|
41
|
+
/**
|
|
42
|
+
* Unit of Work pattern implementation for managing database transactions.
|
|
43
|
+
* Ensures that a set of operations either all succeed or all fail together.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```typescript
|
|
47
|
+
* const uow = await UnitOfWork.start(dbClient);
|
|
48
|
+
* try {
|
|
49
|
+
* await userRepo.create({ email: 'test@example.com' });
|
|
50
|
+
* await postRepo.create({ title: 'Hello' });
|
|
51
|
+
* await uow.commit();
|
|
52
|
+
* } catch (error) {
|
|
53
|
+
* await uow.rollback();
|
|
54
|
+
* throw error;
|
|
55
|
+
* }
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* @deprecated Use `transaction.atomic(async (tx) => { ... })` for application
|
|
59
|
+
* transaction workflows. `UnitOfWork` remains exported only for compatibility.
|
|
60
|
+
*/
|
|
61
|
+
declare class UnitOfWork {
|
|
62
|
+
static readonly BRAND: "tango.orm.unit_of_work";
|
|
63
|
+
readonly __tangoBrand: typeof UnitOfWork.BRAND;
|
|
64
|
+
protected client: DBClient;
|
|
65
|
+
protected isActive: boolean;
|
|
66
|
+
constructor(client: DBClient);
|
|
67
|
+
/**
|
|
68
|
+
* Narrow an unknown value to `UnitOfWork`.
|
|
69
|
+
*/
|
|
70
|
+
static isUnitOfWork(value: unknown): value is UnitOfWork;
|
|
71
|
+
/**
|
|
72
|
+
* Convenience factory that constructs and begins a unit of work.
|
|
73
|
+
*/
|
|
74
|
+
static start(client: DBClient): Promise<UnitOfWork>;
|
|
75
|
+
/**
|
|
76
|
+
* Begin a transaction if one is not already active.
|
|
77
|
+
*/
|
|
78
|
+
begin(): Promise<void>;
|
|
79
|
+
/**
|
|
80
|
+
* Commit the active transaction.
|
|
81
|
+
*/
|
|
82
|
+
commit(): Promise<void>;
|
|
83
|
+
/**
|
|
84
|
+
* Return the underlying database client.
|
|
85
|
+
*/
|
|
86
|
+
getClient(): DBClient;
|
|
87
|
+
/**
|
|
88
|
+
* Roll back the active transaction.
|
|
89
|
+
*/
|
|
90
|
+
rollback(): Promise<void>;
|
|
91
|
+
}
|
|
92
|
+
declare namespace index_d_exports {
|
|
93
|
+
export { AtomicTransaction, OnCommitOptions, SavepointOptions, SavepointResult, UnitOfWork, atomic };
|
|
94
|
+
}
|
|
95
|
+
//#endregion
|
|
96
|
+
export { OnCommitOptions as a, AtomicTransaction as i, UnitOfWork as n, SavepointOptions as o, atomic as r, SavepointResult as s, index_d_exports as t };
|
|
97
|
+
//# sourceMappingURL=index-uuG57Y7C.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,22 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* Unbundled exports for more TS native developers
|
|
11
|
-
*/
|
|
12
|
-
export { AdapterRegistry, connectDB, getDefaultAdapterRegistry } from './connection/index';
|
|
13
|
-
export type { Adapter, AdapterConfig, DBClient } from './connection/index';
|
|
14
|
-
export { PostgresAdapter, SqliteAdapter } from './connection/index';
|
|
15
|
-
export { ManyToManyRelatedManager, ModelManager } from './manager/index';
|
|
16
|
-
export type { ManagerLike, ManyToManyTargetRef, MaterializedModelRecord } from './manager/index';
|
|
17
|
-
export { Q, QBuilder, QueryCompiler, QueryResult, QuerySet, ModelQuerySet } from './query/index';
|
|
18
|
-
export type { QueryExecutor } from './query/index';
|
|
19
|
-
export type { CompiledQuery, Dialect, Direction, FilterInput, FilterKey, FilterValue, LookupType, OrderSpec, OrderToken, QNode, QuerySetState, RelationMeta, TableMeta, WhereClause, } from './query/domain/index';
|
|
20
|
-
export { getTangoRuntime, initializeTangoRuntime, resetTangoRuntime, TangoRuntime } from './runtime/index';
|
|
21
|
-
export { atomic, UnitOfWork } from './transaction/index';
|
|
22
|
-
export type { AtomicTransaction, OnCommitOptions, SavepointOptions, SavepointResult } from './transaction/index';
|
|
1
|
+
import { t as DBClient } from "./DBClient-DuYcXolQ.js";
|
|
2
|
+
import { i as Dialect, n as AdapterConfig, t as Adapter } from "./Adapter-DKxAaL4l.js";
|
|
3
|
+
import { c as getDefaultAdapterRegistry, l as SqliteAdapter, o as AdapterRegistry, s as connectDB, t as index_d_exports, u as PostgresAdapter } from "./index-B-aibguC.js";
|
|
4
|
+
import { A as QBuilder, E as ManyToManyRelatedManager, F as QNode, H as TableMeta, I as FilterInput, L as FilterValue, M as QueryExecutor, N as QuerySet, O as ManyToManyTargetRef, P as OrderToken, R as FilterKey, U as QueryResult, V as QueryCompiler, c as RelationMeta, i as WhereClause, j as ModelQuerySet, k as index_d_exports$2, n as OrderSpec, o as Direction, s as CompiledQuery, t as QuerySetState, z as LookupType } from "./QuerySetState-CjyvAUBs.js";
|
|
5
|
+
import { t as index_d_exports$1 } from "./index-D9B6gKez.js";
|
|
6
|
+
import { a as MaterializedModelRecord, i as ManagerLike, n as ModelManager, r as TangoRuntime } from "./registerModelObjects-C-MliIiM.js";
|
|
7
|
+
import { i as resetTangoRuntime, n as getTangoRuntime, r as initializeTangoRuntime, t as index_d_exports$3 } from "./index-rjKca3U_.js";
|
|
8
|
+
import { a as OnCommitOptions, i as AtomicTransaction, n as UnitOfWork, o as SavepointOptions, r as atomic, s as SavepointResult, t as index_d_exports$4 } from "./index-uuG57Y7C.js";
|
|
9
|
+
export { type Adapter, type AdapterConfig, AdapterRegistry, type AtomicTransaction, type CompiledQuery, type DBClient, type Dialect, type Direction, type FilterInput, type FilterKey, type FilterValue, type LookupType, type ManagerLike, ManyToManyRelatedManager, type ManyToManyTargetRef, type MaterializedModelRecord, ModelManager, ModelQuerySet, type OnCommitOptions, type OrderSpec, type OrderToken, PostgresAdapter, QBuilder as Q, QBuilder, type QNode, QueryCompiler, type QueryExecutor, QueryResult, QuerySet, type QuerySetState, type RelationMeta, type SavepointOptions, type SavepointResult, SqliteAdapter, type TableMeta, TangoRuntime, UnitOfWork, type WhereClause, atomic, connectDB, index_d_exports as connection, getDefaultAdapterRegistry, getTangoRuntime, initializeTangoRuntime, index_d_exports$1 as manager, index_d_exports$2 as query, resetTangoRuntime, index_d_exports$3 as runtime, index_d_exports$4 as transaction };
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { PostgresAdapter } from "./
|
|
2
|
-
import "./
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
import { UnitOfWork, atomic, transaction_exports } from "./transaction-ZhfDf-f8.js";
|
|
11
|
-
|
|
12
|
-
export { AdapterRegistry, ManyToManyRelatedManager, ModelManager, ModelQuerySet, PostgresAdapter, QBuilder as Q, QBuilder, QueryCompiler, QueryResult, QuerySet, SqliteAdapter, TangoRuntime, UnitOfWork, atomic, connectDB, connection_exports as connection, getDefaultAdapterRegistry, getTangoRuntime, initializeTangoRuntime, manager_exports as manager, query_exports as query, resetTangoRuntime, runtime_exports as runtime, transaction_exports as transaction };
|
|
1
|
+
import { i as PostgresAdapter, t as SqliteAdapter } from "./SqliteAdapter-6oyUmoJf.js";
|
|
2
|
+
import { a as connectDB, i as AdapterRegistry, o as getDefaultAdapterRegistry, t as connection_exports } from "./connection-D-E6_Yf1.js";
|
|
3
|
+
import { d as QueryCompiler, i as QBuilder, l as QueryResult, n as ModelQuerySet, r as QuerySet, t as query_exports } from "./query-CP1UMIX6.js";
|
|
4
|
+
import { n as ModelManager, r as ManyToManyRelatedManager } from "./registerModelObjects-DZfZ20fa.js";
|
|
5
|
+
import { t as manager_exports } from "./manager-CiYqAYpn.js";
|
|
6
|
+
import { i as TangoRuntime, n as initializeTangoRuntime, r as resetTangoRuntime, t as getTangoRuntime } from "./defaultRuntime-CdTX8cXm.js";
|
|
7
|
+
import { t as runtime_exports } from "./runtime/index.js";
|
|
8
|
+
import { n as UnitOfWork, r as atomic, t as transaction_exports } from "./transaction-2_2m7VUo.js";
|
|
9
|
+
export { AdapterRegistry, ManyToManyRelatedManager, ModelManager, ModelQuerySet, PostgresAdapter, QBuilder as Q, QBuilder, QueryCompiler, QueryResult, QuerySet, SqliteAdapter, TangoRuntime, UnitOfWork, atomic, connectDB, connection_exports as connection, getDefaultAdapterRegistry, getTangoRuntime, initializeTangoRuntime, manager_exports as manager, query_exports as query, resetTangoRuntime, runtime_exports as runtime, transaction_exports as transaction };
|
package/dist/manager/index.d.ts
CHANGED
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
export type { ManagerLike } from './ManagerLike';
|
|
6
|
-
export { ModelManager } from './ModelManager';
|
|
7
|
-
export { registerModelObjects } from './registerModelObjects';
|
|
8
|
-
export { ManyToManyRelatedQuerySet } from './relations/ManyToManyRelatedQuerySet';
|
|
9
|
-
export type { ManyToManyRelatedQuerySetBridge } from './relations/ManyToManyRelatedQuerySet';
|
|
10
|
-
export { ManyToManyRelatedManager } from './relations/ManyToManyRelatedManager';
|
|
11
|
-
export type { ManyToManyRelatedManagerCreateInputs, ManyToManyTargetRef } from './relations/ManyToManyRelatedManager';
|
|
12
|
-
export type { MaterializedModelRecord } from './relations/MaterializedModelRecord';
|
|
1
|
+
import { D as ManyToManyRelatedManagerCreateInputs, E as ManyToManyRelatedManager, O as ManyToManyTargetRef } from "../QuerySetState-CjyvAUBs.js";
|
|
2
|
+
import { i as ManyToManyRelatedQuerySetBridge, n as index_d_exports, r as ManyToManyRelatedQuerySet } from "../index-D9B6gKez.js";
|
|
3
|
+
import { a as MaterializedModelRecord, i as ManagerLike, n as ModelManager, t as registerModelObjects } from "../registerModelObjects-C-MliIiM.js";
|
|
4
|
+
export { type ManagerLike, ManyToManyRelatedManager, type ManyToManyRelatedManagerCreateInputs, ManyToManyRelatedQuerySet, type ManyToManyRelatedQuerySetBridge, type ManyToManyTargetRef, type MaterializedModelRecord, ModelManager, registerModelObjects, index_d_exports as relations };
|
package/dist/manager/index.js
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import "../
|
|
3
|
-
|
|
4
|
-
import "../query-DUZnBFhf.js";
|
|
5
|
-
import { ManyToManyRelatedManager, ManyToManyRelatedQuerySet, ModelManager, registerModelObjects } from "../registerModelObjects-22ZJKoit.js";
|
|
6
|
-
import { relations_exports } from "../manager-DrDTiCAz.js";
|
|
7
|
-
import "../defaultRuntime-DzqBQ9Hb.js";
|
|
8
|
-
|
|
9
|
-
export { ManyToManyRelatedManager, ManyToManyRelatedQuerySet, ModelManager, registerModelObjects, relations_exports as relations };
|
|
1
|
+
import { i as ManyToManyRelatedQuerySet, n as ModelManager, r as ManyToManyRelatedManager, t as registerModelObjects } from "../registerModelObjects-DZfZ20fa.js";
|
|
2
|
+
import { n as relations_exports } from "../manager-CiYqAYpn.js";
|
|
3
|
+
export { ManyToManyRelatedManager, ManyToManyRelatedQuerySet, ModelManager, registerModelObjects, relations_exports as relations };
|
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { t as __exportAll } from "./chunk-8H4AJuhK.js";
|
|
2
|
+
import { i as ManyToManyRelatedQuerySet, n as ModelManager, r as ManyToManyRelatedManager, t as registerModelObjects } from "./registerModelObjects-DZfZ20fa.js";
|
|
4
3
|
//#region src/manager/relations/index.ts
|
|
5
|
-
var relations_exports = {
|
|
6
|
-
__export(relations_exports, {
|
|
4
|
+
var relations_exports = /* @__PURE__ */ __exportAll({
|
|
7
5
|
ManyToManyRelatedManager: () => ManyToManyRelatedManager,
|
|
8
6
|
ManyToManyRelatedQuerySet: () => ManyToManyRelatedQuerySet
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
//#endregion
|
|
12
9
|
//#region src/manager/index.ts
|
|
13
|
-
var manager_exports = {
|
|
14
|
-
__export(manager_exports, {
|
|
10
|
+
var manager_exports = /* @__PURE__ */ __exportAll({
|
|
15
11
|
ManyToManyRelatedManager: () => ManyToManyRelatedManager,
|
|
16
12
|
ManyToManyRelatedQuerySet: () => ManyToManyRelatedQuerySet,
|
|
17
13
|
ModelManager: () => ModelManager,
|
|
18
14
|
registerModelObjects: () => registerModelObjects,
|
|
19
15
|
relations: () => relations_exports
|
|
20
16
|
});
|
|
21
|
-
|
|
22
17
|
//#endregion
|
|
23
|
-
export {
|
|
24
|
-
|
|
18
|
+
export { relations_exports as n, manager_exports as t };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=manager-CiYqAYpn.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manager-
|
|
1
|
+
{"version":3,"file":"manager-CiYqAYpn.js","names":[],"sources":["../src/manager/relations/index.ts","../src/manager/index.ts"],"sourcesContent":["/**\n * Domain boundary barrel: centralizes ORM relation managers attached to\n * materialized model records.\n */\n\nexport { ManyToManyRelatedQuerySet } from './ManyToManyRelatedQuerySet';\nexport type { ManyToManyRelatedQuerySetBridge } from './ManyToManyRelatedQuerySet';\nexport { ManyToManyRelatedManager } from './ManyToManyRelatedManager';\nexport type { ManyToManyRelatedManagerCreateInputs, ManyToManyTargetRef } from './ManyToManyRelatedManager';\nexport type { MaterializedModelRecord } from './MaterializedModelRecord';\n","/**\n * Domain boundary barrel: centralizes manager-first ORM APIs.\n */\nexport * as relations from './relations/index';\n\nexport type { ManagerLike } from './ManagerLike';\nexport { ModelManager } from './ModelManager';\nexport { registerModelObjects } from './registerModelObjects';\nexport { ManyToManyRelatedQuerySet } from './relations/ManyToManyRelatedQuerySet';\nexport type { ManyToManyRelatedQuerySetBridge } from './relations/ManyToManyRelatedQuerySet';\nexport { ManyToManyRelatedManager } from './relations/ManyToManyRelatedManager';\nexport type { ManyToManyRelatedManagerCreateInputs, ManyToManyTargetRef } from './relations/ManyToManyRelatedManager';\nexport type { MaterializedModelRecord } from './relations/MaterializedModelRecord';\n"],"mappings":""}
|
package/dist/query/index.d.ts
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*/
|
|
5
|
-
export * as compiler from './compiler/index';
|
|
6
|
-
export * as domain from './domain/index';
|
|
7
|
-
export type * from './domain/index';
|
|
8
|
-
export type { TableMeta } from './domain/index';
|
|
9
|
-
export { QueryResult } from './domain/index';
|
|
10
|
-
export { QuerySet } from './QuerySet';
|
|
11
|
-
export { ModelQuerySet } from './ModelQuerySet';
|
|
12
|
-
export type { QueryExecutor } from './QuerySet';
|
|
13
|
-
export { QBuilder, QBuilder as Q } from './QBuilder';
|
|
14
|
-
export { QueryCompiler } from './compiler/index';
|
|
1
|
+
import { i as Dialect } from "../Adapter-DKxAaL4l.js";
|
|
2
|
+
import { A as QBuilder, B as index_d_exports, C as ReverseSingleRelations, F as QNode, H as TableMeta, I as FilterInput, L as FilterValue, M as QueryExecutor, N as QuerySet, P as OrderToken, R as FilterKey, S as ReverseCollectionRelations, T as SingleRelationHydrationCardinality, U as QueryResult, V as QueryCompiler, _ as ManyRelationHydrationCardinality, a as TableMetaFactory, b as RelationHydrationCardinality, c as RelationMeta, d as GeneratedPrefetchRelatedPathKeys, f as GeneratedRelationFilterKeys, g as InternalRelationHydrationCardinality, h as HydratedRelationMap, i as WhereClause, j as ModelQuerySet, l as ForwardSingleRelations, m as HydratedQueryResult, n as OrderSpec, o as Direction, p as GeneratedSelectRelatedPathKeys, r as index_d_exports$1, s as CompiledQuery, t as QuerySetState, u as GeneratedHydratedRelationMap, v as MaybeHydratedRelationMap, w as SelectRelatedRelations, x as RelationKeys, y as PrefetchRelatedRelations, z as LookupType } from "../QuerySetState-CjyvAUBs.js";
|
|
3
|
+
export { type CompiledQuery, type Dialect, type Direction, type FilterInput, type FilterKey, type FilterValue, type ForwardSingleRelations, type GeneratedHydratedRelationMap, type GeneratedPrefetchRelatedPathKeys, type GeneratedRelationFilterKeys, type GeneratedSelectRelatedPathKeys, type HydratedQueryResult, type HydratedRelationMap, type InternalRelationHydrationCardinality, type LookupType, type ManyRelationHydrationCardinality, type MaybeHydratedRelationMap, ModelQuerySet, type OrderSpec, type OrderToken, type PrefetchRelatedRelations, QBuilder as Q, QBuilder, type QNode, QueryCompiler, type QueryExecutor, QueryResult, QuerySet, type QuerySetState, type RelationHydrationCardinality, type RelationKeys, type RelationMeta, type ReverseCollectionRelations, type ReverseSingleRelations, type SelectRelatedRelations, type SingleRelationHydrationCardinality, type TableMeta, type TableMetaFactory, type WhereClause, index_d_exports as compiler, index_d_exports$1 as domain };
|
package/dist/query/index.js
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export { ModelQuerySet, QBuilder as Q, QBuilder, QueryCompiler, QueryResult, QuerySet, compiler_exports as compiler, domain_exports as domain };
|
|
1
|
+
import { d as QueryCompiler, i as QBuilder, l as QueryResult, n as ModelQuerySet, o as domain_exports, r as QuerySet, u as compiler_exports } from "../query-CP1UMIX6.js";
|
|
2
|
+
export { ModelQuerySet, QBuilder as Q, QBuilder, QueryCompiler, QueryResult, QuerySet, compiler_exports as compiler, domain_exports as domain };
|