@atscript/db 0.1.64 → 0.1.66

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.
@@ -748,6 +748,27 @@ declare abstract class BaseDbAdapter {
748
748
  * by finding child records and deleting/nullifying them before the parent.
749
749
  */
750
750
  supportsNativeForeignKeys(): boolean;
751
+ /**
752
+ * Whether this adapter can apply equality/range filters on a given field.
753
+ * Default: scalar columns yes, JSON-stored columns (arrays, `@db.json`
754
+ * objects) no — most SQL engines cannot filter into a raw JSON value.
755
+ *
756
+ * Adapters that natively understand JSON storage (e.g. MongoDB filters arrays
757
+ * with implicit `$in` and dot-paths into embedded documents) override to
758
+ * return `true` for `storage === 'json'`.
759
+ *
760
+ * Used by `AsDbReadableController.buildMetaResponse()` to gate the
761
+ * `filterable` flag exposed to UIs — the adapter's answer is a hard gate
762
+ * even when the field carries `@db.column.filterable`.
763
+ */
764
+ canFilterField(fd: TDbFieldMeta): boolean;
765
+ /**
766
+ * Whether this adapter can sort by a given field.
767
+ * Default: scalar columns yes, JSON-stored columns no. Mongo's array sort
768
+ * (min/max element) is a footgun for generic UI sort headers, so the default
769
+ * stays conservative even for adapters that technically support it.
770
+ */
771
+ canSortField(fd: TDbFieldMeta): boolean;
751
772
  /**
752
773
  * Whether this adapter handles `$with` relation loading natively.
753
774
  * When `true`, the table layer delegates to {@link loadRelations}
@@ -1332,6 +1353,10 @@ declare class AtscriptDbReadable<T extends TAtscriptAnnotatedType = TAtscriptAnn
1332
1353
  aggregate(query: AggregateQuery): Promise<Array<Record<string, unknown>>>;
1333
1354
  /** Whether the underlying adapter supports text search. */
1334
1355
  isSearchable(): boolean;
1356
+ /** Whether the adapter can filter on a given field (proxies adapter capability). */
1357
+ canFilterField(fd: TDbFieldMeta): boolean;
1358
+ /** Whether the adapter can sort by a given field (proxies adapter capability). */
1359
+ canSortField(fd: TDbFieldMeta): boolean;
1335
1360
  /** Returns available search indexes from the adapter. */
1336
1361
  getSearchIndexes(): TSearchIndexInfo[];
1337
1362
  /**
@@ -748,6 +748,27 @@ declare abstract class BaseDbAdapter {
748
748
  * by finding child records and deleting/nullifying them before the parent.
749
749
  */
750
750
  supportsNativeForeignKeys(): boolean;
751
+ /**
752
+ * Whether this adapter can apply equality/range filters on a given field.
753
+ * Default: scalar columns yes, JSON-stored columns (arrays, `@db.json`
754
+ * objects) no — most SQL engines cannot filter into a raw JSON value.
755
+ *
756
+ * Adapters that natively understand JSON storage (e.g. MongoDB filters arrays
757
+ * with implicit `$in` and dot-paths into embedded documents) override to
758
+ * return `true` for `storage === 'json'`.
759
+ *
760
+ * Used by `AsDbReadableController.buildMetaResponse()` to gate the
761
+ * `filterable` flag exposed to UIs — the adapter's answer is a hard gate
762
+ * even when the field carries `@db.column.filterable`.
763
+ */
764
+ canFilterField(fd: TDbFieldMeta): boolean;
765
+ /**
766
+ * Whether this adapter can sort by a given field.
767
+ * Default: scalar columns yes, JSON-stored columns no. Mongo's array sort
768
+ * (min/max element) is a footgun for generic UI sort headers, so the default
769
+ * stays conservative even for adapters that technically support it.
770
+ */
771
+ canSortField(fd: TDbFieldMeta): boolean;
751
772
  /**
752
773
  * Whether this adapter handles `$with` relation loading natively.
753
774
  * When `true`, the table layer delegates to {@link loadRelations}
@@ -1332,6 +1353,10 @@ declare class AtscriptDbReadable<T extends TAtscriptAnnotatedType = TAtscriptAnn
1332
1353
  aggregate(query: AggregateQuery): Promise<Array<Record<string, unknown>>>;
1333
1354
  /** Whether the underlying adapter supports text search. */
1334
1355
  isSearchable(): boolean;
1356
+ /** Whether the adapter can filter on a given field (proxies adapter capability). */
1357
+ canFilterField(fd: TDbFieldMeta): boolean;
1358
+ /** Whether the adapter can sort by a given field (proxies adapter capability). */
1359
+ canSortField(fd: TDbFieldMeta): boolean;
1335
1360
  /** Returns available search indexes from the adapter. */
1336
1361
  getSearchIndexes(): TSearchIndexInfo[];
1337
1362
  /**
@@ -1,4 +1,4 @@
1
- import { B as TDbInsertResult, J as TFkLookupResolver, N as TDbDeleteResult, W as TDbUpdateResult, dt as TableMetadata, it as TTableResolver, o as BaseDbAdapter, ot as TWriteTableResolver, pt as TGenericLogger, t as AtscriptDbReadable, x as TCascadeResolver, z as TDbInsertManyResult } from "./db-readable-CbTGJuRK.mjs";
1
+ import { B as TDbInsertResult, J as TFkLookupResolver, N as TDbDeleteResult, W as TDbUpdateResult, dt as TableMetadata, it as TTableResolver, o as BaseDbAdapter, ot as TWriteTableResolver, pt as TGenericLogger, t as AtscriptDbReadable, x as TCascadeResolver, z as TDbInsertManyResult } from "./db-readable-vjbawUvu.mjs";
2
2
  import { AtscriptQueryComparison, AtscriptQueryFieldRef, AtscriptQueryFieldRef as AtscriptQueryFieldRef$1, AtscriptQueryNode, AtscriptQueryNode as AtscriptQueryNode$1, AtscriptRef, FlatOf, NavPropsOf, OwnPropsOf, PrimaryKeyOf, TAtscriptAnnotatedType, TAtscriptDataType, Validator } from "@atscript/typescript/utils";
3
3
  import { FilterExpr } from "@uniqu/core";
4
4
 
@@ -1,4 +1,4 @@
1
- import { B as TDbInsertResult, J as TFkLookupResolver, N as TDbDeleteResult, W as TDbUpdateResult, dt as TableMetadata, it as TTableResolver, o as BaseDbAdapter, ot as TWriteTableResolver, pt as TGenericLogger, t as AtscriptDbReadable, x as TCascadeResolver, z as TDbInsertManyResult } from "./db-readable-Cw5EEUl9.cjs";
1
+ import { B as TDbInsertResult, J as TFkLookupResolver, N as TDbDeleteResult, W as TDbUpdateResult, dt as TableMetadata, it as TTableResolver, o as BaseDbAdapter, ot as TWriteTableResolver, pt as TGenericLogger, t as AtscriptDbReadable, x as TCascadeResolver, z as TDbInsertManyResult } from "./db-readable-BZN2QKud.cjs";
2
2
  import { FilterExpr } from "@uniqu/core";
3
3
  import { AtscriptQueryComparison, AtscriptQueryFieldRef, AtscriptQueryFieldRef as AtscriptQueryFieldRef$1, AtscriptQueryNode, AtscriptQueryNode as AtscriptQueryNode$1, AtscriptRef, FlatOf, NavPropsOf, OwnPropsOf, PrimaryKeyOf, TAtscriptAnnotatedType, TAtscriptDataType, Validator } from "@atscript/typescript/utils";
4
4
 
@@ -1447,6 +1447,14 @@ var AtscriptDbReadable = class {
1447
1447
  isSearchable() {
1448
1448
  return this.adapter.isSearchable();
1449
1449
  }
1450
+ /** Whether the adapter can filter on a given field (proxies adapter capability). */
1451
+ canFilterField(fd) {
1452
+ return this.adapter.canFilterField(fd);
1453
+ }
1454
+ /** Whether the adapter can sort by a given field (proxies adapter capability). */
1455
+ canSortField(fd) {
1456
+ return this.adapter.canSortField(fd);
1457
+ }
1450
1458
  /** Returns available search indexes from the adapter. */
1451
1459
  getSearchIndexes() {
1452
1460
  return this.adapter.getSearchIndexes();
@@ -1846,6 +1854,31 @@ var BaseDbAdapter = class {
1846
1854
  return false;
1847
1855
  }
1848
1856
  /**
1857
+ * Whether this adapter can apply equality/range filters on a given field.
1858
+ * Default: scalar columns yes, JSON-stored columns (arrays, `@db.json`
1859
+ * objects) no — most SQL engines cannot filter into a raw JSON value.
1860
+ *
1861
+ * Adapters that natively understand JSON storage (e.g. MongoDB filters arrays
1862
+ * with implicit `$in` and dot-paths into embedded documents) override to
1863
+ * return `true` for `storage === 'json'`.
1864
+ *
1865
+ * Used by `AsDbReadableController.buildMetaResponse()` to gate the
1866
+ * `filterable` flag exposed to UIs — the adapter's answer is a hard gate
1867
+ * even when the field carries `@db.column.filterable`.
1868
+ */
1869
+ canFilterField(fd) {
1870
+ return fd.storage !== "json";
1871
+ }
1872
+ /**
1873
+ * Whether this adapter can sort by a given field.
1874
+ * Default: scalar columns yes, JSON-stored columns no. Mongo's array sort
1875
+ * (min/max element) is a footgun for generic UI sort headers, so the default
1876
+ * stays conservative even for adapters that technically support it.
1877
+ */
1878
+ canSortField(fd) {
1879
+ return fd.storage !== "json";
1880
+ }
1881
+ /**
1849
1882
  * Whether this adapter handles `$with` relation loading natively.
1850
1883
  * When `true`, the table layer delegates to {@link loadRelations}
1851
1884
  * instead of using the generic batch-loading strategy.
@@ -1447,6 +1447,14 @@ var AtscriptDbReadable = class {
1447
1447
  isSearchable() {
1448
1448
  return this.adapter.isSearchable();
1449
1449
  }
1450
+ /** Whether the adapter can filter on a given field (proxies adapter capability). */
1451
+ canFilterField(fd) {
1452
+ return this.adapter.canFilterField(fd);
1453
+ }
1454
+ /** Whether the adapter can sort by a given field (proxies adapter capability). */
1455
+ canSortField(fd) {
1456
+ return this.adapter.canSortField(fd);
1457
+ }
1450
1458
  /** Returns available search indexes from the adapter. */
1451
1459
  getSearchIndexes() {
1452
1460
  return this.adapter.getSearchIndexes();
@@ -1846,6 +1854,31 @@ var BaseDbAdapter = class {
1846
1854
  return false;
1847
1855
  }
1848
1856
  /**
1857
+ * Whether this adapter can apply equality/range filters on a given field.
1858
+ * Default: scalar columns yes, JSON-stored columns (arrays, `@db.json`
1859
+ * objects) no — most SQL engines cannot filter into a raw JSON value.
1860
+ *
1861
+ * Adapters that natively understand JSON storage (e.g. MongoDB filters arrays
1862
+ * with implicit `$in` and dot-paths into embedded documents) override to
1863
+ * return `true` for `storage === 'json'`.
1864
+ *
1865
+ * Used by `AsDbReadableController.buildMetaResponse()` to gate the
1866
+ * `filterable` flag exposed to UIs — the adapter's answer is a hard gate
1867
+ * even when the field carries `@db.column.filterable`.
1868
+ */
1869
+ canFilterField(fd) {
1870
+ return fd.storage !== "json";
1871
+ }
1872
+ /**
1873
+ * Whether this adapter can sort by a given field.
1874
+ * Default: scalar columns yes, JSON-stored columns no. Mongo's array sort
1875
+ * (min/max element) is a footgun for generic UI sort headers, so the default
1876
+ * stays conservative even for adapters that technically support it.
1877
+ */
1878
+ canSortField(fd) {
1879
+ return fd.storage !== "json";
1880
+ }
1881
+ /**
1849
1882
  * Whether this adapter handles `$with` relation loading natively.
1850
1883
  * When `true`, the table layer delegates to {@link loadRelations}
1851
1884
  * instead of using the generic batch-loading strategy.
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_db_error = require("./db-error-D8tQhNgM.cjs");
3
- const require_db_view = require("./db-view-BSwJotLU.cjs");
3
+ const require_db_view = require("./db-view-B028LhoI.cjs");
4
4
  const require_ops = require("./ops.cjs");
5
5
  const require_validator = require("./validator-BIuw_T0k.cjs");
6
6
  require("./nested-writer-v_LPR1yJ.cjs");
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
- import { $ as TMetadataOverrides, A as TDbCollation, B as TDbInsertResult, C as TColumnDiff, D as TDbActionIntent, E as TDbActionInfo, F as TDbForeignKey, G as TExistingColumn, H as TDbRelation, I as TDbIndex, J as TFkLookupResolver, K as TExistingTableOption, L as TDbIndexField, M as TDbDefaultValue, N as TDbDeleteResult, O as TDbActionLevel, P as TDbFieldMeta, Q as TMetaResponse, R as TDbIndexType, S as TCascadeTarget, T as TCrudPermissions, U as TDbStorageType, V as TDbReferentialAction, W as TDbUpdateResult, X as TIdDescriptor, Y as TFkLookupTarget, Z as TIdentification, _ as FlatOf, a as FieldMappingStrategy, at as TValueFormatterPair, b as PrimaryKeyOf, c as AggregateExpr, ct as Uniquery, d as AggregateResult, dt as TableMetadata, et as TRelationInfo, f as AtscriptDbWritable, ft as NoopLogger, g as FilterExpr, h as FieldOpsFor, i as DocumentFieldMapper, it as TTableResolver, j as TDbDefaultFn, k as TDbActionProcessor, l as AggregateFn, lt as UniqueryControls, m as DbQuery, mt as UniquSelect, n as DbResponse, nt as TSyncColumnResult, o as BaseDbAdapter, ot as TWriteTableResolver, p as DbControls, pt as TGenericLogger, q as TFieldMeta, r as resolveDesignType, rt as TTableOptionDiff, s as AggregateControls, st as TypedWithRelation, t as AtscriptDbReadable, tt as TSearchIndexInfo, u as AggregateQuery, ut as WithRelation, v as NavPropsOf, w as TCrudOp, x as TCascadeResolver, y as OwnPropsOf, z as TDbInsertManyResult } from "./db-readable-Cw5EEUl9.cjs";
1
+ import { $ as TMetadataOverrides, A as TDbCollation, B as TDbInsertResult, C as TColumnDiff, D as TDbActionIntent, E as TDbActionInfo, F as TDbForeignKey, G as TExistingColumn, H as TDbRelation, I as TDbIndex, J as TFkLookupResolver, K as TExistingTableOption, L as TDbIndexField, M as TDbDefaultValue, N as TDbDeleteResult, O as TDbActionLevel, P as TDbFieldMeta, Q as TMetaResponse, R as TDbIndexType, S as TCascadeTarget, T as TCrudPermissions, U as TDbStorageType, V as TDbReferentialAction, W as TDbUpdateResult, X as TIdDescriptor, Y as TFkLookupTarget, Z as TIdentification, _ as FlatOf, a as FieldMappingStrategy, at as TValueFormatterPair, b as PrimaryKeyOf, c as AggregateExpr, ct as Uniquery, d as AggregateResult, dt as TableMetadata, et as TRelationInfo, f as AtscriptDbWritable, ft as NoopLogger, g as FilterExpr, h as FieldOpsFor, i as DocumentFieldMapper, it as TTableResolver, j as TDbDefaultFn, k as TDbActionProcessor, l as AggregateFn, lt as UniqueryControls, m as DbQuery, mt as UniquSelect, n as DbResponse, nt as TSyncColumnResult, o as BaseDbAdapter, ot as TWriteTableResolver, p as DbControls, pt as TGenericLogger, q as TFieldMeta, r as resolveDesignType, rt as TTableOptionDiff, s as AggregateControls, st as TypedWithRelation, t as AtscriptDbReadable, tt as TSearchIndexInfo, u as AggregateQuery, ut as WithRelation, v as NavPropsOf, w as TCrudOp, x as TCascadeResolver, y as OwnPropsOf, z as TDbInsertManyResult } from "./db-readable-BZN2QKud.cjs";
2
2
  import { a as $remove, c as $upsert, d as getDbFieldOp, f as isDbFieldOp, i as $mul, l as TDbFieldOp, n as $inc, o as $replace, p as separateFieldOps, r as $insert, s as $update, t as $dec, u as TFieldOps } from "./ops-DXJ4Zw0P.cjs";
3
- import { a as AtscriptQueryComparison, c as AtscriptRef, d as translateQueryTree, f as AtscriptDbTable, i as TViewColumnMapping, l as TViewJoin, m as NativeIntegrity, n as TAdapterFactory, o as AtscriptQueryFieldRef, p as IntegrityStrategy, r as AtscriptDbView, s as AtscriptQueryNode, t as DbSpace, u as TViewPlan } from "./db-space-ClTnpAI0.cjs";
3
+ import { a as AtscriptQueryComparison, c as AtscriptRef, d as translateQueryTree, f as AtscriptDbTable, i as TViewColumnMapping, l as TViewJoin, m as NativeIntegrity, n as TAdapterFactory, o as AtscriptQueryFieldRef, p as IntegrityStrategy, r as AtscriptDbView, s as AtscriptQueryNode, t as DbSpace, u as TViewPlan } from "./db-space-Dnjxe6Bt.cjs";
4
4
  import { n as createDbValidatorPlugin, t as DbValidationContext } from "./db-validator-plugin-DRGMCEn3.cjs";
5
5
  import { c as TArrayPatch, i as buildValidationContext, l as TDbPatch, n as ValidatorMode, o as forceNavNonOptional, r as buildDbValidator, s as isNavRelation, t as ValidationContext, u as getKeyProps } from "./validator-_z_A3cKa.cjs";
6
6
  import { AggregateQuery as AggregateQuery$1, FilterExpr as FilterExpr$1, FilterVisitor, Uniquery as Uniquery$1, computeInsights, isPrimitive, walkFilter } from "@uniqu/core";
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
- import { $ as TMetadataOverrides, A as TDbCollation, B as TDbInsertResult, C as TColumnDiff, D as TDbActionIntent, E as TDbActionInfo, F as TDbForeignKey, G as TExistingColumn, H as TDbRelation, I as TDbIndex, J as TFkLookupResolver, K as TExistingTableOption, L as TDbIndexField, M as TDbDefaultValue, N as TDbDeleteResult, O as TDbActionLevel, P as TDbFieldMeta, Q as TMetaResponse, R as TDbIndexType, S as TCascadeTarget, T as TCrudPermissions, U as TDbStorageType, V as TDbReferentialAction, W as TDbUpdateResult, X as TIdDescriptor, Y as TFkLookupTarget, Z as TIdentification, _ as FlatOf, a as FieldMappingStrategy, at as TValueFormatterPair, b as PrimaryKeyOf, c as AggregateExpr, ct as Uniquery, d as AggregateResult, dt as TableMetadata, et as TRelationInfo, f as AtscriptDbWritable, ft as NoopLogger, g as FilterExpr, h as FieldOpsFor, i as DocumentFieldMapper, it as TTableResolver, j as TDbDefaultFn, k as TDbActionProcessor, l as AggregateFn, lt as UniqueryControls, m as DbQuery, mt as UniquSelect, n as DbResponse, nt as TSyncColumnResult, o as BaseDbAdapter, ot as TWriteTableResolver, p as DbControls, pt as TGenericLogger, q as TFieldMeta, r as resolveDesignType, rt as TTableOptionDiff, s as AggregateControls, st as TypedWithRelation, t as AtscriptDbReadable, tt as TSearchIndexInfo, u as AggregateQuery, ut as WithRelation, v as NavPropsOf, w as TCrudOp, x as TCascadeResolver, y as OwnPropsOf, z as TDbInsertManyResult } from "./db-readable-CbTGJuRK.mjs";
1
+ import { $ as TMetadataOverrides, A as TDbCollation, B as TDbInsertResult, C as TColumnDiff, D as TDbActionIntent, E as TDbActionInfo, F as TDbForeignKey, G as TExistingColumn, H as TDbRelation, I as TDbIndex, J as TFkLookupResolver, K as TExistingTableOption, L as TDbIndexField, M as TDbDefaultValue, N as TDbDeleteResult, O as TDbActionLevel, P as TDbFieldMeta, Q as TMetaResponse, R as TDbIndexType, S as TCascadeTarget, T as TCrudPermissions, U as TDbStorageType, V as TDbReferentialAction, W as TDbUpdateResult, X as TIdDescriptor, Y as TFkLookupTarget, Z as TIdentification, _ as FlatOf, a as FieldMappingStrategy, at as TValueFormatterPair, b as PrimaryKeyOf, c as AggregateExpr, ct as Uniquery, d as AggregateResult, dt as TableMetadata, et as TRelationInfo, f as AtscriptDbWritable, ft as NoopLogger, g as FilterExpr, h as FieldOpsFor, i as DocumentFieldMapper, it as TTableResolver, j as TDbDefaultFn, k as TDbActionProcessor, l as AggregateFn, lt as UniqueryControls, m as DbQuery, mt as UniquSelect, n as DbResponse, nt as TSyncColumnResult, o as BaseDbAdapter, ot as TWriteTableResolver, p as DbControls, pt as TGenericLogger, q as TFieldMeta, r as resolveDesignType, rt as TTableOptionDiff, s as AggregateControls, st as TypedWithRelation, t as AtscriptDbReadable, tt as TSearchIndexInfo, u as AggregateQuery, ut as WithRelation, v as NavPropsOf, w as TCrudOp, x as TCascadeResolver, y as OwnPropsOf, z as TDbInsertManyResult } from "./db-readable-vjbawUvu.mjs";
2
2
  import { a as $remove, c as $upsert, d as getDbFieldOp, f as isDbFieldOp, i as $mul, l as TDbFieldOp, n as $inc, o as $replace, p as separateFieldOps, r as $insert, s as $update, t as $dec, u as TFieldOps } from "./ops-C61kelof.mjs";
3
- import { a as AtscriptQueryComparison, c as AtscriptRef, d as translateQueryTree, f as AtscriptDbTable, i as TViewColumnMapping, l as TViewJoin, m as NativeIntegrity, n as TAdapterFactory, o as AtscriptQueryFieldRef, p as IntegrityStrategy, r as AtscriptDbView, s as AtscriptQueryNode, t as DbSpace, u as TViewPlan } from "./db-space-Cb5gWqj8.mjs";
3
+ import { a as AtscriptQueryComparison, c as AtscriptRef, d as translateQueryTree, f as AtscriptDbTable, i as TViewColumnMapping, l as TViewJoin, m as NativeIntegrity, n as TAdapterFactory, o as AtscriptQueryFieldRef, p as IntegrityStrategy, r as AtscriptDbView, s as AtscriptQueryNode, t as DbSpace, u as TViewPlan } from "./db-space-CxGLp-no.mjs";
4
4
  import { n as createDbValidatorPlugin, t as DbValidationContext } from "./db-validator-plugin-DDvYyv5t.mjs";
5
5
  import { c as TArrayPatch, i as buildValidationContext, l as TDbPatch, n as ValidatorMode, o as forceNavNonOptional, r as buildDbValidator, s as isNavRelation, t as ValidationContext, u as getKeyProps } from "./validator-DttN2e5_.mjs";
6
6
  import { AggregateQuery as AggregateQuery$1, FilterExpr as FilterExpr$1, FilterVisitor, Uniquery as Uniquery$1, computeInsights, isPrimitive, walkFilter } from "@uniqu/core";
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as DbError } from "./db-error-Cepx-RsQ.mjs";
2
- import { a as BaseDbAdapter, c as AtscriptDbReadable, d as DocumentFieldMapper, f as FieldMappingStrategy, h as NoopLogger, i as ApplicationIntegrity, l as resolveDesignType, m as TableMetadata, n as AtscriptDbTable, o as IntegrityStrategy, p as UniquSelect, r as decomposePatch, s as NativeIntegrity, t as AtscriptDbView, u as RelationalFieldMapper } from "./db-view-zOdeCwdz.mjs";
2
+ import { a as BaseDbAdapter, c as AtscriptDbReadable, d as DocumentFieldMapper, f as FieldMappingStrategy, h as NoopLogger, i as ApplicationIntegrity, l as resolveDesignType, m as TableMetadata, n as AtscriptDbTable, o as IntegrityStrategy, p as UniquSelect, r as decomposePatch, s as NativeIntegrity, t as AtscriptDbView, u as RelationalFieldMapper } from "./db-view-DiItd0YG.mjs";
3
3
  import { $dec, $inc, $insert, $mul, $remove, $replace, $update, $upsert, getDbFieldOp, isDbFieldOp, separateFieldOps } from "./ops.mjs";
4
4
  import { a as isNavRelation, i as forceNavNonOptional, n as buildValidationContext, o as createDbValidatorPlugin, s as getKeyProps, t as buildDbValidator } from "./validator-BB5h1Le3.mjs";
5
5
  import "./nested-writer-CT2rLURx.mjs";
package/dist/rel.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { F as TDbForeignKey, H as TDbRelation, dt as TableMetadata, it as TTableResolver, o as BaseDbAdapter, ot as TWriteTableResolver, pt as TGenericLogger } from "./db-readable-Cw5EEUl9.cjs";
1
+ import { F as TDbForeignKey, H as TDbRelation, dt as TableMetadata, it as TTableResolver, o as BaseDbAdapter, ot as TWriteTableResolver, pt as TGenericLogger } from "./db-readable-BZN2QKud.cjs";
2
2
  import { t as DbValidationContext } from "./db-validator-plugin-DRGMCEn3.cjs";
3
3
  import { FilterExpr, WithRelation } from "@uniqu/core";
4
4
  import { Validator } from "@atscript/typescript/utils";
package/dist/rel.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { F as TDbForeignKey, H as TDbRelation, dt as TableMetadata, it as TTableResolver, o as BaseDbAdapter, ot as TWriteTableResolver, pt as TGenericLogger } from "./db-readable-CbTGJuRK.mjs";
1
+ import { F as TDbForeignKey, H as TDbRelation, dt as TableMetadata, it as TTableResolver, o as BaseDbAdapter, ot as TWriteTableResolver, pt as TGenericLogger } from "./db-readable-vjbawUvu.mjs";
2
2
  import { t as DbValidationContext } from "./db-validator-plugin-DDvYyv5t.mjs";
3
3
  import { Validator } from "@atscript/typescript/utils";
4
4
  import { FilterExpr, WithRelation } from "@uniqu/core";
package/dist/sync.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_db_view = require("./db-view-BSwJotLU.cjs");
2
+ const require_db_view = require("./db-view-B028LhoI.cjs");
3
3
  require("./validator-BIuw_T0k.cjs");
4
4
  require("./nested-writer-v_LPR1yJ.cjs");
5
5
  //#region src/schema/schema-hash.ts
package/dist/sync.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as TColumnDiff, F as TDbForeignKey, G as TExistingColumn, K as TExistingTableOption, M as TDbDefaultValue, P as TDbFieldMeta, U as TDbStorageType, pt as TGenericLogger, rt as TTableOptionDiff, t as AtscriptDbReadable } from "./db-readable-Cw5EEUl9.cjs";
2
- import { r as AtscriptDbView, t as DbSpace } from "./db-space-ClTnpAI0.cjs";
1
+ import { C as TColumnDiff, F as TDbForeignKey, G as TExistingColumn, K as TExistingTableOption, M as TDbDefaultValue, P as TDbFieldMeta, U as TDbStorageType, pt as TGenericLogger, rt as TTableOptionDiff, t as AtscriptDbReadable } from "./db-readable-BZN2QKud.cjs";
2
+ import { r as AtscriptDbView, t as DbSpace } from "./db-space-Dnjxe6Bt.cjs";
3
3
  import { TAtscriptAnnotatedType } from "@atscript/typescript/utils";
4
4
 
5
5
  //#region src/schema/sync-entry.d.ts
package/dist/sync.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as TColumnDiff, F as TDbForeignKey, G as TExistingColumn, K as TExistingTableOption, M as TDbDefaultValue, P as TDbFieldMeta, U as TDbStorageType, pt as TGenericLogger, rt as TTableOptionDiff, t as AtscriptDbReadable } from "./db-readable-CbTGJuRK.mjs";
2
- import { r as AtscriptDbView, t as DbSpace } from "./db-space-Cb5gWqj8.mjs";
1
+ import { C as TColumnDiff, F as TDbForeignKey, G as TExistingColumn, K as TExistingTableOption, M as TDbDefaultValue, P as TDbFieldMeta, U as TDbStorageType, pt as TGenericLogger, rt as TTableOptionDiff, t as AtscriptDbReadable } from "./db-readable-vjbawUvu.mjs";
2
+ import { r as AtscriptDbView, t as DbSpace } from "./db-space-CxGLp-no.mjs";
3
3
  import { TAtscriptAnnotatedType } from "@atscript/typescript/utils";
4
4
 
5
5
  //#region src/schema/sync-entry.d.ts
package/dist/sync.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { h as NoopLogger } from "./db-view-zOdeCwdz.mjs";
1
+ import { h as NoopLogger } from "./db-view-DiItd0YG.mjs";
2
2
  import "./validator-BB5h1Le3.mjs";
3
3
  import "./nested-writer-CT2rLURx.mjs";
4
4
  //#region src/schema/schema-hash.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atscript/db",
3
- "version": "0.1.64",
3
+ "version": "0.1.66",
4
4
  "description": "Database adapter utilities for atscript.",
5
5
  "keywords": [
6
6
  "atscript",
@@ -69,13 +69,13 @@
69
69
  "devDependencies": {
70
70
  "@atscript/core": "^0.1.50",
71
71
  "@atscript/typescript": "^0.1.50",
72
- "@uniqu/core": "^0.1.5",
72
+ "@uniqu/core": "^0.1.6",
73
73
  "unplugin-atscript": "^0.1.50"
74
74
  },
75
75
  "peerDependencies": {
76
76
  "@atscript/core": "^0.1.50",
77
77
  "@atscript/typescript": "^0.1.50",
78
- "@uniqu/core": "^0.1.5"
78
+ "@uniqu/core": "^0.1.6"
79
79
  },
80
80
  "scripts": {
81
81
  "postinstall": "asc -f dts",