drizzle-seed 0.3.2-f8a2f3c → 0.4.0-2d0c9fd

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.
Files changed (77) hide show
  1. package/{services/SeedService.d.cts → SeedService.d.cts} +18 -26
  2. package/{services/SeedService.d.mts → SeedService.d.mts} +18 -26
  3. package/{services/SeedService.d.ts → SeedService.d.ts} +18 -26
  4. package/cockroach-core/index.d.cts +30 -0
  5. package/cockroach-core/index.d.mts +30 -0
  6. package/cockroach-core/index.d.ts +30 -0
  7. package/cockroach-core/selectGensForColumn.d.cts +3 -0
  8. package/cockroach-core/selectGensForColumn.d.mts +3 -0
  9. package/cockroach-core/selectGensForColumn.d.ts +3 -0
  10. package/common.d.cts +25 -0
  11. package/common.d.mts +25 -0
  12. package/common.d.ts +25 -0
  13. package/{services → generators}/GeneratorFuncs.d.cts +311 -35
  14. package/{services → generators}/GeneratorFuncs.d.mts +311 -35
  15. package/{services → generators}/GeneratorFuncs.d.ts +311 -35
  16. package/{services → generators}/Generators.d.cts +151 -25
  17. package/{services → generators}/Generators.d.mts +151 -25
  18. package/{services → generators}/Generators.d.ts +151 -25
  19. package/generators/utils.d.cts +38 -0
  20. package/generators/utils.d.mts +38 -0
  21. package/generators/utils.d.ts +38 -0
  22. package/{services → generators}/versioning/v2.d.cts +2 -2
  23. package/{services → generators}/versioning/v2.d.mts +2 -2
  24. package/{services → generators}/versioning/v2.d.ts +2 -2
  25. package/index.cjs +2604 -1354
  26. package/index.cjs.map +1 -1
  27. package/index.d.cts +94 -113
  28. package/index.d.mts +94 -113
  29. package/index.d.ts +94 -113
  30. package/index.mjs +2609 -1358
  31. package/index.mjs.map +1 -1
  32. package/mssql-core/index.d.cts +24 -0
  33. package/mssql-core/index.d.mts +24 -0
  34. package/mssql-core/index.d.ts +24 -0
  35. package/mssql-core/selectGensForColumn.d.cts +2 -0
  36. package/mssql-core/selectGensForColumn.d.mts +2 -0
  37. package/mssql-core/selectGensForColumn.d.ts +2 -0
  38. package/mysql-core/index.d.cts +30 -0
  39. package/mysql-core/index.d.mts +30 -0
  40. package/mysql-core/index.d.ts +30 -0
  41. package/mysql-core/selectGensForColumn.d.cts +2 -0
  42. package/mysql-core/selectGensForColumn.d.mts +2 -0
  43. package/mysql-core/selectGensForColumn.d.ts +2 -0
  44. package/package.json +13 -9
  45. package/pg-core/index.d.cts +30 -0
  46. package/pg-core/index.d.mts +30 -0
  47. package/pg-core/index.d.ts +30 -0
  48. package/pg-core/selectGensForColumn.d.cts +3 -0
  49. package/pg-core/selectGensForColumn.d.mts +3 -0
  50. package/pg-core/selectGensForColumn.d.ts +3 -0
  51. package/singlestore-core/index.d.cts +30 -0
  52. package/singlestore-core/index.d.mts +30 -0
  53. package/singlestore-core/index.d.ts +30 -0
  54. package/singlestore-core/selectGensForColumn.d.cts +2 -0
  55. package/singlestore-core/selectGensForColumn.d.mts +2 -0
  56. package/singlestore-core/selectGensForColumn.d.ts +2 -0
  57. package/sqlite-core/index.d.cts +30 -0
  58. package/sqlite-core/index.d.mts +30 -0
  59. package/sqlite-core/index.d.ts +30 -0
  60. package/sqlite-core/selectGensForColumn.d.cts +2 -0
  61. package/sqlite-core/selectGensForColumn.d.mts +2 -0
  62. package/sqlite-core/selectGensForColumn.d.ts +2 -0
  63. package/types/seedService.d.cts +12 -2
  64. package/types/seedService.d.mts +12 -2
  65. package/types/seedService.d.ts +12 -2
  66. package/types/tables.d.cts +17 -0
  67. package/types/tables.d.mts +17 -0
  68. package/types/tables.d.ts +17 -0
  69. package/utils.d.cts +4 -0
  70. package/utils.d.mts +4 -0
  71. package/utils.d.ts +4 -0
  72. package/services/utils.d.cts +0 -23
  73. package/services/utils.d.mts +0 -23
  74. package/services/utils.d.ts +0 -23
  75. /package/{services → generators}/apiVersion.d.cts +0 -0
  76. /package/{services → generators}/apiVersion.d.mts +0 -0
  77. /package/{services → generators}/apiVersion.d.ts +0 -0
