@supabase/lite 0.0.1
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-BJclIu8v.d.ts +529 -0
- package/dist/Connection-BsiQMo4A.d.ts +562 -0
- package/dist/Connection-rAPmec1m.d.ts +710 -0
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/index.js +29518 -0
- package/dist/cli/lib.d.ts +158 -0
- package/dist/cli/lib.js +6343 -0
- package/dist/db/browser/index.d.ts +550 -0
- package/dist/db/browser/index.js +15682 -0
- package/dist/db/bun/index.d.ts +548 -0
- package/dist/db/bun/index.js +15670 -0
- package/dist/db/fallback.d.ts +182 -0
- package/dist/db/fallback.js +15566 -0
- package/dist/db/node/index.d.ts +547 -0
- package/dist/db/node/index.js +15663 -0
- package/dist/db/postgres/BasePostgresConnection-B7zHDAib.d.ts +24 -0
- package/dist/db/postgres/BasePostgresConnection-COHRCvc-.d.ts +24 -0
- package/dist/db/postgres/BasePostgresConnection-Di94o0ON.d.ts +24 -0
- package/dist/db/postgres/PostgresConnection.d.ts +16 -0
- package/dist/db/postgres/PostgresConnection.js +611 -0
- package/dist/db/postgres/index.js +802 -0
- package/dist/db/postgres/pglite/PgliteConnection.d.ts +38 -0
- package/dist/db/postgres/pglite/PgliteConnection.js +890 -0
- package/dist/db/sqlite/index.js +14724 -0
- package/dist/db/workerd/index.d.ts +570 -0
- package/dist/db/workerd/index.js +15788 -0
- package/dist/index-4cbfQyFv.d.ts +763 -0
- package/dist/index-xv_pDjEt.d.ts +769 -0
- package/dist/index.d.ts +2498 -0
- package/dist/index.js +32303 -0
- package/dist/static/.vite/manifest.json +11 -0
- package/dist/static/assets/main-BsWx0q9l.js +40913 -0
- package/dist/static/assets/main-DexXgo9R.css +4002 -0
- package/dist/static/favicon.ico +0 -0
- package/dist/static/fonts/CustomFont-Black.woff2 +0 -0
- package/dist/static/fonts/CustomFont-BlackItalic.woff2 +0 -0
- package/dist/static/fonts/CustomFont-Bold.woff2 +0 -0
- package/dist/static/fonts/CustomFont-BoldItalic.woff2 +0 -0
- package/dist/static/fonts/CustomFont-Book.woff2 +0 -0
- package/dist/static/fonts/CustomFont-BookItalic.woff2 +0 -0
- package/dist/static/fonts/CustomFont-Medium.woff2 +0 -0
- package/dist/vite/index.d.ts +3017 -0
- package/dist/vite/index.js +1923 -0
- package/package.json +195 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { PGliteOptions, PGlite } from '@electric-sql/pglite';
|
|
2
|
+
export { PGlite } from '@electric-sql/pglite';
|
|
3
|
+
import { I as IBasePostgresConnectionConfig, B as BasePostgresConnection } from '../BasePostgresConnection-B7zHDAib.js';
|
|
4
|
+
import { ConnectionMigrator, SchemaDiffResult, PlanResult, PlanStep } from '@supabase/lite';
|
|
5
|
+
import 'kysely';
|
|
6
|
+
|
|
7
|
+
declare class PostgresMigrator implements ConnectionMigrator {
|
|
8
|
+
#private;
|
|
9
|
+
private readonly from;
|
|
10
|
+
private readonly desiredSchema;
|
|
11
|
+
constructor(from: PgliteConnection, desiredSchema: string);
|
|
12
|
+
diff(): Promise<SchemaDiffResult>;
|
|
13
|
+
migratePlan(planResult: PlanResult, opts?: {
|
|
14
|
+
force?: boolean;
|
|
15
|
+
}): Promise<void>;
|
|
16
|
+
migrate(opts?: {
|
|
17
|
+
force?: boolean;
|
|
18
|
+
}): Promise<SchemaDiffResult>;
|
|
19
|
+
safeSortPlanSteps(steps: PlanStep[]): PlanStep[];
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
interface IPgliteConnectionConfig extends IBasePostgresConnectionConfig {
|
|
23
|
+
pgliteOptions?: Omit<PGliteOptions, "dataDir">;
|
|
24
|
+
}
|
|
25
|
+
declare class PgliteConnection extends BasePostgresConnection<PGlite, any> {
|
|
26
|
+
#private;
|
|
27
|
+
driver: PGlite;
|
|
28
|
+
dialect: "postgres";
|
|
29
|
+
constructor(config?: IPgliteConnectionConfig);
|
|
30
|
+
exec<T = {
|
|
31
|
+
rows: unknown[];
|
|
32
|
+
} | void>(query: string, ...parameters: readonly unknown[]): Promise<T>;
|
|
33
|
+
close(): Promise<void>;
|
|
34
|
+
createMigrator(desiredSchema: string): PostgresMigrator;
|
|
35
|
+
}
|
|
36
|
+
declare function createPgliteConnection(config?: IPgliteConnectionConfig): Promise<PgliteConnection>;
|
|
37
|
+
|
|
38
|
+
export { type IPgliteConnectionConfig, PgliteConnection, createPgliteConnection };
|