drizzle-seed 1.0.0-beta.2-58a4521 → 1.0.0-beta.2-278d7e6
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/SeedService.d.cts +12 -3
- package/SeedService.d.mts +12 -3
- package/SeedService.d.ts +12 -3
- package/cockroach-core/index.d.cts +2 -2
- package/cockroach-core/index.d.mts +2 -2
- package/cockroach-core/index.d.ts +2 -2
- package/cockroach-core/selectGensForColumn.d.cts +3 -3
- package/cockroach-core/selectGensForColumn.d.mts +3 -3
- package/cockroach-core/selectGensForColumn.d.ts +3 -3
- package/common.d.cts +1 -1
- package/common.d.mts +1 -1
- package/common.d.ts +1 -1
- package/generators/GeneratorFuncs.d.cts +950 -20
- package/generators/GeneratorFuncs.d.mts +950 -20
- package/generators/GeneratorFuncs.d.ts +950 -20
- package/generators/Generators.d.cts +29 -2
- package/generators/Generators.d.mts +29 -2
- package/generators/Generators.d.ts +29 -2
- package/generators/apiVersion.d.cts +1 -1
- package/generators/apiVersion.d.mts +1 -1
- package/generators/apiVersion.d.ts +1 -1
- package/generators/utils.d.cts +1 -0
- package/generators/utils.d.mts +1 -0
- package/generators/utils.d.ts +1 -0
- package/generators/versioning/v2.d.cts +1 -1
- package/generators/versioning/v2.d.mts +1 -1
- package/generators/versioning/v2.d.ts +1 -1
- package/generators/versioning/v3.d.cts +1 -1
- package/generators/versioning/v3.d.mts +1 -1
- package/generators/versioning/v3.d.ts +1 -1
- package/generators/versioning/v4.d.cts +16 -0
- package/generators/versioning/v4.d.mts +16 -0
- package/generators/versioning/v4.d.ts +16 -0
- package/index.cjs +286 -26
- package/index.cjs.map +1 -1
- package/index.d.cts +68 -47
- package/index.d.mts +68 -47
- package/index.d.ts +68 -47
- package/index.mjs +288 -28
- package/index.mjs.map +1 -1
- package/mssql-core/index.d.cts +1 -1
- package/mssql-core/index.d.mts +1 -1
- package/mssql-core/index.d.ts +1 -1
- package/mssql-core/selectGensForColumn.d.cts +2 -2
- package/mssql-core/selectGensForColumn.d.mts +2 -2
- package/mssql-core/selectGensForColumn.d.ts +2 -2
- package/mysql-core/index.d.cts +2 -2
- package/mysql-core/index.d.mts +2 -2
- package/mysql-core/index.d.ts +2 -2
- package/mysql-core/selectGensForColumn.d.cts +2 -2
- package/mysql-core/selectGensForColumn.d.mts +2 -2
- package/mysql-core/selectGensForColumn.d.ts +2 -2
- package/package.json +5 -3
- package/pg-core/index.d.cts +2 -2
- package/pg-core/index.d.mts +2 -2
- package/pg-core/index.d.ts +2 -2
- package/pg-core/selectGensForColumn.d.cts +3 -3
- package/pg-core/selectGensForColumn.d.mts +3 -3
- package/pg-core/selectGensForColumn.d.ts +3 -3
- package/singlestore-core/index.d.cts +2 -2
- package/singlestore-core/index.d.mts +2 -2
- package/singlestore-core/index.d.ts +2 -2
- package/singlestore-core/selectGensForColumn.d.cts +2 -2
- package/singlestore-core/selectGensForColumn.d.mts +2 -2
- package/singlestore-core/selectGensForColumn.d.ts +2 -2
- package/sqlite-core/index.d.cts +2 -2
- package/sqlite-core/index.d.mts +2 -2
- package/sqlite-core/index.d.ts +2 -2
- package/sqlite-core/selectGensForColumn.d.cts +2 -2
- package/sqlite-core/selectGensForColumn.d.mts +2 -2
- package/sqlite-core/selectGensForColumn.d.ts +2 -2
- package/types/seedService.d.cts +2 -2
- package/types/seedService.d.mts +2 -2
- package/types/seedService.d.ts +2 -2
- package/utils.d.cts +4 -0
- package/utils.d.mts +4 -0
- package/utils.d.ts +4 -0
package/mssql-core/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Relations } from 'drizzle-orm/_relations';
|
|
2
2
|
import type { MsSqlDatabase, MsSqlSchema } from 'drizzle-orm/mssql-core';
|
|
3
3
|
import { MsSqlTable } from 'drizzle-orm/mssql-core';
|
|
4
|
-
import type { RefinementsType } from '../types/seedService.
|
|
4
|
+
import type { RefinementsType } from '../types/seedService.ts';
|
|
5
5
|
export declare const resetMsSql: (db: MsSqlDatabase<any, any>, schema: {
|
|
6
6
|
[key: string]: MsSqlTable;
|
|
7
7
|
}) => Promise<void>;
|
package/mssql-core/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Relations } from 'drizzle-orm/_relations';
|
|
2
2
|
import type { MsSqlDatabase, MsSqlSchema } from 'drizzle-orm/mssql-core';
|
|
3
3
|
import { MsSqlTable } from 'drizzle-orm/mssql-core';
|
|
4
|
-
import type { RefinementsType } from '../types/seedService.
|
|
4
|
+
import type { RefinementsType } from '../types/seedService.ts';
|
|
5
5
|
export declare const resetMsSql: (db: MsSqlDatabase<any, any>, schema: {
|
|
6
6
|
[key: string]: MsSqlTable;
|
|
7
7
|
}) => Promise<void>;
|
package/mssql-core/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Relations } from 'drizzle-orm/_relations';
|
|
2
2
|
import type { MsSqlDatabase, MsSqlSchema } from 'drizzle-orm/mssql-core';
|
|
3
3
|
import { MsSqlTable } from 'drizzle-orm/mssql-core';
|
|
4
|
-
import type { RefinementsType } from '../types/seedService.
|
|
4
|
+
import type { RefinementsType } from '../types/seedService.ts';
|
|
5
5
|
export declare const resetMsSql: (db: MsSqlDatabase<any, any>, schema: {
|
|
6
6
|
[key: string]: MsSqlTable;
|
|
7
7
|
}) => Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Column, Table } from '../types/tables.
|
|
2
|
-
export declare const selectGeneratorForMssqlColumn: (table: Table, col: Column) => import("../generators/Generators.
|
|
1
|
+
import type { Column, Table } from '../types/tables.ts';
|
|
2
|
+
export declare const selectGeneratorForMssqlColumn: (table: Table, col: Column) => import("../generators/Generators.ts").GenerateDefault | import("../generators/Generators.ts").GenerateIntPrimaryKey | import("../generators/Generators.ts").GenerateNumber | import("../generators/Generators.ts").GenerateInt | import("../generators/Generators.ts").GenerateBoolean | import("../generators/Generators.ts").GenerateDate | import("../generators/Generators.ts").GenerateTime | import("../generators/Generators.ts").GenerateDatetime | import("../generators/Generators.ts").GenerateJson | import("../generators/Generators.ts").GenerateEmail | import("../generators/Generators.ts").GenerateFirstName | import("../generators/Generators.ts").GenerateString | import("../generators/Generators.ts").GenerateUniqueString | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Column, Table } from '../types/tables.
|
|
2
|
-
export declare const selectGeneratorForMssqlColumn: (table: Table, col: Column) => import("../generators/Generators.
|
|
1
|
+
import type { Column, Table } from '../types/tables.ts';
|
|
2
|
+
export declare const selectGeneratorForMssqlColumn: (table: Table, col: Column) => import("../generators/Generators.ts").GenerateDefault | import("../generators/Generators.ts").GenerateIntPrimaryKey | import("../generators/Generators.ts").GenerateNumber | import("../generators/Generators.ts").GenerateInt | import("../generators/Generators.ts").GenerateBoolean | import("../generators/Generators.ts").GenerateDate | import("../generators/Generators.ts").GenerateTime | import("../generators/Generators.ts").GenerateDatetime | import("../generators/Generators.ts").GenerateJson | import("../generators/Generators.ts").GenerateEmail | import("../generators/Generators.ts").GenerateFirstName | import("../generators/Generators.ts").GenerateString | import("../generators/Generators.ts").GenerateUniqueString | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Column, Table } from '../types/tables.
|
|
2
|
-
export declare const selectGeneratorForMssqlColumn: (table: Table, col: Column) => import("../generators/Generators.
|
|
1
|
+
import type { Column, Table } from '../types/tables.ts';
|
|
2
|
+
export declare const selectGeneratorForMssqlColumn: (table: Table, col: Column) => import("../generators/Generators.ts").GenerateDefault | import("../generators/Generators.ts").GenerateIntPrimaryKey | import("../generators/Generators.ts").GenerateNumber | import("../generators/Generators.ts").GenerateInt | import("../generators/Generators.ts").GenerateBoolean | import("../generators/Generators.ts").GenerateDate | import("../generators/Generators.ts").GenerateTime | import("../generators/Generators.ts").GenerateDatetime | import("../generators/Generators.ts").GenerateJson | import("../generators/Generators.ts").GenerateEmail | import("../generators/Generators.ts").GenerateFirstName | import("../generators/Generators.ts").GenerateString | import("../generators/Generators.ts").GenerateUniqueString | undefined;
|
package/mysql-core/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Relations } from 'drizzle-orm/_relations';
|
|
2
2
|
import type { MySqlDatabase, MySqlSchema } from 'drizzle-orm/mysql-core';
|
|
3
3
|
import { MySqlTable } from 'drizzle-orm/mysql-core';
|
|
4
|
-
import type { RefinementsType } from '../types/seedService.
|
|
5
|
-
import type { Column, TableConfigT } from '../types/tables.
|
|
4
|
+
import type { RefinementsType } from '../types/seedService.ts';
|
|
5
|
+
import type { Column, TableConfigT } from '../types/tables.ts';
|
|
6
6
|
export declare const resetMySql: (db: MySqlDatabase<any, any>, schema: {
|
|
7
7
|
[key: string]: MySqlTable;
|
|
8
8
|
}) => Promise<void>;
|
package/mysql-core/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Relations } from 'drizzle-orm/_relations';
|
|
2
2
|
import type { MySqlDatabase, MySqlSchema } from 'drizzle-orm/mysql-core';
|
|
3
3
|
import { MySqlTable } from 'drizzle-orm/mysql-core';
|
|
4
|
-
import type { RefinementsType } from '../types/seedService.
|
|
5
|
-
import type { Column, TableConfigT } from '../types/tables.
|
|
4
|
+
import type { RefinementsType } from '../types/seedService.ts';
|
|
5
|
+
import type { Column, TableConfigT } from '../types/tables.ts';
|
|
6
6
|
export declare const resetMySql: (db: MySqlDatabase<any, any>, schema: {
|
|
7
7
|
[key: string]: MySqlTable;
|
|
8
8
|
}) => Promise<void>;
|
package/mysql-core/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Relations } from 'drizzle-orm/_relations';
|
|
2
2
|
import type { MySqlDatabase, MySqlSchema } from 'drizzle-orm/mysql-core';
|
|
3
3
|
import { MySqlTable } from 'drizzle-orm/mysql-core';
|
|
4
|
-
import type { RefinementsType } from '../types/seedService.
|
|
5
|
-
import type { Column, TableConfigT } from '../types/tables.
|
|
4
|
+
import type { RefinementsType } from '../types/seedService.ts';
|
|
5
|
+
import type { Column, TableConfigT } from '../types/tables.ts';
|
|
6
6
|
export declare const resetMySql: (db: MySqlDatabase<any, any>, schema: {
|
|
7
7
|
[key: string]: MySqlTable;
|
|
8
8
|
}) => Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Column, Table } from '../types/tables.
|
|
2
|
-
export declare const selectGeneratorForMysqlColumn: (table: Table, col: Column) => import("../generators/Generators.
|
|
1
|
+
import type { Column, Table } from '../types/tables.ts';
|
|
2
|
+
export declare const selectGeneratorForMysqlColumn: (table: Table, col: Column) => import("../generators/Generators.ts").GenerateDefault | import("../generators/Generators.ts").GenerateIntPrimaryKey | import("../generators/Generators.ts").GenerateNumber | import("../generators/Generators.ts").GenerateInt | import("../generators/Generators.ts").GenerateBoolean | import("../generators/Generators.ts").GenerateDate | import("../generators/Generators.ts").GenerateTime | import("../generators/Generators.ts").GenerateTimestamp | import("../generators/Generators.ts").GenerateDatetime | import("../generators/Generators.ts").GenerateYear | import("../generators/Generators.ts").GenerateJson | import("../generators/Generators.ts").GenerateEmail | import("../generators/Generators.ts").GenerateFirstName | import("../generators/Generators.ts").GenerateEnum | import("../generators/Generators.ts").GenerateString | import("../generators/Generators.ts").GenerateUniqueString | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Column, Table } from '../types/tables.
|
|
2
|
-
export declare const selectGeneratorForMysqlColumn: (table: Table, col: Column) => import("../generators/Generators.
|
|
1
|
+
import type { Column, Table } from '../types/tables.ts';
|
|
2
|
+
export declare const selectGeneratorForMysqlColumn: (table: Table, col: Column) => import("../generators/Generators.ts").GenerateDefault | import("../generators/Generators.ts").GenerateIntPrimaryKey | import("../generators/Generators.ts").GenerateNumber | import("../generators/Generators.ts").GenerateInt | import("../generators/Generators.ts").GenerateBoolean | import("../generators/Generators.ts").GenerateDate | import("../generators/Generators.ts").GenerateTime | import("../generators/Generators.ts").GenerateTimestamp | import("../generators/Generators.ts").GenerateDatetime | import("../generators/Generators.ts").GenerateYear | import("../generators/Generators.ts").GenerateJson | import("../generators/Generators.ts").GenerateEmail | import("../generators/Generators.ts").GenerateFirstName | import("../generators/Generators.ts").GenerateEnum | import("../generators/Generators.ts").GenerateString | import("../generators/Generators.ts").GenerateUniqueString | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Column, Table } from '../types/tables.
|
|
2
|
-
export declare const selectGeneratorForMysqlColumn: (table: Table, col: Column) => import("../generators/Generators.
|
|
1
|
+
import type { Column, Table } from '../types/tables.ts';
|
|
2
|
+
export declare const selectGeneratorForMysqlColumn: (table: Table, col: Column) => import("../generators/Generators.ts").GenerateDefault | import("../generators/Generators.ts").GenerateIntPrimaryKey | import("../generators/Generators.ts").GenerateNumber | import("../generators/Generators.ts").GenerateInt | import("../generators/Generators.ts").GenerateBoolean | import("../generators/Generators.ts").GenerateDate | import("../generators/Generators.ts").GenerateTime | import("../generators/Generators.ts").GenerateTimestamp | import("../generators/Generators.ts").GenerateDatetime | import("../generators/Generators.ts").GenerateYear | import("../generators/Generators.ts").GenerateJson | import("../generators/Generators.ts").GenerateEmail | import("../generators/Generators.ts").GenerateFirstName | import("../generators/Generators.ts").GenerateEnum | import("../generators/Generators.ts").GenerateString | import("../generators/Generators.ts").GenerateUniqueString | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "drizzle-seed",
|
|
3
|
-
"version": "1.0.0-beta.2-
|
|
3
|
+
"version": "1.0.0-beta.2-278d7e6",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -91,8 +91,9 @@
|
|
|
91
91
|
"cpy": "^11.1.0",
|
|
92
92
|
"dockerode": "^4.0.6",
|
|
93
93
|
"dotenv": "^16.4.5",
|
|
94
|
-
"drizzle-kit": "workspace
|
|
95
|
-
"drizzle-orm": "workspace
|
|
94
|
+
"drizzle-kit": "workspace:../drizzle-kit/dist",
|
|
95
|
+
"drizzle-orm": "workspace:../drizzle-orm/dist",
|
|
96
|
+
"drizzle-zod": "workspace:../drizzle-zod/dist",
|
|
96
97
|
"get-port": "^7.1.0",
|
|
97
98
|
"mssql": "^11.0.1",
|
|
98
99
|
"mysql2": "^3.14.1",
|
|
@@ -102,6 +103,7 @@
|
|
|
102
103
|
"tslib": "^2.7.0",
|
|
103
104
|
"tsx": "^4.19.0",
|
|
104
105
|
"uuid": "^10.0.0",
|
|
106
|
+
"zod": "^4.0.0",
|
|
105
107
|
"zx": "^8.1.5"
|
|
106
108
|
},
|
|
107
109
|
"dependencies": {
|
package/pg-core/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Relations } from 'drizzle-orm/_relations';
|
|
2
2
|
import type { PgDatabase, PgSchema } from 'drizzle-orm/pg-core';
|
|
3
3
|
import { PgTable } from 'drizzle-orm/pg-core';
|
|
4
|
-
import type { RefinementsType } from '../types/seedService.
|
|
5
|
-
import type { Column, TableConfigT } from '../types/tables.
|
|
4
|
+
import type { RefinementsType } from '../types/seedService.ts';
|
|
5
|
+
import type { Column, TableConfigT } from '../types/tables.ts';
|
|
6
6
|
export declare const resetPostgres: (db: PgDatabase<any, any>, pgTables: {
|
|
7
7
|
[key: string]: PgTable;
|
|
8
8
|
}) => Promise<void>;
|
package/pg-core/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Relations } from 'drizzle-orm/_relations';
|
|
2
2
|
import type { PgDatabase, PgSchema } from 'drizzle-orm/pg-core';
|
|
3
3
|
import { PgTable } from 'drizzle-orm/pg-core';
|
|
4
|
-
import type { RefinementsType } from '../types/seedService.
|
|
5
|
-
import type { Column, TableConfigT } from '../types/tables.
|
|
4
|
+
import type { RefinementsType } from '../types/seedService.ts';
|
|
5
|
+
import type { Column, TableConfigT } from '../types/tables.ts';
|
|
6
6
|
export declare const resetPostgres: (db: PgDatabase<any, any>, pgTables: {
|
|
7
7
|
[key: string]: PgTable;
|
|
8
8
|
}) => Promise<void>;
|
package/pg-core/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Relations } from 'drizzle-orm/_relations';
|
|
2
2
|
import type { PgDatabase, PgSchema } from 'drizzle-orm/pg-core';
|
|
3
3
|
import { PgTable } from 'drizzle-orm/pg-core';
|
|
4
|
-
import type { RefinementsType } from '../types/seedService.
|
|
5
|
-
import type { Column, TableConfigT } from '../types/tables.
|
|
4
|
+
import type { RefinementsType } from '../types/seedService.ts';
|
|
5
|
+
import type { Column, TableConfigT } from '../types/tables.ts';
|
|
6
6
|
export declare const resetPostgres: (db: PgDatabase<any, any>, pgTables: {
|
|
7
7
|
[key: string]: PgTable;
|
|
8
8
|
}) => Promise<void>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { GenerateInterval } from '../generators/Generators.
|
|
2
|
-
import type { Column, Table } from '../types/tables.
|
|
3
|
-
export declare const selectGeneratorForPostgresColumn: (table: Table, col: Column) => import("../generators/Generators.
|
|
1
|
+
import type { GenerateInterval } from '../generators/Generators.ts';
|
|
2
|
+
import type { Column, Table } from '../types/tables.ts';
|
|
3
|
+
export declare const selectGeneratorForPostgresColumn: (table: Table, col: Column) => import("../generators/Generators.ts").GenerateArray | import("../generators/Generators.ts").GenerateDefault | import("../generators/Generators.ts").GenerateIntPrimaryKey | import("../generators/Generators.ts").GenerateNumber | import("../generators/Generators.ts").GenerateInt | import("../generators/Generators.ts").GenerateBoolean | import("../generators/Generators.ts").GenerateDate | import("../generators/Generators.ts").GenerateTime | import("../generators/Generators.ts").GenerateTimestamp | import("../generators/Generators.ts").GenerateJson | import("../generators/Generators.ts").GenerateEmail | import("../generators/Generators.ts").GenerateFirstName | import("../generators/Generators.ts").GenerateEnum | GenerateInterval | import("../generators/Generators.ts").GenerateString | import("../generators/Generators.ts").GenerateUniqueString | import("../generators/Generators.ts").GenerateUUID | import("../generators/Generators.ts").GeneratePoint | import("../generators/Generators.ts").GenerateLine | import("../generators/Generators.ts").GenerateBitString | import("../generators/Generators.ts").GenerateInet | import("../generators/Generators.ts").GenerateGeometry | import("../generators/Generators.ts").GenerateVector | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { GenerateInterval } from '../generators/Generators.
|
|
2
|
-
import type { Column, Table } from '../types/tables.
|
|
3
|
-
export declare const selectGeneratorForPostgresColumn: (table: Table, col: Column) => import("../generators/Generators.
|
|
1
|
+
import type { GenerateInterval } from '../generators/Generators.ts';
|
|
2
|
+
import type { Column, Table } from '../types/tables.ts';
|
|
3
|
+
export declare const selectGeneratorForPostgresColumn: (table: Table, col: Column) => import("../generators/Generators.ts").GenerateArray | import("../generators/Generators.ts").GenerateDefault | import("../generators/Generators.ts").GenerateIntPrimaryKey | import("../generators/Generators.ts").GenerateNumber | import("../generators/Generators.ts").GenerateInt | import("../generators/Generators.ts").GenerateBoolean | import("../generators/Generators.ts").GenerateDate | import("../generators/Generators.ts").GenerateTime | import("../generators/Generators.ts").GenerateTimestamp | import("../generators/Generators.ts").GenerateJson | import("../generators/Generators.ts").GenerateEmail | import("../generators/Generators.ts").GenerateFirstName | import("../generators/Generators.ts").GenerateEnum | GenerateInterval | import("../generators/Generators.ts").GenerateString | import("../generators/Generators.ts").GenerateUniqueString | import("../generators/Generators.ts").GenerateUUID | import("../generators/Generators.ts").GeneratePoint | import("../generators/Generators.ts").GenerateLine | import("../generators/Generators.ts").GenerateBitString | import("../generators/Generators.ts").GenerateInet | import("../generators/Generators.ts").GenerateGeometry | import("../generators/Generators.ts").GenerateVector | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { GenerateInterval } from '../generators/Generators.
|
|
2
|
-
import type { Column, Table } from '../types/tables.
|
|
3
|
-
export declare const selectGeneratorForPostgresColumn: (table: Table, col: Column) => import("../generators/Generators.
|
|
1
|
+
import type { GenerateInterval } from '../generators/Generators.ts';
|
|
2
|
+
import type { Column, Table } from '../types/tables.ts';
|
|
3
|
+
export declare const selectGeneratorForPostgresColumn: (table: Table, col: Column) => import("../generators/Generators.ts").GenerateArray | import("../generators/Generators.ts").GenerateDefault | import("../generators/Generators.ts").GenerateIntPrimaryKey | import("../generators/Generators.ts").GenerateNumber | import("../generators/Generators.ts").GenerateInt | import("../generators/Generators.ts").GenerateBoolean | import("../generators/Generators.ts").GenerateDate | import("../generators/Generators.ts").GenerateTime | import("../generators/Generators.ts").GenerateTimestamp | import("../generators/Generators.ts").GenerateJson | import("../generators/Generators.ts").GenerateEmail | import("../generators/Generators.ts").GenerateFirstName | import("../generators/Generators.ts").GenerateEnum | GenerateInterval | import("../generators/Generators.ts").GenerateString | import("../generators/Generators.ts").GenerateUniqueString | import("../generators/Generators.ts").GenerateUUID | import("../generators/Generators.ts").GeneratePoint | import("../generators/Generators.ts").GenerateLine | import("../generators/Generators.ts").GenerateBitString | import("../generators/Generators.ts").GenerateInet | import("../generators/Generators.ts").GenerateGeometry | import("../generators/Generators.ts").GenerateVector | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Relations } from 'drizzle-orm/_relations';
|
|
2
2
|
import type { SingleStoreDatabase, SingleStoreSchema } from 'drizzle-orm/singlestore-core';
|
|
3
3
|
import { SingleStoreTable } from 'drizzle-orm/singlestore-core';
|
|
4
|
-
import type { RefinementsType } from '../types/seedService.
|
|
5
|
-
import type { Column, TableConfigT } from '../types/tables.
|
|
4
|
+
import type { RefinementsType } from '../types/seedService.ts';
|
|
5
|
+
import type { Column, TableConfigT } from '../types/tables.ts';
|
|
6
6
|
export declare const resetSingleStore: (db: SingleStoreDatabase<any, any>, schema: {
|
|
7
7
|
[key: string]: SingleStoreTable;
|
|
8
8
|
}) => Promise<void>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Relations } from 'drizzle-orm/_relations';
|
|
2
2
|
import type { SingleStoreDatabase, SingleStoreSchema } from 'drizzle-orm/singlestore-core';
|
|
3
3
|
import { SingleStoreTable } from 'drizzle-orm/singlestore-core';
|
|
4
|
-
import type { RefinementsType } from '../types/seedService.
|
|
5
|
-
import type { Column, TableConfigT } from '../types/tables.
|
|
4
|
+
import type { RefinementsType } from '../types/seedService.ts';
|
|
5
|
+
import type { Column, TableConfigT } from '../types/tables.ts';
|
|
6
6
|
export declare const resetSingleStore: (db: SingleStoreDatabase<any, any>, schema: {
|
|
7
7
|
[key: string]: SingleStoreTable;
|
|
8
8
|
}) => Promise<void>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Relations } from 'drizzle-orm/_relations';
|
|
2
2
|
import type { SingleStoreDatabase, SingleStoreSchema } from 'drizzle-orm/singlestore-core';
|
|
3
3
|
import { SingleStoreTable } from 'drizzle-orm/singlestore-core';
|
|
4
|
-
import type { RefinementsType } from '../types/seedService.
|
|
5
|
-
import type { Column, TableConfigT } from '../types/tables.
|
|
4
|
+
import type { RefinementsType } from '../types/seedService.ts';
|
|
5
|
+
import type { Column, TableConfigT } from '../types/tables.ts';
|
|
6
6
|
export declare const resetSingleStore: (db: SingleStoreDatabase<any, any>, schema: {
|
|
7
7
|
[key: string]: SingleStoreTable;
|
|
8
8
|
}) => Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Column, Table } from '../types/tables.
|
|
2
|
-
export declare const selectGeneratorForSingleStoreColumn: (table: Table, col: Column) => import("../generators/Generators.
|
|
1
|
+
import type { Column, Table } from '../types/tables.ts';
|
|
2
|
+
export declare const selectGeneratorForSingleStoreColumn: (table: Table, col: Column) => import("../generators/Generators.ts").GenerateDefault | import("../generators/Generators.ts").GenerateIntPrimaryKey | import("../generators/Generators.ts").GenerateNumber | import("../generators/Generators.ts").GenerateInt | import("../generators/Generators.ts").GenerateBoolean | import("../generators/Generators.ts").GenerateDate | import("../generators/Generators.ts").GenerateTime | import("../generators/Generators.ts").GenerateTimestamp | import("../generators/Generators.ts").GenerateDatetime | import("../generators/Generators.ts").GenerateYear | import("../generators/Generators.ts").GenerateJson | import("../generators/Generators.ts").GenerateEmail | import("../generators/Generators.ts").GenerateFirstName | import("../generators/Generators.ts").GenerateEnum | import("../generators/Generators.ts").GenerateString | import("../generators/Generators.ts").GenerateUniqueString | import("../generators/Generators.ts").GenerateVector | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Column, Table } from '../types/tables.
|
|
2
|
-
export declare const selectGeneratorForSingleStoreColumn: (table: Table, col: Column) => import("../generators/Generators.
|
|
1
|
+
import type { Column, Table } from '../types/tables.ts';
|
|
2
|
+
export declare const selectGeneratorForSingleStoreColumn: (table: Table, col: Column) => import("../generators/Generators.ts").GenerateDefault | import("../generators/Generators.ts").GenerateIntPrimaryKey | import("../generators/Generators.ts").GenerateNumber | import("../generators/Generators.ts").GenerateInt | import("../generators/Generators.ts").GenerateBoolean | import("../generators/Generators.ts").GenerateDate | import("../generators/Generators.ts").GenerateTime | import("../generators/Generators.ts").GenerateTimestamp | import("../generators/Generators.ts").GenerateDatetime | import("../generators/Generators.ts").GenerateYear | import("../generators/Generators.ts").GenerateJson | import("../generators/Generators.ts").GenerateEmail | import("../generators/Generators.ts").GenerateFirstName | import("../generators/Generators.ts").GenerateEnum | import("../generators/Generators.ts").GenerateString | import("../generators/Generators.ts").GenerateUniqueString | import("../generators/Generators.ts").GenerateVector | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Column, Table } from '../types/tables.
|
|
2
|
-
export declare const selectGeneratorForSingleStoreColumn: (table: Table, col: Column) => import("../generators/Generators.
|
|
1
|
+
import type { Column, Table } from '../types/tables.ts';
|
|
2
|
+
export declare const selectGeneratorForSingleStoreColumn: (table: Table, col: Column) => import("../generators/Generators.ts").GenerateDefault | import("../generators/Generators.ts").GenerateIntPrimaryKey | import("../generators/Generators.ts").GenerateNumber | import("../generators/Generators.ts").GenerateInt | import("../generators/Generators.ts").GenerateBoolean | import("../generators/Generators.ts").GenerateDate | import("../generators/Generators.ts").GenerateTime | import("../generators/Generators.ts").GenerateTimestamp | import("../generators/Generators.ts").GenerateDatetime | import("../generators/Generators.ts").GenerateYear | import("../generators/Generators.ts").GenerateJson | import("../generators/Generators.ts").GenerateEmail | import("../generators/Generators.ts").GenerateFirstName | import("../generators/Generators.ts").GenerateEnum | import("../generators/Generators.ts").GenerateString | import("../generators/Generators.ts").GenerateUniqueString | import("../generators/Generators.ts").GenerateVector | undefined;
|
package/sqlite-core/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Relations } from 'drizzle-orm/_relations';
|
|
2
2
|
import type { BaseSQLiteDatabase } from 'drizzle-orm/sqlite-core';
|
|
3
3
|
import { SQLiteTable } from 'drizzle-orm/sqlite-core';
|
|
4
|
-
import type { RefinementsType } from '../types/seedService.
|
|
5
|
-
import type { Column, TableConfigT } from '../types/tables.
|
|
4
|
+
import type { RefinementsType } from '../types/seedService.ts';
|
|
5
|
+
import type { Column, TableConfigT } from '../types/tables.ts';
|
|
6
6
|
export declare const resetSqlite: (db: BaseSQLiteDatabase<any, any>, schema: {
|
|
7
7
|
[key: string]: SQLiteTable;
|
|
8
8
|
}) => Promise<void>;
|
package/sqlite-core/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Relations } from 'drizzle-orm/_relations';
|
|
2
2
|
import type { BaseSQLiteDatabase } from 'drizzle-orm/sqlite-core';
|
|
3
3
|
import { SQLiteTable } from 'drizzle-orm/sqlite-core';
|
|
4
|
-
import type { RefinementsType } from '../types/seedService.
|
|
5
|
-
import type { Column, TableConfigT } from '../types/tables.
|
|
4
|
+
import type { RefinementsType } from '../types/seedService.ts';
|
|
5
|
+
import type { Column, TableConfigT } from '../types/tables.ts';
|
|
6
6
|
export declare const resetSqlite: (db: BaseSQLiteDatabase<any, any>, schema: {
|
|
7
7
|
[key: string]: SQLiteTable;
|
|
8
8
|
}) => Promise<void>;
|
package/sqlite-core/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Relations } from 'drizzle-orm/_relations';
|
|
2
2
|
import type { BaseSQLiteDatabase } from 'drizzle-orm/sqlite-core';
|
|
3
3
|
import { SQLiteTable } from 'drizzle-orm/sqlite-core';
|
|
4
|
-
import type { RefinementsType } from '../types/seedService.
|
|
5
|
-
import type { Column, TableConfigT } from '../types/tables.
|
|
4
|
+
import type { RefinementsType } from '../types/seedService.ts';
|
|
5
|
+
import type { Column, TableConfigT } from '../types/tables.ts';
|
|
6
6
|
export declare const resetSqlite: (db: BaseSQLiteDatabase<any, any>, schema: {
|
|
7
7
|
[key: string]: SQLiteTable;
|
|
8
8
|
}) => Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Column, Table } from '../types/tables.
|
|
2
|
-
export declare const selectGeneratorForSqlite: (table: Table, col: Column) => import("../generators/Generators.
|
|
1
|
+
import type { Column, Table } from '../types/tables.ts';
|
|
2
|
+
export declare const selectGeneratorForSqlite: (table: Table, col: Column) => import("../generators/Generators.ts").GenerateDefault | import("../generators/Generators.ts").GenerateIntPrimaryKey | import("../generators/Generators.ts").GenerateNumber | import("../generators/Generators.ts").GenerateInt | import("../generators/Generators.ts").GenerateBoolean | import("../generators/Generators.ts").GenerateTimestamp | import("../generators/Generators.ts").GenerateJson | import("../generators/Generators.ts").GenerateEmail | import("../generators/Generators.ts").GenerateFirstName | import("../generators/Generators.ts").GenerateString | import("../generators/Generators.ts").GenerateUniqueString | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Column, Table } from '../types/tables.
|
|
2
|
-
export declare const selectGeneratorForSqlite: (table: Table, col: Column) => import("../generators/Generators.
|
|
1
|
+
import type { Column, Table } from '../types/tables.ts';
|
|
2
|
+
export declare const selectGeneratorForSqlite: (table: Table, col: Column) => import("../generators/Generators.ts").GenerateDefault | import("../generators/Generators.ts").GenerateIntPrimaryKey | import("../generators/Generators.ts").GenerateNumber | import("../generators/Generators.ts").GenerateInt | import("../generators/Generators.ts").GenerateBoolean | import("../generators/Generators.ts").GenerateTimestamp | import("../generators/Generators.ts").GenerateJson | import("../generators/Generators.ts").GenerateEmail | import("../generators/Generators.ts").GenerateFirstName | import("../generators/Generators.ts").GenerateString | import("../generators/Generators.ts").GenerateUniqueString | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Column, Table } from '../types/tables.
|
|
2
|
-
export declare const selectGeneratorForSqlite: (table: Table, col: Column) => import("../generators/Generators.
|
|
1
|
+
import type { Column, Table } from '../types/tables.ts';
|
|
2
|
+
export declare const selectGeneratorForSqlite: (table: Table, col: Column) => import("../generators/Generators.ts").GenerateDefault | import("../generators/Generators.ts").GenerateIntPrimaryKey | import("../generators/Generators.ts").GenerateNumber | import("../generators/Generators.ts").GenerateInt | import("../generators/Generators.ts").GenerateBoolean | import("../generators/Generators.ts").GenerateTimestamp | import("../generators/Generators.ts").GenerateJson | import("../generators/Generators.ts").GenerateEmail | import("../generators/Generators.ts").GenerateFirstName | import("../generators/Generators.ts").GenerateString | import("../generators/Generators.ts").GenerateUniqueString | undefined;
|
package/types/seedService.d.cts
CHANGED
|
@@ -4,8 +4,8 @@ import type { MySqlDatabase, MySqlTable } from 'drizzle-orm/mysql-core';
|
|
|
4
4
|
import type { PgDatabase, PgTable } from 'drizzle-orm/pg-core';
|
|
5
5
|
import type { SingleStoreDatabase, SingleStoreTable } from 'drizzle-orm/singlestore-core';
|
|
6
6
|
import type { BaseSQLiteDatabase, SQLiteTable } from 'drizzle-orm/sqlite-core';
|
|
7
|
-
import type { AbstractGenerator } from '../generators/Generators.
|
|
8
|
-
import type { Prettify } from './tables.
|
|
7
|
+
import type { AbstractGenerator } from '../generators/Generators.ts';
|
|
8
|
+
import type { Prettify } from './tables.ts';
|
|
9
9
|
export type GeneratedValueType = number | bigint | string | Buffer | boolean | undefined;
|
|
10
10
|
export type DbType = PgDatabase<any, any, any> | MySqlDatabase<any, any, any, any> | BaseSQLiteDatabase<any, any, any, any> | MsSqlDatabase<any, any, any, any> | CockroachDatabase<any, any, any> | SingleStoreDatabase<any, any, any, any>;
|
|
11
11
|
export type TableType = PgTable | MySqlTable | SQLiteTable | MsSqlTable | CockroachTable | SingleStoreTable;
|
package/types/seedService.d.mts
CHANGED
|
@@ -4,8 +4,8 @@ import type { MySqlDatabase, MySqlTable } from 'drizzle-orm/mysql-core';
|
|
|
4
4
|
import type { PgDatabase, PgTable } from 'drizzle-orm/pg-core';
|
|
5
5
|
import type { SingleStoreDatabase, SingleStoreTable } from 'drizzle-orm/singlestore-core';
|
|
6
6
|
import type { BaseSQLiteDatabase, SQLiteTable } from 'drizzle-orm/sqlite-core';
|
|
7
|
-
import type { AbstractGenerator } from '../generators/Generators.
|
|
8
|
-
import type { Prettify } from './tables.
|
|
7
|
+
import type { AbstractGenerator } from '../generators/Generators.ts';
|
|
8
|
+
import type { Prettify } from './tables.ts';
|
|
9
9
|
export type GeneratedValueType = number | bigint | string | Buffer | boolean | undefined;
|
|
10
10
|
export type DbType = PgDatabase<any, any, any> | MySqlDatabase<any, any, any, any> | BaseSQLiteDatabase<any, any, any, any> | MsSqlDatabase<any, any, any, any> | CockroachDatabase<any, any, any> | SingleStoreDatabase<any, any, any, any>;
|
|
11
11
|
export type TableType = PgTable | MySqlTable | SQLiteTable | MsSqlTable | CockroachTable | SingleStoreTable;
|
package/types/seedService.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ import type { MySqlDatabase, MySqlTable } from 'drizzle-orm/mysql-core';
|
|
|
4
4
|
import type { PgDatabase, PgTable } from 'drizzle-orm/pg-core';
|
|
5
5
|
import type { SingleStoreDatabase, SingleStoreTable } from 'drizzle-orm/singlestore-core';
|
|
6
6
|
import type { BaseSQLiteDatabase, SQLiteTable } from 'drizzle-orm/sqlite-core';
|
|
7
|
-
import type { AbstractGenerator } from '../generators/Generators.
|
|
8
|
-
import type { Prettify } from './tables.
|
|
7
|
+
import type { AbstractGenerator } from '../generators/Generators.ts';
|
|
8
|
+
import type { Prettify } from './tables.ts';
|
|
9
9
|
export type GeneratedValueType = number | bigint | string | Buffer | boolean | undefined;
|
|
10
10
|
export type DbType = PgDatabase<any, any, any> | MySqlDatabase<any, any, any, any> | BaseSQLiteDatabase<any, any, any, any> | MsSqlDatabase<any, any, any, any> | CockroachDatabase<any, any, any> | SingleStoreDatabase<any, any, any, any>;
|
|
11
11
|
export type TableType = PgTable | MySqlTable | SQLiteTable | MsSqlTable | CockroachTable | SingleStoreTable;
|
package/utils.d.cts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import type { PgColumn } from 'drizzle-orm/pg-core';
|
|
2
|
+
import { PgBigInt53, PgBigInt64, PgBigSerial53, PgBigSerial64, PgInteger, PgSerial, PgSmallInt, PgSmallSerial } from 'drizzle-orm/pg-core';
|
|
1
3
|
import type { RelationWithReferences } from './types/tables';
|
|
2
4
|
export declare const isRelationCyclic: (startRel: RelationWithReferences) => boolean;
|
|
3
5
|
export declare const equalSets: (set1: Set<any>, set2: Set<any>) => boolean;
|
|
6
|
+
export declare const intMax: (args: (number | bigint)[]) => number | bigint;
|
|
7
|
+
export declare const isPostgresColumnIntLike: (column: PgColumn) => column is PgSmallInt<import("drizzle-orm").ColumnBaseConfig<"number int16" | "number uint16">> | PgInteger<import("drizzle-orm").ColumnBaseConfig<"number int32">> | PgBigInt53<import("drizzle-orm").ColumnBaseConfig<"number int53">> | PgBigInt64<import("drizzle-orm").ColumnBaseConfig<"bigint int64">> | PgSmallSerial<import("drizzle-orm").ColumnBaseConfig<"number int16">> | PgSerial<import("drizzle-orm").ColumnBaseConfig<"number int32">> | PgBigSerial53<import("drizzle-orm").ColumnBaseConfig<"number int53">> | PgBigSerial64<import("drizzle-orm").ColumnBaseConfig<"bigint int64">>;
|
package/utils.d.mts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import type { PgColumn } from 'drizzle-orm/pg-core';
|
|
2
|
+
import { PgBigInt53, PgBigInt64, PgBigSerial53, PgBigSerial64, PgInteger, PgSerial, PgSmallInt, PgSmallSerial } from 'drizzle-orm/pg-core';
|
|
1
3
|
import type { RelationWithReferences } from './types/tables';
|
|
2
4
|
export declare const isRelationCyclic: (startRel: RelationWithReferences) => boolean;
|
|
3
5
|
export declare const equalSets: (set1: Set<any>, set2: Set<any>) => boolean;
|
|
6
|
+
export declare const intMax: (args: (number | bigint)[]) => number | bigint;
|
|
7
|
+
export declare const isPostgresColumnIntLike: (column: PgColumn) => column is PgSmallInt<import("drizzle-orm").ColumnBaseConfig<"number int16" | "number uint16">> | PgInteger<import("drizzle-orm").ColumnBaseConfig<"number int32">> | PgBigInt53<import("drizzle-orm").ColumnBaseConfig<"number int53">> | PgBigInt64<import("drizzle-orm").ColumnBaseConfig<"bigint int64">> | PgSmallSerial<import("drizzle-orm").ColumnBaseConfig<"number int16">> | PgSerial<import("drizzle-orm").ColumnBaseConfig<"number int32">> | PgBigSerial53<import("drizzle-orm").ColumnBaseConfig<"number int53">> | PgBigSerial64<import("drizzle-orm").ColumnBaseConfig<"bigint int64">>;
|
package/utils.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import type { PgColumn } from 'drizzle-orm/pg-core';
|
|
2
|
+
import { PgBigInt53, PgBigInt64, PgBigSerial53, PgBigSerial64, PgInteger, PgSerial, PgSmallInt, PgSmallSerial } from 'drizzle-orm/pg-core';
|
|
1
3
|
import type { RelationWithReferences } from './types/tables';
|
|
2
4
|
export declare const isRelationCyclic: (startRel: RelationWithReferences) => boolean;
|
|
3
5
|
export declare const equalSets: (set1: Set<any>, set2: Set<any>) => boolean;
|
|
6
|
+
export declare const intMax: (args: (number | bigint)[]) => number | bigint;
|
|
7
|
+
export declare const isPostgresColumnIntLike: (column: PgColumn) => column is PgSmallInt<import("drizzle-orm").ColumnBaseConfig<"number int16" | "number uint16">> | PgInteger<import("drizzle-orm").ColumnBaseConfig<"number int32">> | PgBigInt53<import("drizzle-orm").ColumnBaseConfig<"number int53">> | PgBigInt64<import("drizzle-orm").ColumnBaseConfig<"bigint int64">> | PgSmallSerial<import("drizzle-orm").ColumnBaseConfig<"number int16">> | PgSerial<import("drizzle-orm").ColumnBaseConfig<"number int32">> | PgBigSerial53<import("drizzle-orm").ColumnBaseConfig<"number int53">> | PgBigSerial64<import("drizzle-orm").ColumnBaseConfig<"bigint int64">>;
|