@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/utils-runtime.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function createRemoteDatabaseClient(appToken: string, remoteDbURL: string): import("drizzle-orm/sqlite-proxy").SqliteRemoteDatabase<Record<string, never>>;
|
package/dist/utils.d.ts
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import type { AstroConfig } from 'astro';
|
|
2
|
-
export type VitePlugin = Required<AstroConfig['vite']>['plugins'][number];
|
|
3
|
-
export declare const STUDIO_ADMIN_TABLE = "ReservedAstroStudioAdmin";
|
|
4
|
-
export declare const STUDIO_ADMIN_TABLE_ROW_ID = "admin";
|
|
5
|
-
export declare const adminTable: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
6
|
-
name: "ReservedAstroStudioAdmin";
|
|
7
|
-
schema: undefined;
|
|
8
|
-
columns: {
|
|
9
|
-
id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
10
|
-
name: "id";
|
|
11
|
-
tableName: "ReservedAstroStudioAdmin";
|
|
12
|
-
dataType: "string";
|
|
13
|
-
columnType: "SQLiteText";
|
|
14
|
-
data: string;
|
|
15
|
-
driverParam: string;
|
|
16
|
-
notNull: true;
|
|
17
|
-
hasDefault: false;
|
|
18
|
-
enumValues: [string, ...string[]];
|
|
19
|
-
baseColumn: never;
|
|
20
|
-
}, object>;
|
|
21
|
-
collections: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
22
|
-
name: "collections";
|
|
23
|
-
tableName: "ReservedAstroStudioAdmin";
|
|
24
|
-
dataType: "string";
|
|
25
|
-
columnType: "SQLiteText";
|
|
26
|
-
data: string;
|
|
27
|
-
driverParam: string;
|
|
28
|
-
notNull: true;
|
|
29
|
-
hasDefault: false;
|
|
30
|
-
enumValues: [string, ...string[]];
|
|
31
|
-
baseColumn: never;
|
|
32
|
-
}, object>;
|
|
33
|
-
};
|
|
34
|
-
dialect: "sqlite";
|
|
35
|
-
}>;
|
|
36
|
-
export declare const STUDIO_MIGRATIONS_TABLE = "ReservedAstroStudioMigrations";
|
|
37
|
-
export declare const migrationsTable: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
38
|
-
name: "ReservedAstroStudioMigrations";
|
|
39
|
-
schema: undefined;
|
|
40
|
-
columns: {
|
|
41
|
-
name: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
42
|
-
name: "name";
|
|
43
|
-
tableName: "ReservedAstroStudioMigrations";
|
|
44
|
-
dataType: "string";
|
|
45
|
-
columnType: "SQLiteText";
|
|
46
|
-
data: string;
|
|
47
|
-
driverParam: string;
|
|
48
|
-
notNull: true;
|
|
49
|
-
hasDefault: false;
|
|
50
|
-
enumValues: [string, ...string[]];
|
|
51
|
-
baseColumn: never;
|
|
52
|
-
}, object>;
|
|
53
|
-
};
|
|
54
|
-
dialect: "sqlite";
|
|
55
|
-
}>;
|
|
56
|
-
export declare function getAstroStudioEnv(envMode?: string): Record<`ASTRO_STUDIO_${string}`, string>;
|
|
57
|
-
export declare function getStudioUrl(): string;
|
|
58
|
-
export declare function getRemoteDatabaseUrl(): string;
|
|
59
|
-
export declare function createRemoteDatabaseClient(appToken: string): import("drizzle-orm/sqlite-proxy").SqliteRemoteDatabase<Record<string, never>>;
|
package/dist/vite-plugin-db.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { AstroConfig } from 'astro';
|
|
2
|
-
import type { DBCollections } from './types.js';
|
|
3
|
-
import type { VitePlugin } from './utils.js';
|
|
4
|
-
export declare function vitePluginDb(params: {
|
|
5
|
-
connectToStudio: false;
|
|
6
|
-
collections: DBCollections;
|
|
7
|
-
} | {
|
|
8
|
-
output: AstroConfig['output'];
|
|
9
|
-
connectToStudio: true;
|
|
10
|
-
collections: DBCollections;
|
|
11
|
-
appToken: string;
|
|
12
|
-
}): VitePlugin;
|
|
13
|
-
export declare function getVirtualModContents({ collections, }: {
|
|
14
|
-
collections: DBCollections;
|
|
15
|
-
}): string;
|
|
16
|
-
export declare function getStudioVirtualModContents({ collections, appToken, }: {
|
|
17
|
-
collections: DBCollections;
|
|
18
|
-
appToken: string;
|
|
19
|
-
}): string;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { VitePlugin } from './utils.js';
|
|
2
|
-
export declare function vitePluginInjectEnvTs({ srcDir, root }: {
|
|
3
|
-
srcDir: URL;
|
|
4
|
-
root: URL;
|
|
5
|
-
}): VitePlugin;
|
|
6
|
-
export declare function setUpEnvTs({ srcDir, root }: {
|
|
7
|
-
srcDir: URL;
|
|
8
|
-
root: URL;
|
|
9
|
-
}): Promise<void>;
|