@@ -0,0 +1,24 @@
1
+ import { Relations } from 'drizzle-orm/_relations';
2
+ import type { MsSqlDatabase, MsSqlSchema } from 'drizzle-orm/mssql-core';
3
+ import { MsSqlTable } from 'drizzle-orm/mssql-core';
4
+ import type { RefinementsType } from '../types/seedService.js';
5
+ export declare const resetMsSql: (db: MsSqlDatabase<any, any>, schema: {
6
+ [key: string]: MsSqlTable;
7
+ }) => Promise<void>;
8
+ export declare const filterMsSqlTables: (schema: {
9
+ [key: string]: MsSqlTable | MsSqlSchema | Relations | any;
10
+ }) => {
11
+ mssqlSchema: {
12
+ [k: string]: MsSqlTable<import("drizzle-orm/mssql-core").TableConfig> | Relations<string, Record<string, import("drizzle-orm/_relations").Relation<string>>>;
13
+ };
14
+ mssqlTables: {
15
+ [k: string]: MsSqlTable<import("drizzle-orm/mssql-core").TableConfig>;
16
+ };
17
+ };
18
+ export declare const seedMsSql: (db: MsSqlDatabase<any, any>, schema: {
19
+ [key: string]: MsSqlTable | MsSqlSchema | Relations | any;
20
+ }, options?: {
21
+ count?: number;
22
+ seed?: number;
23
+ version?: number;
24
+ }, refinements?: RefinementsType) => Promise<void>;
@@ -0,0 +1,24 @@
1
+ import { Relations } from 'drizzle-orm/_relations';
2
+ import type { MsSqlDatabase, MsSqlSchema } from 'drizzle-orm/mssql-core';
3
+ import { MsSqlTable } from 'drizzle-orm/mssql-core';
4
+ import type { RefinementsType } from '../types/seedService.js';
5
+ export declare const resetMsSql: (db: MsSqlDatabase<any, any>, schema: {
6
+ [key: string]: MsSqlTable;
7
+ }) => Promise<void>;
8
+ export declare const filterMsSqlTables: (schema: {
9
+ [key: string]: MsSqlTable | MsSqlSchema | Relations | any;
10
+ }) => {
11
+ mssqlSchema: {
12
+ [k: string]: MsSqlTable<import("drizzle-orm/mssql-core").TableConfig> | Relations<string, Record<string, import("drizzle-orm/_relations").Relation<string>>>;
13
+ };
14
+ mssqlTables: {
15
+ [k: string]: MsSqlTable<import("drizzle-orm/mssql-core").TableConfig>;
16
+ };
17
+ };
18
+ export declare const seedMsSql: (db: MsSqlDatabase<any, any>, schema: {
19
+ [key: string]: MsSqlTable | MsSqlSchema | Relations | any;
20
+ }, options?: {
21
+ count?: number;
22
+ seed?: number;
23
+ version?: number;
24
+ }, refinements?: RefinementsType) => Promise<void>;
@@ -0,0 +1,24 @@
1
+ import { Relations } from 'drizzle-orm/_relations';
2
+ import type { MsSqlDatabase, MsSqlSchema } from 'drizzle-orm/mssql-core';
3
+ import { MsSqlTable } from 'drizzle-orm/mssql-core';
4
+ import type { RefinementsType } from '../types/seedService.js';
5
+ export declare const resetMsSql: (db: MsSqlDatabase<any, any>, schema: {
6
+ [key: string]: MsSqlTable;
7
+ }) => Promise<void>;
8
+ export declare const filterMsSqlTables: (schema: {
9
+ [key: string]: MsSqlTable | MsSqlSchema | Relations | any;
10
+ }) => {
11
+ mssqlSchema: {
12
+ [k: string]: MsSqlTable<import("drizzle-orm/mssql-core").TableConfig> | Relations<string, Record<string, import("drizzle-orm/_relations").Relation<string>>>;
13
+ };
14
+ mssqlTables: {
15
+ [k: string]: MsSqlTable<import("drizzle-orm/mssql-core").TableConfig>;
16
+ };
17
+ };
18
+ export declare const seedMsSql: (db: MsSqlDatabase<any, any>, schema: {
19
+ [key: string]: MsSqlTable | MsSqlSchema | Relations | any;
20
+ }, options?: {
21
+ count?: number;
22
+ seed?: number;
23
+ version?: number;
24
+ }, refinements?: RefinementsType) => Promise<void>;
@@ -0,0 +1,2 @@
1
+ import type { Column, Table } from '../types/tables.js';
2
+ export declare const selectGeneratorForMssqlColumn: (table: Table, col: Column) => import("../generators/Generators.js").GenerateDefault | import("../generators/Generators.js").GenerateIntPrimaryKey | import("../generators/Generators.js").GenerateNumber | import("../generators/Generators.js").GenerateInt | import("../generators/Generators.js").GenerateBoolean | import("../generators/Generators.js").GenerateDate | import("../generators/Generators.js").GenerateTime | import("../generators/Generators.js").GenerateDatetime | import("../generators/Generators.js").GenerateJson | import("../generators/Generators.js").GenerateEmail | import("../generators/Generators.js").GenerateFirstName | import("../generators/Generators.js").GenerateString | import("../generators/Generators.js").GenerateUniqueString | undefined;
@@ -0,0 +1,2 @@
1
+ import type { Column, Table } from '../types/tables.js';
2
+ export declare const selectGeneratorForMssqlColumn: (table: Table, col: Column) => import("../generators/Generators.js").GenerateDefault | import("../generators/Generators.js").GenerateIntPrimaryKey | import("../generators/Generators.js").GenerateNumber | import("../generators/Generators.js").GenerateInt | import("../generators/Generators.js").GenerateBoolean | import("../generators/Generators.js").GenerateDate | import("../generators/Generators.js").GenerateTime | import("../generators/Generators.js").GenerateDatetime | import("../generators/Generators.js").GenerateJson | import("../generators/Generators.js").GenerateEmail | import("../generators/Generators.js").GenerateFirstName | import("../generators/Generators.js").GenerateString | import("../generators/Generators.js").GenerateUniqueString | undefined;
@@ -0,0 +1,2 @@
1
+ import type { Column, Table } from '../types/tables.js';
2
+ export declare const selectGeneratorForMssqlColumn: (table: Table, col: Column) => import("../generators/Generators.js").GenerateDefault | import("../generators/Generators.js").GenerateIntPrimaryKey | import("../generators/Generators.js").GenerateNumber | import("../generators/Generators.js").GenerateInt | import("../generators/Generators.js").GenerateBoolean | import("../generators/Generators.js").GenerateDate | import("../generators/Generators.js").GenerateTime | import("../generators/Generators.js").GenerateDatetime | import("../generators/Generators.js").GenerateJson | import("../generators/Generators.js").GenerateEmail | import("../generators/Generators.js").GenerateFirstName | import("../generators/Generators.js").GenerateString | import("../generators/Generators.js").GenerateUniqueString | undefined;
@@ -0,0 +1,30 @@
1
+ import { Relations } from 'drizzle-orm/_relations';
2
+ import type { MySqlDatabase, MySqlSchema } from 'drizzle-orm/mysql-core';
3
+ import { MySqlTable } from 'drizzle-orm/mysql-core';
4
+ import type { RefinementsType } from '../types/seedService.js';
5
+ import type { Table, TableConfigT } from '../types/tables.js';
6
+ export declare const resetMySql: (db: MySqlDatabase<any, any>, schema: {
7
+ [key: string]: MySqlTable;
8
+ }) => Promise<void>;
9
+ export declare const filterMysqlTables: (schema: {
10
+ [key: string]: MySqlTable | MySqlSchema | Relations | any;
11
+ }) => {
12
+ mysqlSchema: {
13
+ [k: string]: MySqlTable<import("drizzle-orm/mysql-core").TableConfig> | Relations<string, Record<string, import("drizzle-orm/_relations").Relation<string>>>;
14
+ };
15
+ mysqlTables: {
16
+ [k: string]: MySqlTable<import("drizzle-orm/mysql-core").TableConfig>;
17
+ };
18
+ };
19
+ export declare const seedMySql: (db: MySqlDatabase<any, any>, schema: {
20
+ [key: string]: MySqlTable | MySqlSchema | Relations | any;
21
+ }, options?: {
22
+ count?: number;
23
+ seed?: number;
24
+ version?: number;
25
+ }, refinements?: RefinementsType) => Promise<void>;
26
+ export declare const mapMySqlTable: (tableConfig: TableConfigT, dbToTsTableNamesMap: {
27
+ [key: string]: string;
28
+ }, dbToTsColumnNamesMap: {
29
+ [key: string]: string;
30
+ }) => Table;
@@ -0,0 +1,30 @@
1
+ import { Relations } from 'drizzle-orm/_relations';
2
+ import type { MySqlDatabase, MySqlSchema } from 'drizzle-orm/mysql-core';
3
+ import { MySqlTable } from 'drizzle-orm/mysql-core';
4
+ import type { RefinementsType } from '../types/seedService.js';
5
+ import type { Table, TableConfigT } from '../types/tables.js';
6
+ export declare const resetMySql: (db: MySqlDatabase<any, any>, schema: {
7
+ [key: string]: MySqlTable;
8
+ }) => Promise<void>;
9
+ export declare const filterMysqlTables: (schema: {
10
+ [key: string]: MySqlTable | MySqlSchema | Relations | any;
11
+ }) => {
12
+ mysqlSchema: {
13
+ [k: string]: MySqlTable<import("drizzle-orm/mysql-core").TableConfig> | Relations<string, Record<string, import("drizzle-orm/_relations").Relation<string>>>;
14
+ };
15
+ mysqlTables: {
16
+ [k: string]: MySqlTable<import("drizzle-orm/mysql-core").TableConfig>;
17
+ };
18
+ };
19
+ export declare const seedMySql: (db: MySqlDatabase<any, any>, schema: {
20
+ [key: string]: MySqlTable | MySqlSchema | Relations | any;
21
+ }, options?: {
22
+ count?: number;
23
+ seed?: number;
24
+ version?: number;
25
+ }, refinements?: RefinementsType) => Promise<void>;
26
+ export declare const mapMySqlTable: (tableConfig: TableConfigT, dbToTsTableNamesMap: {
27
+ [key: string]: string;
28
+ }, dbToTsColumnNamesMap: {
29
+ [key: string]: string;
30
+ }) => Table;
@@ -0,0 +1,30 @@
1
+ import { Relations } from 'drizzle-orm/_relations';
2
+ import type { MySqlDatabase, MySqlSchema } from 'drizzle-orm/mysql-core';
3
+ import { MySqlTable } from 'drizzle-orm/mysql-core';
4
+ import type { RefinementsType } from '../types/seedService.js';
5
+ import type { Table, TableConfigT } from '../types/tables.js';
6
+ export declare const resetMySql: (db: MySqlDatabase<any, any>, schema: {
7
+ [key: string]: MySqlTable;
8
+ }) => Promise<void>;
9
+ export declare const filterMysqlTables: (schema: {
10
+ [key: string]: MySqlTable | MySqlSchema | Relations | any;
11
+ }) => {
12
+ mysqlSchema: {
13
+ [k: string]: MySqlTable<import("drizzle-orm/mysql-core").TableConfig> | Relations<string, Record<string, import("drizzle-orm/_relations").Relation<string>>>;
14
+ };
15
+ mysqlTables: {
16
+ [k: string]: MySqlTable<import("drizzle-orm/mysql-core").TableConfig>;
17
+ };
18
+ };
19
+ export declare const seedMySql: (db: MySqlDatabase<any, any>, schema: {
20
+ [key: string]: MySqlTable | MySqlSchema | Relations | any;
21
+ }, options?: {
22
+ count?: number;
23
+ seed?: number;
24
+ version?: number;
25
+ }, refinements?: RefinementsType) => Promise<void>;
26
+ export declare const mapMySqlTable: (tableConfig: TableConfigT, dbToTsTableNamesMap: {
27
+ [key: string]: string;
28
+ }, dbToTsColumnNamesMap: {
29
+ [key: string]: string;
30
+ }) => Table;
@@ -0,0 +1,2 @@
1
+ import type { Column, Table } from '../types/tables.js';
2
+ export declare const selectGeneratorForMysqlColumn: (table: Table, col: Column) => import("../generators/Generators.js").GenerateDefault | import("../generators/Generators.js").GenerateIntPrimaryKey | import("../generators/Generators.js").GenerateNumber | import("../generators/Generators.js").GenerateInt | import("../generators/Generators.js").GenerateBoolean | import("../generators/Generators.js").GenerateDate | import("../generators/Generators.js").GenerateTime | import("../generators/Generators.js").GenerateTimestamp | import("../generators/Generators.js").GenerateDatetime | import("../generators/Generators.js").GenerateYear | import("../generators/Generators.js").GenerateJson | import("../generators/Generators.js").GenerateEmail | import("../generators/Generators.js").GenerateFirstName | import("../generators/Generators.js").GenerateEnum | import("../generators/Generators.js").GenerateString | import("../generators/Generators.js").GenerateUniqueString | undefined;
@@ -0,0 +1,2 @@
1
+ import type { Column, Table } from '../types/tables.js';
2
+ export declare const selectGeneratorForMysqlColumn: (table: Table, col: Column) => import("../generators/Generators.js").GenerateDefault | import("../generators/Generators.js").GenerateIntPrimaryKey | import("../generators/Generators.js").GenerateNumber | import("../generators/Generators.js").GenerateInt | import("../generators/Generators.js").GenerateBoolean | import("../generators/Generators.js").GenerateDate | import("../generators/Generators.js").GenerateTime | import("../generators/Generators.js").GenerateTimestamp | import("../generators/Generators.js").GenerateDatetime | import("../generators/Generators.js").GenerateYear | import("../generators/Generators.js").GenerateJson | import("../generators/Generators.js").GenerateEmail | import("../generators/Generators.js").GenerateFirstName | import("../generators/Generators.js").GenerateEnum | import("../generators/Generators.js").GenerateString | import("../generators/Generators.js").GenerateUniqueString | undefined;
@@ -0,0 +1,2 @@
1
+ import type { Column, Table } from '../types/tables.js';
2
+ export declare const selectGeneratorForMysqlColumn: (table: Table, col: Column) => import("../generators/Generators.js").GenerateDefault | import("../generators/Generators.js").GenerateIntPrimaryKey | import("../generators/Generators.js").GenerateNumber | import("../generators/Generators.js").GenerateInt | import("../generators/Generators.js").GenerateBoolean | import("../generators/Generators.js").GenerateDate | import("../generators/Generators.js").GenerateTime | import("../generators/Generators.js").GenerateTimestamp | import("../generators/Generators.js").GenerateDatetime | import("../generators/Generators.js").GenerateYear | import("../generators/Generators.js").GenerateJson | import("../generators/Generators.js").GenerateEmail | import("../generators/Generators.js").GenerateFirstName | import("../generators/Generators.js").GenerateEnum | import("../generators/Generators.js").GenerateString | import("../generators/Generators.js").GenerateUniqueString | undefined;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "drizzle-seed",
3
- "version": "0.3.2-f8a2f3c",
3
+ "version": "0.4.0-2d0c9fd",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "scripts": {
7
- "build": "tsx scripts/build.ts",
7
+ "build": "tsc -p ./tsconfig.json && tsx scripts/build.ts",
8
8
  "pack": "(cd dist && npm pack --pack-destination ..) && rm -f package.tgz && mv *.tgz package.tgz",
9
9
  "test": "vitest --config ./vitest.config.ts",
10
- "test:types": "cd type-tests && tsc",
10
+ "test:types": "cd type-tests && tsc -p ./../tsconfig.json",
11
11
  "generate-for-tests:pg": "drizzle-kit generate --config=./src/tests/pg/drizzle.config.ts",
12
12
  "generate-for-tests:mysql": "drizzle-kit generate --config=./src/tests/mysql/drizzle.config.ts",
13
13
  "generate-for-tests:sqlite": "drizzle-kit generate --config=./src/tests/sqlite/drizzle.config.ts",
@@ -65,11 +65,11 @@
65
65
  }
