@vibeorm/sql 2.0.1 → 2.1.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/dist/ast.d.ts +54 -7
- package/dist/ast.d.ts.map +1 -1
- package/dist/codecs.d.ts +2 -3
- package/dist/codecs.d.ts.map +1 -1
- package/dist/composable.d.ts +70 -0
- package/dist/composable.d.ts.map +1 -0
- package/dist/dialect.d.ts +85 -8
- package/dist/dialect.d.ts.map +1 -1
- package/dist/dialects/constraint-owned-index.d.ts +9 -0
- package/dist/dialects/constraint-owned-index.d.ts.map +1 -0
- package/dist/dialects/migration-history.d.ts +8 -0
- package/dist/dialects/migration-history.d.ts.map +1 -0
- package/dist/dialects/migration-inventory.d.ts +24 -0
- package/dist/dialects/migration-inventory.d.ts.map +1 -0
- package/dist/dialects/migration-objects.d.ts +37 -0
- package/dist/dialects/migration-objects.d.ts.map +1 -0
- package/dist/dialects/migration-visibility.d.ts +8 -0
- package/dist/dialects/migration-visibility.d.ts.map +1 -0
- package/dist/dialects/mysql-check-probe.d.ts +16 -0
- package/dist/dialects/mysql-check-probe.d.ts.map +1 -0
- package/dist/dialects/mysql.d.ts.map +1 -1
- package/dist/dialects/postgres.d.ts.map +1 -1
- package/dist/dialects/sqlite-constraints.d.ts +16 -0
- package/dist/dialects/sqlite-constraints.d.ts.map +1 -0
- package/dist/dialects/sqlite-table-definition.d.ts +19 -0
- package/dist/dialects/sqlite-table-definition.d.ts.map +1 -0
- package/dist/dialects/sqlite.d.ts.map +1 -1
- package/dist/exclusion.d.ts +32 -0
- package/dist/exclusion.d.ts.map +1 -0
- package/dist/index.d.ts +21 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1544 -379
- package/dist/index.js.map +25 -12
- package/dist/locks.d.ts +57 -0
- package/dist/locks.d.ts.map +1 -0
- package/dist/predicate.d.ts +53 -0
- package/dist/predicate.d.ts.map +1 -0
- package/dist/render.d.ts.map +1 -1
- package/dist/result-decoder.d.ts +49 -0
- package/dist/result-decoder.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exclusion.d.ts","sourceRoot":"","sources":["../src/exclusion.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAqB,WAAW,EAAE,aAAa,EAAW,OAAO,EAAE,MAAM,iBAAiB,CAAC;AACvG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAO/C,8FAA8F;AAC9F,wBAAgB,gBAAgB,CAAC,MAAM,EAAE;IAAE,SAAS,EAAE,aAAa,CAAC;IAAC,KAAK,EAAE,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,QAAQ,CAAC,CAAC;IAAC,OAAO,EAAE,UAAU,CAAA;CAAE,GAAG,WAAW,CAwChJ;AAED,yEAAyE;AACzE,wBAAgB,oBAAoB,CAAC,MAAM,EAAE;IAAE,OAAO,EAAE,UAAU,CAAC;IAAC,SAAS,EAAE,WAAW,CAAA;CAAE,GAAG,MAAM,EAAE,CAGtG;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE;IAAE,OAAO,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,WAAW,CAAC;IAAC,SAAS,EAAE,KAAK,GAAG,MAAM,CAAA;CAAE,GAAG,MAAM,EAAE,CAM9I;AAED,gGAAgG;AAChG,wBAAgB,sBAAsB,CAAC,MAAM,EAAE;IAAE,OAAO,EAAE,UAAU,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAK9F;AAED,2FAA2F;AAC3F,wBAAgB,oBAAoB,CAAC,MAAM,EAAE;IAAE,OAAO,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,EAAE,CAIhI"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,25 @@
|
|
|
1
|
+
export { sql, isSqlFragment, renderSqlFragment, compileSql, sqlUsesIncoming, mapConflictColumns } from "./composable.ts";
|
|
2
|
+
export type { SqlFragment, SqlTag } from "./composable.ts";
|
|
3
|
+
export { decode } from "./result-decoder.ts";
|
|
4
|
+
export type { ResultDecoder, Decoded, ExtendedDateTime } from "./result-decoder.ts";
|
|
1
5
|
/**
|
|
2
6
|
* @vibeorm/sql — dialect-aware SQL layer for VibeORM v2.
|
|
3
7
|
*
|
|
4
8
|
* SQL AST + per-dialect renderers + capability tables. Every SQL-text decision
|
|
5
9
|
* lives in this package; see the root sql-catalog.md for the reviewable surface.
|
|
6
10
|
*/
|
|
7
|
-
export
|
|
8
|
-
export {
|
|
9
|
-
export
|
|
11
|
+
export { compileExclusion, renderExclusionSetup, renderExclusionDdl, renderExclusionCatalog, renderExclusionProbe } from "./exclusion.ts";
|
|
12
|
+
export type { AdvisoryLockKey, AdvisoryLockStatement, AggFn, AggRef, AggSelect, ColRef, ComparisonOp, DeleteStatement, ExcludedRef, InnerJoin, InsertStatement, JsonFilterOp, LateralJoin, ListSetOperation, OnConflictClause, OnConflictDoNothing, OnConflictUpdate, OrderByAggregate, OrderByColumn, OrderBySubquery, OrderTerm, RowLock, RowNumberProjection, DbNowMarker, JsonParamCell, SelectExpr, SelectStatement, SetOperation, SetOperator, SqlExpr, SqlStatement, TableRef, UpdateStatement, } from "./ast.ts";
|
|
13
|
+
export { ADVISORY_LOCK_RESULT_COLUMN, SQL_DEFAULT_CELL, dbNowMarker, excludedRef, isDbNowMarker, isExcludedRef, isJsonParamCell, isListSetOperation, isSetOperation, isSqlDefaultCell, jsonParamCell, } from "./ast.ts";
|
|
14
|
+
export type { AdvisoryLockFunctions, AdvisoryLockModeFunctions, RowLockSyntax, SqlDialect, } from "./dialect.ts";
|
|
15
|
+
export { ADVISORY_KEY_BOUNDS, describeRowLock, renderAdvisoryLock, renderRowLockClause } from "./locks.ts";
|
|
10
16
|
export { JSON_TRANSPORT, projectionOutputName } from "./json-transport.ts";
|
|
11
17
|
export { postgresDialect } from "./dialects/postgres.ts";
|
|
12
18
|
export { sqliteDialect } from "./dialects/sqlite.ts";
|
|
13
19
|
export { mysqlDialect } from "./dialects/mysql.ts";
|
|
14
20
|
export { SQL_DIALECTS, getSqlDialect } from "./dialects/registry.ts";
|
|
21
|
+
export { renderPredicate } from "./predicate.ts";
|
|
22
|
+
export type { PredicateModel, PredicateUsage } from "./predicate.ts";
|
|
15
23
|
export { DIALECT_CAPABILITIES, MYSQL_CAPABILITIES, POSTGRES_CAPABILITIES, SQLITE_CAPABILITIES, } from "./capabilities.ts";
|
|
16
24
|
export { DIALECT_CODECS, MYSQL_CODECS, POSTGRES_CODECS, SQLITE_CODECS, decodeIsNoop, enumMembershipCodec, parseDateTimeText, } from "./codecs.ts";
|
|
17
25
|
export type { CodecTable, ScalarCodec, WireFidelity } from "./codecs.ts";
|
|
@@ -24,6 +32,16 @@ export { containsPattern, endsWithPattern, escapeGlobPattern, escapeLikePattern,
|
|
|
24
32
|
export { RLS_READINESS_SQL, NATIVE_RLS_PROBE_POLICY, renderRlsReadinessQuery, renderRlsProbeTable, renderRlsPolicyPath } from "./dialects/postgres-rls-readiness.ts";
|
|
25
33
|
export type { RlsReadinessQuery } from "./dialects/postgres-rls-readiness.ts";
|
|
26
34
|
export { isFixedDiagnostic, renderDiagnostic } from "./dialects/diagnostics.ts";
|
|
35
|
+
export { sqliteColumnClauses } from "./dialects/sqlite-table-definition.ts";
|
|
36
|
+
export type { SqliteColumnClause } from "./dialects/sqlite-table-definition.ts";
|
|
37
|
+
export { renderConstraintOwnedIndexDrop } from "./dialects/constraint-owned-index.ts";
|
|
38
|
+
export { renderMysqlCheckProbe } from "./dialects/mysql-check-probe.ts";
|
|
39
|
+
export { renderMigrationHistoryQuery } from "./dialects/migration-history.ts";
|
|
40
|
+
export { sqliteTableConstraints } from "./dialects/sqlite-constraints.ts";
|
|
41
|
+
export type { SqliteConstraintClause } from "./dialects/sqlite-constraints.ts";
|
|
42
|
+
export { renderMigrationVisibility } from "./dialects/migration-visibility.ts";
|
|
43
|
+
export { renderMigrationInventory, renderSqliteColumnInventory, renderSqliteForeignKeyInventory, renderSqliteRebuildObjects } from "./dialects/migration-inventory.ts";
|
|
44
|
+
export { renderMigrationObjectQuery, renderCheckProbe, renderMigrationNamespace, renderMigrationServerVersion, renderMigrationDependencies, renderMysqlObjectMembers } from "./dialects/migration-objects.ts";
|
|
27
45
|
export type { DiagnosticStatement, FixedDiagnosticQuery } from "./dialects/diagnostics.ts";
|
|
28
46
|
export { POSTGRES_DIAGNOSTIC_SQL, POSTGRES_WORKLOAD_LIMITS, renderPostgresExplain, renderPostgresWorkload, } from "./dialects/postgres-diagnostics.ts";
|
|
29
47
|
export type { PostgresExplainOptions, PostgresWorkloadQuery } from "./dialects/postgres-diagnostics.ts";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,aAAa,EAAE,iBAAiB,EAAE,UAAU,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACzH,YAAY,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,YAAY,EAAE,aAAa,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACpF;;;;;GAKG;AAEH,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAI1I,YAAY,EACV,eAAe,EACf,qBAAq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