drizzle-kit 0.20.4 → 0.20.5-608ae62

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,53 +0,0 @@
1
- import type { Setup } from "@drizzle-team/studio";
2
- import { Relations } from "drizzle-orm";
3
- import { AnyMySqlTable } from "drizzle-orm/mysql-core";
4
- import { AnyPgTable } from "drizzle-orm/pg-core";
5
- import { AnySQLiteTable } from "drizzle-orm/sqlite-core";
6
- import { MySQLConnectionConfig } from "src/cli/validations/mysql";
7
- import { PgConnectionConfig } from "src/cli/validations/pg";
8
- import { StudioConfigConnections, StudioSqliteConnectionConfig as StudioSQLiteConnectionConfig } from "src/cli/validations/studio";
9
- export declare const preparePgSchema: (path: string | string[]) => Promise<{
10
- schema: Record<string, Record<string, AnyPgTable<{}>>>;
11
- relations: Record<string, Relations<string, Record<string, import("drizzle-orm").Relation<string>>>>;
12
- }>;
13
- export declare const prepareMySqlSchema: (path: string | string[]) => Promise<{
14
- schema: Record<string, Record<string, AnyMySqlTable<{}>>>;
15
- relations: Record<string, Relations<string, Record<string, import("drizzle-orm").Relation<string>>>>;
16
- }>;
17
- export declare const prepareSQLiteSchema: (path: string | string[]) => Promise<{
18
- schema: Record<string, Record<string, AnySQLiteTable<{}>>>;
19
- relations: Record<string, Relations<string, Record<string, import("drizzle-orm").Relation<string>>>>;
20
- }>;
21
- export declare const prepareModels: (path: string | string[]) => Promise<{
22
- pgSchema: Record<string, AnyPgTable<{}> | Relations<string, Record<string, import("drizzle-orm").Relation<string>>>>;
23
- mysqlSchema: Record<string, AnyMySqlTable<{}> | Relations<string, Record<string, import("drizzle-orm").Relation<string>>>>;
24
- sqliteSchema: Record<string, Relations<string, Record<string, import("drizzle-orm").Relation<string>>> | AnySQLiteTable<{}>>;
25
- }>;
26
- export declare const drizzleForPostgres: (connectionConfig: PgConnectionConfig, pgSchema: Record<string, Record<string, AnyPgTable>>, relations: Record<string, Relations>, verbose: boolean) => Promise<Setup>;
27
- export declare const drizzleForMySQL: (config: MySQLConnectionConfig, mysqlSchema: Record<string, Record<string, AnyMySqlTable>>, relations: Record<string, Relations>, verbose: boolean) => Promise<Setup>;
28
- export declare const drizzleForSQLite: (config: StudioSQLiteConnectionConfig, sqliteSchema: Record<string, Record<string, AnySQLiteTable>>, relations: Record<string, Relations>, verbose: boolean) => Promise<Setup>;
29
- export declare const drizzleDb: (drizzleConfig: StudioConfigConnections, models: {
30
- pgSchema?: Record<string, AnyPgTable | Relations>;
31
- mysqlSchema?: Record<string, AnyMySqlTable | Relations>;
32
- sqliteSchema?: Record<string, AnySQLiteTable | Relations>;
33
- }, logger: boolean) => Promise<{
34
- db: import("drizzle-orm/node-postgres").NodePgDatabase<Record<string, never>>;
35
- type: "pg";
36
- schema: Record<string, AnyPgTable<{}> | Relations<string, Record<string, import("drizzle-orm").Relation<string>>>> | undefined;
37
- } | {
38
- db: import("drizzle-orm/mysql2").MySql2Database<Record<string, never>>;
39
- type: "mysql";
40
- schema: Record<string, AnyMySqlTable<{}> | Relations<string, Record<string, import("drizzle-orm").Relation<string>>>> | undefined;
41
- } | {
42
- db: import("../orm-extenstions/d1-driver/driver").DrizzleD1WranglerDatabase<Record<string, never>>;
43
- type: "sqlite";
44
- schema: Record<string, Relations<string, Record<string, import("drizzle-orm").Relation<string>>> | AnySQLiteTable<{}>> | undefined;
45
- } | {
46
- db: import("drizzle-orm/better-sqlite3").BetterSQLite3Database<Record<string, never>>;
47
- type: "sqlite";
48
- schema: Record<string, Relations<string, Record<string, import("drizzle-orm").Relation<string>>> | AnySQLiteTable<{}>> | undefined;
49
- } | {
50
- db: import("drizzle-orm/libsql").LibSQLDatabase<Record<string, never>>;
51
- type: "sqlite";
52
- schema: Record<string, Relations<string, Record<string, import("drizzle-orm").Relation<string>>> | AnySQLiteTable<{}>> | undefined;
53
- }>;