66
66
  },
67
67
  "peerDependencies": {
68
- "drizzle-orm": ">=0.36.4"
68
+ "drizzle-orm": ">=1.0.0-beta.1"
69
69
  },
70
70
  "peerDependenciesMeta": {
71
71
  "drizzle-orm": {
72
- "optional": true
72
+ "optional": false
73
73
  }
74
74
  },
75
75
  "devDependencies": {
@@ -77,26 +77,30 @@
77
77
  "@electric-sql/pglite": "^0.2.12",
78
78
  "@rollup/plugin-terser": "^0.4.4",
79
79
  "@rollup/plugin-typescript": "^11.1.6",
80
+ "@types/async-retry": "^1.4.8",
80
81
  "@types/better-sqlite3": "^7.6.11",
81
82
  "@types/dockerode": "^3.3.31",
83
+ "@types/mssql": "^9.1.4",
82
84
  "@types/node": "^22.5.4",
83
85
  "@types/pg": "^8.11.6",
84
86
  "@types/uuid": "^10.0.0",
87
+ "async-retry": "^1.3.3",
85
88
  "better-sqlite3": "^11.1.2",
86
89
  "cpy": "^11.1.0",
87
- "dockerode": "^4.0.2",
90
+ "dockerode": "^4.0.6",
88
91
  "dotenv": "^16.4.5",
89
92
  "drizzle-kit": "workspace:./drizzle-kit/dist",
90
93
  "drizzle-orm": "workspace:./drizzle-orm/dist",
91
94
  "get-port": "^7.1.0",
92
- "mysql2": "^3.3.3",
95
+ "mssql": "^11.0.1",
96
+ "mysql2": "^3.14.1",
93
97
  "pg": "^8.12.0",
94
98
  "resolve-tspaths": "^0.8.19",
95
- "rollup": "^4.21.2",
99
+ "rollup": "^3.29.5",
96
100
  "tslib": "^2.7.0",
97
101
  "tsx": "^4.19.0",
98
102
  "uuid": "^10.0.0",
99
- "vitest": "^2.0.5",
103
+ "vitest": "^3.1.3",
100
104
  "zx": "^8.1.5"
101
105
  },
