@supabase/lite 0.7.1-next.6 → 0.7.1-next.7

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.
@@ -554,11 +554,20 @@ interface SchemaDiffResult {
554
554
  diff: DiffResult | string;
555
555
  plan: PlanResult;
556
556
  }
557
+ /**
558
+ * Restricts a diff/migrate to a set of schemas (LITE-291). When set, both the
559
+ * current and desired catalogs are filtered to these schemas, so out-of-scope
560
+ * (e.g. user-land `public`) objects are invisible to the diff and are never
561
+ * dropped. Used by `App.ensureSystemSchema()` to reconcile only system schemas.
562
+ */
563
+ interface MigrateScope {
564
+ schemas?: string[];
565
+ }
557
566
  interface ConnectionMigrator {
558
- diff(): Promise<SchemaDiffResult>;
567
+ diff(scope?: MigrateScope): Promise<SchemaDiffResult>;
559
568
  migrate(opts?: {
560
569
  force?: boolean;
561
- }): Promise<SchemaDiffResult>;
570
+ } & MigrateScope): Promise<SchemaDiffResult>;
562
571
  migratePlan(planResult: PlanResult, opts?: {
563
572
  force?: boolean;
564
573
  }): Promise<void>;
@@ -676,4 +685,4 @@ interface ViewOptionsMetadata {
676
685
  }>;
677
686
  }
678
687
 
679
- export { type QbSelect as $, type AnyAST as A, type BaseAST as B, Connection as C, DataLossError as D, type EmbedDef as E, type FiltersResult as F, type IndexInfo as G, type HeadersResult as H, type IConnectionConfig as I, type InsertAST as J, type IntrospectOptions as K, type JoinDef as L, type JoinMap as M, type Meta as N, MigrationError as O, type OrderEntry as P, type PlanResult as Q, type PlanStep as R, PlanStepType as S, type TransactionOptions as T, type PreferToken as U, type VarsContext as V, type Where as W, type PrimaryKeyInfo as X, type Qb as Y, type QbDelete as Z, type QbInsert as _, type CacheDriver as a, type QbUpdate as a0, type QueryAST as a1, type QueryParamsResult as a2, RelationNotFoundError as a3, type RouteResult as a4, type RpcAST as a5, type RpcResult as a6, type SchemaDiffResult as a7, type SelectEntry as a8, type SelectResult as a9, type TableDiff as aa, type TableInfo as ab, type TextSearchValue as ac, type TransformsResult as ad, type TranslatorConfig as ae, type TriggerInfo as af, type UniqueConstraintInfo as ag, type UpdateAST as ah, type UpsertAST as ai, type UpsertResult as aj, type ViewInfo as ak, type ViewOptionsMetadata as al, type WhereValue as am, isRef as an, type CacheSetOptions as b, type IntrospectResult as c, type AST as d, type ASTType as e, type AggregateFunction as f, type BodyResult as g, type CheckConstraintInfo as h, type ColumnDef as i, type ColumnDiff as j, type ColumnInfo as k, type ColumnRef as l, type CommentInfo as m, type ConnectionContextOptions as n, type ConnectionMigrator as o, type CustomTypesInfo as p, type DataLossWarning as q, type DeleteAST as r, type Dialect as s, type DiffResult as t, type EmbedTransform as u, type ExplainOptions as v, type ForeignKeyDiff as w, type ForeignKeyInfo as x, type FunctionInfo as y, type IndexDiff as z };
688
+ export { type QbInsert as $, type AnyAST as A, type BaseAST as B, Connection as C, DataLossError as D, type EmbedDef as E, type FiltersResult as F, type IndexInfo as G, type HeadersResult as H, type IConnectionConfig as I, type InsertAST as J, type IntrospectOptions as K, type JoinDef as L, type MigrateScope as M, type JoinMap as N, type Meta as O, MigrationError as P, type OrderEntry as Q, type PlanResult as R, type PlanStep as S, type TransactionOptions as T, PlanStepType as U, type VarsContext as V, type Where as W, type PreferToken as X, type PrimaryKeyInfo as Y, type Qb as Z, type QbDelete as _, type CacheDriver as a, type QbSelect as a0, type QbUpdate as a1, type QueryAST as a2, type QueryParamsResult as a3, RelationNotFoundError as a4, type RouteResult as a5, type RpcAST as a6, type RpcResult as a7, type SchemaDiffResult as a8, type SelectEntry as a9, type SelectResult as aa, type TableDiff as ab, type TableInfo as ac, type TextSearchValue as ad, type TransformsResult as ae, type TranslatorConfig as af, type TriggerInfo as ag, type UniqueConstraintInfo as ah, type UpdateAST as ai, type UpsertAST as aj, type UpsertResult as ak, type ViewInfo as al, type ViewOptionsMetadata as am, type WhereValue as an, isRef as ao, type CacheSetOptions as b, type IntrospectResult as c, type AST as d, type ASTType as e, type AggregateFunction as f, type BodyResult as g, type CheckConstraintInfo as h, type ColumnDef as i, type ColumnDiff as j, type ColumnInfo as k, type ColumnRef as l, type CommentInfo as m, type ConnectionContextOptions as n, type ConnectionMigrator as o, type CustomTypesInfo as p, type DataLossWarning as q, type DeleteAST as r, type Dialect as s, type DiffResult as t, type EmbedTransform as u, type ExplainOptions as v, type ForeignKeyDiff as w, type ForeignKeyInfo as x, type FunctionInfo as y, type IndexDiff as z };