@astrojs/db 0.3.5 → 0.4.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/core/cli/commands/link/index.js +7 -3
- package/dist/core/cli/commands/push/index.js +3 -3
- package/dist/core/cli/migration-queries.d.ts +4 -4
- package/dist/core/cli/migration-queries.js +73 -73
- package/dist/core/cli/migrations.js +15 -7
- package/dist/core/errors.js +7 -3
- package/dist/core/integration/file-url.js +2 -1
- package/dist/core/integration/index.js +106 -57
- package/dist/core/integration/typegen.d.ts +3 -3
- package/dist/core/integration/typegen.js +8 -8
- package/dist/core/integration/vite-plugin-db.d.ts +14 -9
- package/dist/core/integration/vite-plugin-db.js +15 -12
- package/dist/core/integration/vite-plugin-inject-env-ts.d.ts +4 -2
- package/dist/core/integration/vite-plugin-inject-env-ts.js +8 -4
- package/dist/core/queries.d.ts +12 -12
- package/dist/core/queries.js +49 -46
- package/dist/core/types.d.ts +232 -231
- package/dist/core/types.js +56 -55
- package/dist/core/utils.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/runtime/db-client.d.ts +9 -4
- package/dist/runtime/db-client.js +11 -7
- package/dist/runtime/index.d.ts +7 -7
- package/dist/runtime/index.js +27 -29
- package/dist/runtime/types.d.ts +7 -7
- package/package.json +3 -5
- package/components/Renderer.astro +0 -14
- package/components/astro-env.d.ts +0 -1
- package/components/index.ts +0 -2
- package/components/tsconfig.json +0 -7
- package/dist/cli/commands/push/index.d.ts +0 -6
- package/dist/cli/commands/shell/index.d.ts +0 -6
- package/dist/cli/commands/sync/index.d.ts +0 -6
- package/dist/cli/commands/verify/index.d.ts +0 -6
- package/dist/cli/index.d.ts +0 -6
- package/dist/cli/queries.d.ts +0 -18
- package/dist/cli/seed.d.ts +0 -6
- package/dist/cli/sync/admin.d.ts +0 -33
- package/dist/cli/sync/index.d.ts +0 -1
- package/dist/cli/sync/migrate.d.ts +0 -1
- package/dist/cli/sync/queries.d.ts +0 -19
- package/dist/cli/sync/remote-db.d.ts +0 -1
- package/dist/config.d.ts +0 -1374
- package/dist/consts.d.ts +0 -7
- package/dist/core/cli/commands/sync/index.d.ts +0 -6
- package/dist/error-map.d.ts +0 -6
- package/dist/errors.d.ts +0 -3
- package/dist/file-url-integration.d.ts +0 -2
- package/dist/integration.d.ts +0 -2
- package/dist/internal-drizzle.d.ts +0 -1
- package/dist/internal.d.ts +0 -47
- package/dist/load-astro-config.d.ts +0 -6
- package/dist/migrations.d.ts +0 -12
- package/dist/root.d.ts +0 -3
- package/dist/typegen.d.ts +0 -5
- package/dist/types.d.ts +0 -1604
- package/dist/utils-runtime.d.ts +0 -1
- package/dist/utils.d.ts +0 -59
- package/dist/vite-plugin-db.d.ts +0 -19
- package/dist/vite-plugin-inject-env-ts.d.ts +0 -9
package/dist/cli/sync/admin.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export declare const STUDIO_ADMIN_TABLE = "ReservedAstroStudioAdmin";
|
|
2
|
-
export declare const STUDIO_ADMIN_TABLE_ROW_ID = "admin";
|
|
3
|
-
export declare const adminTable: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
4
|
-
name: "ReservedAstroStudioAdmin";
|
|
5
|
-
schema: undefined;
|
|
6
|
-
columns: {
|
|
7
|
-
id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
8
|
-
name: "id";
|
|
9
|
-
tableName: "ReservedAstroStudioAdmin";
|
|
10
|
-
dataType: "string";
|
|
11
|
-
columnType: "SQLiteText";
|
|
12
|
-
data: string;
|
|
13
|
-
driverParam: string;
|
|
14
|
-
notNull: true;
|
|
15
|
-
hasDefault: false;
|
|
16
|
-
enumValues: [string, ...string[]];
|
|
17
|
-
baseColumn: never;
|
|
18
|
-
}, object>;
|
|
19
|
-
collections: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
20
|
-
name: "collections";
|
|
21
|
-
tableName: "ReservedAstroStudioAdmin";
|
|
22
|
-
dataType: "string";
|
|
23
|
-
columnType: "SQLiteText";
|
|
24
|
-
data: string;
|
|
25
|
-
driverParam: string;
|
|
26
|
-
notNull: true;
|
|
27
|
-
hasDefault: false;
|
|
28
|
-
enumValues: [string, ...string[]];
|
|
29
|
-
baseColumn: never;
|
|
30
|
-
}, object>;
|
|
31
|
-
};
|
|
32
|
-
dialect: "sqlite";
|
|
33
|
-
}>;
|
package/dist/cli/sync/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { DBCollection, DBCollections } from '../../types.js';
|
|
2
|
-
interface PromptResponses {
|
|
3
|
-
allowDataLoss: boolean;
|
|
4
|
-
columnRenames: Record<string, string | false>;
|
|
5
|
-
collectionRenames: Record<string, string | false>;
|
|
6
|
-
}
|
|
7
|
-
export declare function getMigrationQueries({ oldCollections, newCollections, promptResponses, }: {
|
|
8
|
-
oldCollections: DBCollections;
|
|
9
|
-
newCollections: DBCollections;
|
|
10
|
-
promptResponses?: PromptResponses;
|
|
11
|
-
}): Promise<string[]>;
|
|
12
|
-
export declare function getCollectionChangeQueries({ collectionName, oldCollection, newCollection, promptResponses, }: {
|
|
13
|
-
collectionName: string;
|
|
14
|
-
oldCollection: DBCollection;
|
|
15
|
-
newCollection: DBCollection;
|
|
16
|
-
promptResponses?: PromptResponses;
|
|
17
|
-
}): Promise<string[]>;
|
|
18
|
-
export declare function getCreateTableQuery(collectionName: string, collection: DBCollection): string;
|
|
19
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function createDb(appToken: string): any;
|