@supabase/lite 0.7.1-next.6 → 0.7.1-next.8
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/{Connection-Cm9fpZU3.d.ts → Connection-D9UUTsjg.d.ts} +12 -3
- package/dist/cli/index.js +118 -113
- package/dist/cli/lib.js +52 -47
- package/dist/db/fallback.d.ts +1 -1
- package/dist/db/postgres/pglite/PgliteConnection.d.ts +3 -3
- package/dist/db/postgres/pglite/PgliteConnection.js +7 -7
- package/dist/index.d.ts +84 -5
- package/dist/index.js +86 -63
- package/dist/vite/index.d.ts +28 -0
- package/package.json +2 -6
|
@@ -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
|
|
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 };
|