102
106
  "dependencies": {
@@ -0,0 +1,30 @@
1
+ import { Relations } from 'drizzle-orm/_relations';
2
+ import type { PgDatabase, PgSchema } from 'drizzle-orm/pg-core';
3
+ import { PgTable } from 'drizzle-orm/pg-core';
4
+ import type { RefinementsType } from '../types/seedService.js';
5
+ import type { Table, TableConfigT } from '../types/tables.js';
6
+ export declare const resetPostgres: (db: PgDatabase<any, any>, pgTables: {
7
+ [key: string]: PgTable;
8
+ }) => Promise<void>;
9
+ export declare const filterPgSchema: (schema: {
10
+ [key: string]: PgTable | PgSchema | Relations | any;
11
+ }) => {
12
+ pgSchema: {
13
+ [k: string]: PgTable<import("drizzle-orm/pg-core").TableConfig> | Relations<string, Record<string, import("drizzle-orm/_relations").Relation<string>>>;
14
+ };
15
+ pgTables: {
16
+ [k: string]: PgTable<import("drizzle-orm/pg-core").TableConfig>;
17
+ };
18
+ };
19
+ export declare const seedPostgres: (db: PgDatabase<any, any>, schema: {
20
+ [key: string]: PgTable | PgSchema | Relations | any;
21
+ }, options?: {
22
+ count?: number;
23
+ seed?: number;
24
+ version?: number;
25
+ }, refinements?: RefinementsType) => Promise<void>;
26
+ export declare const mapPgTable: (tableConfig: TableConfigT, dbToTsTableNamesMap: {
27
+ [key: string]: string;
28
+ }, dbToTsColumnNamesMap: {
29
+ [key: string]: string;
30
+ }) => Table;
@@ -0,0 +1,30 @@
1
+ import { Relations } from 'drizzle-orm/_relations';
2
+ import type { PgDatabase, PgSchema } from 'drizzle-orm/pg-core';
3
+ import { PgTable } from 'drizzle-orm/pg-core';
4
+ import type { RefinementsType } from '../types/seedService.js';
5
+ import type { Table, TableConfigT } from '../types/tables.js';
6
+ export declare const resetPostgres: (db: PgDatabase<any, any>, pgTables: {
7
+ [key: string]: PgTable;
8
+ }) => Promise<void>;
9
+ export declare const filterPgSchema: (schema: {
10
+ [key: string]: PgTable | PgSchema | Relations | any;
11
+ }) => {
12
+ pgSchema: {
13
+ [k: string]: PgTable<import("drizzle-orm/pg-core").TableConfig> | Relations<string, Record<string, import("drizzle-orm/_relations").Relation<string>>>;
14
+ };
15
+ pgTables: {
16
+ [k: string]: PgTable<import("drizzle-orm/pg-core").TableConfig>;
17
+ };
18
+ };
19
+ export declare const seedPostgres: (db: PgDatabase<any, any>, schema: {
20
+ [key: string]: PgTable | PgSchema | Relations | any;
21
+ }, options?: {
22
+ count?: number;
23
+ seed?: number;
24
+ version?: number;
25
+ }, refinements?: RefinementsType) => Promise<void>;
26
+ export declare const mapPgTable: (tableConfig: TableConfigT, dbToTsTableNamesMap: {
27
+ [key: string]: string;
28
+ }, dbToTsColumnNamesMap: {
29
+ [key: string]: string;
30
+ }) => Table;
@@ -0,0 +1,30 @@
1
+ import { Relations } from 'drizzle-orm/_relations';
2
+ import type { PgDatabase, PgSchema } from 'drizzle-orm/pg-core';
3
+ import { PgTable } from 'drizzle-orm/pg-core';
4
+ import type { RefinementsType } from '../types/seedService.js';
5
+ import type { Table, TableConfigT } from '../types/tables.js';
6
+ export declare const resetPostgres: (db: PgDatabase<any, any>, pgTables: {
7
+ [key: string]: PgTable;
8
+ }) => Promise<void>;
9
+ export declare const filterPgSchema: (schema: {
10
+ [key: string]: PgTable | PgSchema | Relations | any;
11
+ }) => {
12
+ pgSchema: {
13
+ [k: string]: PgTable<import("drizzle-orm/pg-core").TableConfig> | Relations<string, Record<string, import("drizzle-orm/_relations").Relation<string>>>;
14
+ };
15
+ pgTables: {
16
+ [k: string]: PgTable<import("drizzle-orm/pg-core").TableConfig>;
17
+ };
18
+ };
19
+ export declare const seedPostgres: (db: PgDatabase<any, any>, schema: {
20
+ [key: string]: PgTable | PgSchema | Relations | any;
21
+ }, options?: {
22
+ count?: number;
23
+ seed?: number;
24
+ version?: number;
25
+ }, refinements?: RefinementsType) => Promise<void>;
26
+ export declare const mapPgTable: (tableConfig: TableConfigT, dbToTsTableNamesMap: {
27
+ [key: string]: string;
28
+ }, dbToTsColumnNamesMap: {
29
+ [key: string]: string;
30
+ }) => Table;
@@ -0,0 +1,3 @@
1
+ import type { GenerateInterval } from '../generators/Generators.js';
2
+ import type { Column, Table } from '../types/tables.js';
3
+ export declare const selectGeneratorForPostgresColumn: (table: Table, col: Column) => import("../generators/Generators.js").GenerateArray | import("../generators/Generators.js").GenerateDefault | import("../generators/Generators.js").GenerateIntPrimaryKey | import("../generators/Generators.js").GenerateNumber | import("../generators/Generators.js").GenerateInt | import("../generators/Generators.js").GenerateBoolean | import("../generators/Generators.js").GenerateDate | import("../generators/Generators.js").GenerateTime | import("../generators/Generators.js").GenerateTimestamp | import("../generators/Generators.js").GenerateJson | import("../generators/Generators.js").GenerateEmail | import("../generators/Generators.js").GenerateFirstName | import("../generators/Generators.js").GenerateEnum | GenerateInterval | import("../generators/Generators.js").GenerateString | import("../generators/Generators.js").GenerateUniqueString | import("../generators/Generators.js").GenerateUUID | import("../generators/Generators.js").GeneratePoint | import("../generators/Generators.js").GenerateLine | import("../generators/Generators.js").GenerateBitString | import("../generators/Generators.js").GenerateInet | import("../generators/Generators.js").GenerateGeometry | import("../generators/Generators.js").GenerateVector | undefined;
@@ -0,0 +1,3 @@
1
+ import type { GenerateInterval } from '../generators/Generators.js';
2
+ import type { Column, Table } from '../types/tables.js';
3
+ export declare const selectGeneratorForPostgresColumn: (table: Table, col: Column) => import("../generators/Generators.js").GenerateArray | import("../generators/Generators.js").GenerateDefault | import("../generators/Generators.js").GenerateIntPrimaryKey | import("../generators/Generators.js").GenerateNumber | import("../generators/Generators.js").GenerateInt | import("../generators/Generators.js").GenerateBoolean | import("../generators/Generators.js").GenerateDate | import("../generators/Generators.js").GenerateTime | import("../generators/Generators.js").GenerateTimestamp | import("../generators/Generators.js").GenerateJson | import("../generators/Generators.js").GenerateEmail | import("../generators/Generators.js").GenerateFirstName | import("../generators/Generators.js").GenerateEnum | GenerateInterval | import("../generators/Generators.js").GenerateString | import("../generators/Generators.js").GenerateUniqueString | import("../generators/Generators.js").GenerateUUID | import("../generators/Generators.js").GeneratePoint | import("../generators/Generators.js").GenerateLine | import("../generators/Generators.js").GenerateBitString | import("../generators/Generators.js").GenerateInet | import("../generators/Generators.js").GenerateGeometry | import("../generators/Generators.js").GenerateVector | undefined;
@@ -0,0 +1,3 @@
1
+ import type { GenerateInterval } from '../generators/Generators.js';
2
+ import type { Column, Table } from '../types/tables.js';
3
+ export declare const selectGeneratorForPostgresColumn: (table: Table, col: Column) => import("../generators/Generators.js").GenerateArray | import("../generators/Generators.js").GenerateDefault | import("../generators/Generators.js").GenerateIntPrimaryKey | import("../generators/Generators.js").GenerateNumber | import("../generators/Generators.js").GenerateInt | import("../generators/Generators.js").GenerateBoolean | import("../generators/Generators.js").GenerateDate | import("../generators/Generators.js").GenerateTime | import("../generators/Generators.js").GenerateTimestamp | import("../generators/Generators.js").GenerateJson | import("../generators/Generators.js").GenerateEmail | import("../generators/Generators.js").GenerateFirstName | import("../generators/Generators.js").GenerateEnum | GenerateInterval | import("../generators/Generators.js").GenerateString | import("../generators/Generators.js").GenerateUniqueString | import("../generators/Generators.js").GenerateUUID | import("../generators/Generators.js").GeneratePoint | import("../generators/Generators.js").GenerateLine | import("../generators/Generators.js").GenerateBitString | import("../generators/Generators.js").GenerateInet | import("../generators/Generators.js").GenerateGeometry | import("../generators/Generators.js").GenerateVector | undefined;
@@ -0,0 +1,30 @@
1
+ import { Relations } from 'drizzle-orm/_relations';
2
+ import type { SingleStoreDatabase, SingleStoreSchema } from 'drizzle-orm/singlestore-core';
3
+ import { SingleStoreTable } from 'drizzle-orm/singlestore-core';
4
+ import type { RefinementsType } from '../types/seedService.js';
5
+ import type { Table, TableConfigT } from '../types/tables.js';
6
+ export declare const resetSingleStore: (db: SingleStoreDatabase<any, any>, schema: {
7
+ [key: string]: SingleStoreTable;
8
+ }) => Promise<void>;
9
+ export declare const filterSingleStoreTables: (schema: {
10
+ [key: string]: SingleStoreTable | SingleStoreSchema | Relations | any;
11
+ }) => {
12
+ singleStoreSchema: {
13
+ [k: string]: SingleStoreTable<import("drizzle-orm/singlestore-core").TableConfig> | Relations<string, Record<string, import("drizzle-orm/_relations").Relation<string>>>;
14
+ };
15
+ singleStoreTables: {
16
+ [k: string]: SingleStoreTable<import("drizzle-orm/singlestore-core").TableConfig>;
17
+ };
18
+ };
19
+ export declare const seedSingleStore: (db: SingleStoreDatabase<any, any>, schema: {
20
+ [key: string]: SingleStoreTable | SingleStoreSchema | Relations | any;
21
+ }, options?: {
22
+ count?: number;
23
+ seed?: number;
24
+ version?: number;
25
+ }, refinements?: RefinementsType) => Promise<void>;
26
+ export declare const mapSingleStoreTable: (tableConfig: TableConfigT, dbToTsTableNamesMap: {
27
+ [key: string]: string;
28
+ }, dbToTsColumnNamesMap: {
29
+ [key: string]: string;
30
+ }) => Table;
@@ -0,0 +1,30 @@
1
+ import { Relations } from 'drizzle-orm/_relations';
2
+ import type { SingleStoreDatabase, SingleStoreSchema } from 'drizzle-orm/singlestore-core';
3
+ import { SingleStoreTable } from 'drizzle-orm/singlestore-core';
4
+ import type { RefinementsType } from '../types/seedService.js';
5
+ import type { Table, TableConfigT } from '../types/tables.js';
6
+ export declare const resetSingleStore: (db: SingleStoreDatabase<any, any>, schema: {
7
+ [key: string]: SingleStoreTable;
8
+ }) => Promise<void>;
9
+ export declare const filterSingleStoreTables: (schema: {
10
+ [key: string]: SingleStoreTable | SingleStoreSchema | Relations | any;
11
+ }) => {
12
+ singleStoreSchema: {
13
+ [k: string]: SingleStoreTable<import("drizzle-orm/singlestore-core").TableConfig> | Relations<string, Record<string, import("drizzle-orm/_relations").Relation<string>>>;
14
+ };
15
+ singleStoreTables: {
16
+ [k: string]: SingleStoreTable<import("drizzle-orm/singlestore-core").TableConfig>;
17
+ };
18
+ };
19
+ export declare const seedSingleStore: (db: SingleStoreDatabase<any, any>, schema: {
20
+ [key: string]: SingleStoreTable | SingleStoreSchema | Relations | any;
21
+ }, options?: {
22
+ count?: number;
23
+ seed?: number;
24
+ version?: number;
25
+ }, refinements?: RefinementsType) => Promise<void>;
26
+ export declare const mapSingleStoreTable: (tableConfig: TableConfigT, dbToTsTableNamesMap: {
27
+ [key: string]: string;
28
+ }, dbToTsColumnNamesMap: {
29
+ [key: string]: string;
30
+ }) => Table;
@@ -0,0 +1,30 @@
1
+ import { Relations } from 'drizzle-orm/_relations';
2
+ import type { SingleStoreDatabase, SingleStoreSchema } from 'drizzle-orm/singlestore-core';
3
+ import { SingleStoreTable } from 'drizzle-orm/singlestore-core';
4
+ import type { RefinementsType } from '../types/seedService.js';
5
+ import type { Table, TableConfigT } from '../types/tables.js';
6
+ export declare const resetSingleStore: (db: SingleStoreDatabase<any, any>, schema: {
7
+ [key: string]: SingleStoreTable;
8
+ }) => Promise<void>;
9
+ export declare const filterSingleStoreTables: (schema: {
10
+ [key: string]: SingleStoreTable | SingleStoreSchema | Relations | any;
11
+ }) => {
12
+ singleStoreSchema: {
13
+ [k: string]: SingleStoreTable<import("drizzle-orm/singlestore-core").TableConfig> | Relations<string, Record<string, import("drizzle-orm/_relations").Relation<string>>>;
14
+ };
15
+ singleStoreTables: {
16
+ [k: string]: SingleStoreTable<import("drizzle-orm/singlestore-core").TableConfig>;
17
+ };
18
+ };
19
+ export declare const seedSingleStore: (db: SingleStoreDatabase<any, any>, schema: {
20
+ [key: string]: SingleStoreTable | SingleStoreSchema | Relations | any;
21
+ }, options?: {
22
+ count?: number;
23
+ seed?: number;
24
+ version?: number;
25
+ }, refinements?: RefinementsType) => Promise<void>;
26
+ export declare const mapSingleStoreTable: (tableConfig: TableConfigT, dbToTsTableNamesMap: {
27
+ [key: string]: string;
28
+ }, dbToTsColumnNamesMap: {
29
+ [key: string]: string;
30
+ }) => Table;
@@ -0,0 +1,2 @@
1
+ import type { Column, Table } from '../types/tables.js';
2
+ export declare const selectGeneratorForSingleStoreColumn: (table: Table, col: Column) => import("../generators/Generators.js").GenerateDefault | import("../generators/Generators.js").GenerateIntPrimaryKey | import("../generators/Generators.js").GenerateNumber | import("../generators/Generators.js").GenerateInt | import("../generators/Generators.js").GenerateBoolean | import("../generators/Generators.js").GenerateDate | import("../generators/Generators.js").GenerateTime | import("../generators/Generators.js").GenerateTimestamp | import("../generators/Generators.js").GenerateDatetime | import("../generators/Generators.js").GenerateYear | import("../generators/Generators.js").GenerateJson | import("../generators/Generators.js").GenerateEmail | import("../generators/Generators.js").GenerateFirstName | import("../generators/Generators.js").GenerateEnum | import("../generators/Generators.js").GenerateString | import("../generators/Generators.js").GenerateUniqueString | import("../generators/Generators.js").GenerateVector | undefined;
@@ -0,0 +1,2 @@
1
+ import type { Column, Table } from '../types/tables.js';
2
+ export declare const selectGeneratorForSingleStoreColumn: (table: Table, col: Column) => import("../generators/Generators.js").GenerateDefault | import("../generators/Generators.js").GenerateIntPrimaryKey | import("../generators/Generators.js").GenerateNumber | import("../generators/Generators.js").GenerateInt | import("../generators/Generators.js").GenerateBoolean | import("../generators/Generators.js").GenerateDate | import("../generators/Generators.js").GenerateTime | import("../generators/Generators.js").GenerateTimestamp | import("../generators/Generators.js").GenerateDatetime | import("../generators/Generators.js").GenerateYear | import("../generators/Generators.js").GenerateJson | import("../generators/Generators.js").GenerateEmail | import("../generators/Generators.js").GenerateFirstName | import("../generators/Generators.js").GenerateEnum | import("../generators/Generators.js").GenerateString | import("../generators/Generators.js").GenerateUniqueString | import("../generators/Generators.js").GenerateVector | undefined;
@@ -0,0 +1,2 @@
1
+ import type { Column, Table } from '../types/tables.js';
2
+ export declare const selectGeneratorForSingleStoreColumn: (table: Table, col: Column) => import("../generators/Generators.js").GenerateDefault | import("../generators/Generators.js").GenerateIntPrimaryKey | import("../generators/Generators.js").GenerateNumber | import("../generators/Generators.js").GenerateInt | import("../generators/Generators.js").GenerateBoolean | import("../generators/Generators.js").GenerateDate | import("../generators/Generators.js").GenerateTime | import("../generators/Generators.js").GenerateTimestamp | import("../generators/Generators.js").GenerateDatetime | import("../generators/Generators.js").GenerateYear | import("../generators/Generators.js").GenerateJson | import("../generators/Generators.js").GenerateEmail | import("../generators/Generators.js").GenerateFirstName | import("../generators/Generators.js").GenerateEnum | import("../generators/Generators.js").GenerateString | import("../generators/Generators.js").GenerateUniqueString | import("../generators/Generators.js").GenerateVector | undefined;
@@ -0,0 +1,30 @@
1
+ import { Relations } from 'drizzle-orm/_relations';
2
+ import type { BaseSQLiteDatabase } from 'drizzle-orm/sqlite-core';
3
+ import { SQLiteTable } from 'drizzle-orm/sqlite-core';
4
+ import type { RefinementsType } from '../types/seedService.js';
5
+ import type { Table, TableConfigT } from '../types/tables.js';
6
+ export declare const resetSqlite: (db: BaseSQLiteDatabase<any, any>, schema: {
7
+ [key: string]: SQLiteTable;
8
+ }) => Promise<void>;
9
+ export declare const filterSqliteTables: (schema: {
10
+ [key: string]: SQLiteTable | Relations | any;
11
+ }) => {
12
+ sqliteSchema: {
13
+ [k: string]: SQLiteTable<import("drizzle-orm/sqlite-core").TableConfig> | Relations<string, Record<string, import("drizzle-orm/_relations").Relation<string>>>;
14
+ };
15
+ sqliteTables: {
16
+ [k: string]: SQLiteTable<import("drizzle-orm/sqlite-core").TableConfig>;
17
+ };
18
+ };
19
+ export declare const seedSqlite: (db: BaseSQLiteDatabase<any, any>, schema: {
20
+ [key: string]: SQLiteTable | Relations | any;
21
+ }, options?: {
22
+ count?: number;
23
+ seed?: number;
24
+ version?: number;
25
+ }, refinements?: RefinementsType) => Promise<void>;
26
+ export declare const mapSqliteTable: (tableConfig: TableConfigT, dbToTsTableNamesMap: {
27
+ [key: string]: string;
28
+ }, dbToTsColumnNamesMap: {
29
+ [key: string]: string;
30
+ }) => Table;
@@ -0,0 +1,30 @@
1
+ import { Relations } from 'drizzle-orm/_relations';
2
+ import type { BaseSQLiteDatabase } from 'drizzle-orm/sqlite-core';
3
+ import { SQLiteTable } from 'drizzle-orm/sqlite-core';
4
+ import type { RefinementsType } from '../types/seedService.js';
5
+ import type { Table, TableConfigT } from '../types/tables.js';
6
+ export declare const resetSqlite: (db: BaseSQLiteDatabase<any, any>, schema: {
7
+ [key: string]: SQLiteTable;
8
+ }) => Promise<void>;
9
+ export declare const filterSqliteTables: (schema: {
10
+ [key: string]: SQLiteTable | Relations | any;
11
+ }) => {
12
+ sqliteSchema: {
13
+ [k: string]: SQLiteTable<import("drizzle-orm/sqlite-core").TableConfig> | Relations<string, Record<string, import("drizzle-orm/_relations").Relation<string>>>;
14
+ };
15
+ sqliteTables: {
16
+ [k: string]: SQLiteTable<import("drizzle-orm/sqlite-core").TableConfig>;
17
+ };
18
+ };
19
+ export declare const seedSqlite: (db: BaseSQLiteDatabase<any, any>, schema: {
20
+ [key: string]: SQLiteTable | Relations | any;
21
+ }, options?: {
22
+ count?: number;
23
+ seed?: number;
24
+ version?: number;
25
+ }, refinements?: RefinementsType) => Promise<void>;
26
+ export declare const mapSqliteTable: (tableConfig: TableConfigT, dbToTsTableNamesMap: {
27
+ [key: string]: string;
28
+ }, dbToTsColumnNamesMap: {
29
+ [key: string]: string;
30
+ }) => Table;
@@ -0,0 +1,30 @@
1
+ import { Relations } from 'drizzle-orm/_relations';
2
+ import type { BaseSQLiteDatabase } from 'drizzle-orm/sqlite-core';
3
+ import { SQLiteTable } from 'drizzle-orm/sqlite-core';
4
+ import type { RefinementsType } from '../types/seedService.js';
5
+ import type { Table, TableConfigT } from '../types/tables.js';
6
+ export declare const resetSqlite: (db: BaseSQLiteDatabase<any, any>, schema: {
7
+ [key: string]: SQLiteTable;
8
+ }) => Promise<void>;
9
+ export declare const filterSqliteTables: (schema: {
10
+ [key: string]: SQLiteTable | Relations | any;
11
+ }) => {
12
+ sqliteSchema: {
13
+ [k: string]: SQLiteTable<import("drizzle-orm/sqlite-core").TableConfig> | Relations<string, Record<string, import("drizzle-orm/_relations").Relation<string>>>;
14
+ };
15
+ sqliteTables: {
16
+ [k: string]: SQLiteTable<import("drizzle-orm/sqlite-core").TableConfig>;
17
+ };
18
+ };
19
+ export declare const seedSqlite: (db: BaseSQLiteDatabase<any, any>, schema: {
20
+ [key: string]: SQLiteTable | Relations | any;
21
+ }, options?: {
22
+ count?: number;
23
+ seed?: number;
24
+ version?: number;
25
+ }, refinements?: RefinementsType) => Promise<void>;
26
+ export declare const mapSqliteTable: (tableConfig: TableConfigT, dbToTsTableNamesMap: {
27
+ [key: string]: string;
28
+ }, dbToTsColumnNamesMap: {
29
+ [key: string]: string;
30
+ }) => Table;
@@ -0,0 +1,2 @@
1
+ import type { Column, Table } from '../types/tables.js';
2
+ export declare const selectGeneratorForSqlite: (table: Table, col: Column) => import("../generators/Generators.js").GenerateDefault | import("../generators/Generators.js").GenerateIntPrimaryKey | import("../generators/Generators.js").GenerateNumber | import("../generators/Generators.js").GenerateInt | import("../generators/Generators.js").GenerateBoolean | import("../generators/Generators.js").GenerateTimestamp | import("../generators/Generators.js").GenerateJson | import("../generators/Generators.js").GenerateEmail | import("../generators/Generators.js").GenerateFirstName | import("../generators/Generators.js").GenerateString | import("../generators/Generators.js").GenerateUniqueString | undefined;
@@ -0,0 +1,2 @@
1
+ import type { Column, Table } from '../types/tables.js';
2
+ export declare const selectGeneratorForSqlite: (table: Table, col: Column) => import("../generators/Generators.js").GenerateDefault | import("../generators/Generators.js").GenerateIntPrimaryKey | import("../generators/Generators.js").GenerateNumber | import("../generators/Generators.js").GenerateInt | import("../generators/Generators.js").GenerateBoolean | import("../generators/Generators.js").GenerateTimestamp | import("../generators/Generators.js").GenerateJson | import("../generators/Generators.js").GenerateEmail | import("../generators/Generators.js").GenerateFirstName | import("../generators/Generators.js").GenerateString | import("../generators/Generators.js").GenerateUniqueString | undefined;
@@ -0,0 +1,2 @@
1
+ import type { Column, Table } from '../types/tables.js';
2
+ export declare const selectGeneratorForSqlite: (table: Table, col: Column) => import("../generators/Generators.js").GenerateDefault | import("../generators/Generators.js").GenerateIntPrimaryKey | import("../generators/Generators.js").GenerateNumber | import("../generators/Generators.js").GenerateInt | import("../generators/Generators.js").GenerateBoolean | import("../generators/Generators.js").GenerateTimestamp | import("../generators/Generators.js").GenerateJson | import("../generators/Generators.js").GenerateEmail | import("../generators/Generators.js").GenerateFirstName | import("../generators/Generators.js").GenerateString | import("../generators/Generators.js").GenerateUniqueString | undefined;