drizzle-seed 0.3.2-b5a9650 → 0.4.0-08bb2d5

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 (74) hide show
  1. package/{services/SeedService.d.cts → SeedService.d.cts} +18 -35
  2. package/{services/SeedService.d.mts → SeedService.d.mts} +18 -35
  3. package/{services/SeedService.d.ts → SeedService.d.ts} +18 -35
  4. package/cockroach-core/index.d.cts +24 -0
  5. package/cockroach-core/index.d.mts +24 -0
  6. package/cockroach-core/index.d.ts +24 -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/{services → generators}/GeneratorFuncs.d.cts +311 -35
  11. package/{services → generators}/GeneratorFuncs.d.mts +311 -35
  12. package/{services → generators}/GeneratorFuncs.d.ts +311 -35
  13. package/{services → generators}/Generators.d.cts +149 -23
  14. package/{services → generators}/Generators.d.mts +149 -23
  15. package/{services → generators}/Generators.d.ts +149 -23
  16. package/generators/utils.d.cts +38 -0
  17. package/generators/utils.d.mts +38 -0
  18. package/generators/utils.d.ts +38 -0
  19. package/{services → generators}/versioning/v2.d.cts +1 -1
  20. package/{services → generators}/versioning/v2.d.mts +1 -1
  21. package/{services → generators}/versioning/v2.d.ts +1 -1
  22. package/index.cjs +2800 -1060
  23. package/index.cjs.map +1 -1
  24. package/index.d.cts +136 -81
  25. package/index.d.mts +136 -81
  26. package/index.d.ts +136 -81
  27. package/index.mjs +2813 -1072
  28. package/index.mjs.map +1 -1
  29. package/mssql-core/index.d.cts +24 -0
  30. package/mssql-core/index.d.mts +24 -0
  31. package/mssql-core/index.d.ts +24 -0
  32. package/mssql-core/selectGensForColumn.d.cts +2 -0
  33. package/mssql-core/selectGensForColumn.d.mts +2 -0
  34. package/mssql-core/selectGensForColumn.d.ts +2 -0
  35. package/mysql-core/index.d.cts +24 -0
  36. package/mysql-core/index.d.mts +24 -0
  37. package/mysql-core/index.d.ts +24 -0
  38. package/mysql-core/selectGensForColumn.d.cts +2 -0
  39. package/mysql-core/selectGensForColumn.d.mts +2 -0
  40. package/mysql-core/selectGensForColumn.d.ts +2 -0
  41. package/package.json +6 -2
  42. package/pg-core/index.d.cts +24 -0
  43. package/pg-core/index.d.mts +24 -0
  44. package/pg-core/index.d.ts +24 -0
  45. package/pg-core/selectGensForColumn.d.cts +3 -0
  46. package/pg-core/selectGensForColumn.d.mts +3 -0
  47. package/pg-core/selectGensForColumn.d.ts +3 -0
  48. package/singlestore-core/index.d.cts +24 -0
  49. package/singlestore-core/index.d.mts +24 -0
  50. package/singlestore-core/index.d.ts +24 -0
  51. package/singlestore-core/selectGensForColumn.d.cts +2 -0
  52. package/singlestore-core/selectGensForColumn.d.mts +2 -0
  53. package/singlestore-core/selectGensForColumn.d.ts +2 -0
  54. package/sqlite-core/index.d.cts +24 -0
  55. package/sqlite-core/index.d.mts +24 -0
  56. package/sqlite-core/index.d.ts +24 -0
  57. package/sqlite-core/selectGensForColumn.d.cts +2 -0
  58. package/sqlite-core/selectGensForColumn.d.mts +2 -0
  59. package/sqlite-core/selectGensForColumn.d.ts +2 -0
  60. package/types/seedService.d.cts +12 -2
  61. package/types/seedService.d.mts +12 -2
  62. package/types/seedService.d.ts +12 -2
  63. package/types/tables.d.cts +2 -0
  64. package/types/tables.d.mts +2 -0
  65. package/types/tables.d.ts +2 -0
  66. package/utils.d.cts +4 -0
  67. package/utils.d.mts +4 -0
  68. package/utils.d.ts +4 -0
  69. package/services/utils.d.cts +0 -27
  70. package/services/utils.d.mts +0 -27
  71. package/services/utils.d.ts +0 -27
  72. /package/{services → generators}/apiVersion.d.cts +0 -0
  73. /package/{services → generators}/apiVersion.d.mts +0 -0
  74. /package/{services → generators}/apiVersion.d.ts +0 -0
@@ -0,0 +1,24 @@
1
+ import { Relations } from 'drizzle-orm';
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").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';
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").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';
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").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,24 @@
1
+ import { Relations } from 'drizzle-orm';
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
+ export declare const resetMySql: (db: MySqlDatabase<any, any>, schema: {
6
+ [key: string]: MySqlTable;
7
+ }) => Promise<void>;
8
+ export declare const filterMysqlTables: (schema: {
9
+ [key: string]: MySqlTable | MySqlSchema | Relations | any;
10
+ }) => {
11
+ mysqlSchema: {
12
+ [k: string]: MySqlTable<import("drizzle-orm/mysql-core").TableConfig> | Relations<string, Record<string, import("drizzle-orm").Relation<string>>>;
13
+ };
14
+ mysqlTables: {
15
+ [k: string]: MySqlTable<import("drizzle-orm/mysql-core").TableConfig>;
16
+ };
17
+ };
18
+ export declare const seedMySql: (db: MySqlDatabase<any, any>, schema: {
19
+ [key: string]: MySqlTable | MySqlSchema | 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';
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
+ export declare const resetMySql: (db: MySqlDatabase<any, any>, schema: {
6
+ [key: string]: MySqlTable;
7
+ }) => Promise<void>;
8
+ export declare const filterMysqlTables: (schema: {
9
+ [key: string]: MySqlTable | MySqlSchema | Relations | any;
10
+ }) => {
11
+ mysqlSchema: {
12
+ [k: string]: MySqlTable<import("drizzle-orm/mysql-core").TableConfig> | Relations<string, Record<string, import("drizzle-orm").Relation<string>>>;
13
+ };
14
+ mysqlTables: {
15
+ [k: string]: MySqlTable<import("drizzle-orm/mysql-core").TableConfig>;
16
+ };
17
+ };
18
+ export declare const seedMySql: (db: MySqlDatabase<any, any>, schema: {
19
+ [key: string]: MySqlTable | MySqlSchema | 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';
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
+ export declare const resetMySql: (db: MySqlDatabase<any, any>, schema: {
6
+ [key: string]: MySqlTable;
7
+ }) => Promise<void>;
8
+ export declare const filterMysqlTables: (schema: {
9
+ [key: string]: MySqlTable | MySqlSchema | Relations | any;
10
+ }) => {
11
+ mysqlSchema: {
12
+ [k: string]: MySqlTable<import("drizzle-orm/mysql-core").TableConfig> | Relations<string, Record<string, import("drizzle-orm").Relation<string>>>;
13
+ };
14
+ mysqlTables: {
15
+ [k: string]: MySqlTable<import("drizzle-orm/mysql-core").TableConfig>;
16
+ };
17
+ };
18
+ export declare const seedMySql: (db: MySqlDatabase<any, any>, schema: {
19
+ [key: string]: MySqlTable | MySqlSchema | 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 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,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-seed",
3
- "version": "0.3.2-b5a9650",
3
+ "version": "0.4.0-08bb2d5",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -69,7 +69,7 @@
69
69
  },
70
70
  "peerDependenciesMeta": {
71
71
  "drizzle-orm": {
72
- "optional": true
72
+ "optional": false
73
73
  }
74
74
  },
75
75
  "devDependencies": {
@@ -77,11 +77,14 @@
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
90
  "dockerode": "^4.0.6",
@@ -89,6 +92,7 @@
89
92
  "drizzle-kit": "workspace:./drizzle-kit/dist",
90
93
  "drizzle-orm": "workspace:./drizzle-orm/dist",
91
94
  "get-port": "^7.1.0",
95
+ "mssql": "^11.0.1",
92
96
  "mysql2": "^3.14.1",
93
97
  "pg": "^8.12.0",
94
98
  "resolve-tspaths": "^0.8.19",
@@ -0,0 +1,24 @@
1
+ import { Relations } from 'drizzle-orm';
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
+ export declare const resetPostgres: (db: PgDatabase<any, any>, pgTables: {
6
+ [key: string]: PgTable;
7
+ }) => Promise<void>;
8
+ export declare const filterPgSchema: (schema: {
9
+ [key: string]: PgTable | PgSchema | Relations | any;
10
+ }) => {
11
+ pgSchema: {
12
+ [k: string]: PgTable<import("drizzle-orm/pg-core").TableConfig> | Relations<string, Record<string, import("drizzle-orm").Relation<string>>>;
13
+ };
14
+ pgTables: {
15
+ [k: string]: PgTable<import("drizzle-orm/pg-core").TableConfig>;
16
+ };
17
+ };
18
+ export declare const seedPostgres: (db: PgDatabase<any, any>, schema: {
19
+ [key: string]: PgTable | PgSchema | 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';
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
+ export declare const resetPostgres: (db: PgDatabase<any, any>, pgTables: {
6
+ [key: string]: PgTable;
7
+ }) => Promise<void>;
8
+ export declare const filterPgSchema: (schema: {
9
+ [key: string]: PgTable | PgSchema | Relations | any;
10
+ }) => {
11
+ pgSchema: {
12
+ [k: string]: PgTable<import("drizzle-orm/pg-core").TableConfig> | Relations<string, Record<string, import("drizzle-orm").Relation<string>>>;
13
+ };
14
+ pgTables: {
15
+ [k: string]: PgTable<import("drizzle-orm/pg-core").TableConfig>;
16
+ };
17
+ };
18
+ export declare const seedPostgres: (db: PgDatabase<any, any>, schema: {
19
+ [key: string]: PgTable | PgSchema | 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';
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
+ export declare const resetPostgres: (db: PgDatabase<any, any>, pgTables: {
6
+ [key: string]: PgTable;
7
+ }) => Promise<void>;
8
+ export declare const filterPgSchema: (schema: {
9
+ [key: string]: PgTable | PgSchema | Relations | any;
10
+ }) => {
11
+ pgSchema: {
12
+ [k: string]: PgTable<import("drizzle-orm/pg-core").TableConfig> | Relations<string, Record<string, import("drizzle-orm").Relation<string>>>;
13
+ };
14
+ pgTables: {
15
+ [k: string]: PgTable<import("drizzle-orm/pg-core").TableConfig>;
16
+ };
17
+ };
18
+ export declare const seedPostgres: (db: PgDatabase<any, any>, schema: {
19
+ [key: string]: PgTable | PgSchema | Relations | any;
20
+ }, options?: {
21
+ count?: number;
22
+ seed?: number;
23
+ version?: number;
24
+ }, refinements?: RefinementsType) => Promise<void>;
@@ -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,24 @@
1
+ import { Relations } from 'drizzle-orm';
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
+ export declare const resetSingleStore: (db: SingleStoreDatabase<any, any>, schema: {
6
+ [key: string]: SingleStoreTable;
7
+ }) => Promise<void>;
8
+ export declare const filterSingleStoreTables: (schema: {
9
+ [key: string]: SingleStoreTable | SingleStoreSchema | Relations | any;
10
+ }) => {
11
+ singleStoreSchema: {
12
+ [k: string]: SingleStoreTable<import("drizzle-orm/singlestore-core").TableConfig> | Relations<string, Record<string, import("drizzle-orm").Relation<string>>>;
13
+ };
14
+ singleStoreTables: {
15
+ [k: string]: SingleStoreTable<import("drizzle-orm/singlestore-core").TableConfig>;
16
+ };
17
+ };
18
+ export declare const seedSingleStore: (db: SingleStoreDatabase<any, any>, schema: {
19
+ [key: string]: SingleStoreTable | SingleStoreSchema | 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';
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
+ export declare const resetSingleStore: (db: SingleStoreDatabase<any, any>, schema: {
6
+ [key: string]: SingleStoreTable;
7
+ }) => Promise<void>;
8
+ export declare const filterSingleStoreTables: (schema: {
9
+ [key: string]: SingleStoreTable | SingleStoreSchema | Relations | any;
10
+ }) => {
11
+ singleStoreSchema: {
12
+ [k: string]: SingleStoreTable<import("drizzle-orm/singlestore-core").TableConfig> | Relations<string, Record<string, import("drizzle-orm").Relation<string>>>;
13
+ };
14
+ singleStoreTables: {
15
+ [k: string]: SingleStoreTable<import("drizzle-orm/singlestore-core").TableConfig>;
16
+ };
17
+ };
18
+ export declare const seedSingleStore: (db: SingleStoreDatabase<any, any>, schema: {
19
+ [key: string]: SingleStoreTable | SingleStoreSchema | 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';
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
+ export declare const resetSingleStore: (db: SingleStoreDatabase<any, any>, schema: {
6
+ [key: string]: SingleStoreTable;
7
+ }) => Promise<void>;
8
+ export declare const filterSingleStoreTables: (schema: {
9
+ [key: string]: SingleStoreTable | SingleStoreSchema | Relations | any;
10
+ }) => {
11
+ singleStoreSchema: {
12
+ [k: string]: SingleStoreTable<import("drizzle-orm/singlestore-core").TableConfig> | Relations<string, Record<string, import("drizzle-orm").Relation<string>>>;
13
+ };
14
+ singleStoreTables: {
15
+ [k: string]: SingleStoreTable<import("drizzle-orm/singlestore-core").TableConfig>;
16
+ };
17
+ };
18
+ export declare const seedSingleStore: (db: SingleStoreDatabase<any, any>, schema: {
19
+ [key: string]: SingleStoreTable | SingleStoreSchema | 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 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,24 @@
1
+ import { Relations } from 'drizzle-orm';
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
+ export declare const resetSqlite: (db: BaseSQLiteDatabase<any, any>, schema: {
6
+ [key: string]: SQLiteTable;
7
+ }) => Promise<void>;
8
+ export declare const filterSqliteTables: (schema: {
9
+ [key: string]: SQLiteTable | Relations | any;
10
+ }) => {
11
+ sqliteSchema: {
12
+ [k: string]: SQLiteTable<import("drizzle-orm/sqlite-core").TableConfig> | Relations<string, Record<string, import("drizzle-orm").Relation<string>>>;
13
+ };
14
+ sqliteTables: {
15
+ [k: string]: SQLiteTable<import("drizzle-orm/sqlite-core").TableConfig>;
16
+ };
17
+ };
18
+ export declare const seedSqlite: (db: BaseSQLiteDatabase<any, any>, schema: {
19
+ [key: string]: SQLiteTable | 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';
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
+ export declare const resetSqlite: (db: BaseSQLiteDatabase<any, any>, schema: {
6
+ [key: string]: SQLiteTable;
7
+ }) => Promise<void>;
8
+ export declare const filterSqliteTables: (schema: {
9
+ [key: string]: SQLiteTable | Relations | any;
10
+ }) => {
11
+ sqliteSchema: {
12
+ [k: string]: SQLiteTable<import("drizzle-orm/sqlite-core").TableConfig> | Relations<string, Record<string, import("drizzle-orm").Relation<string>>>;
13
+ };
14
+ sqliteTables: {
15
+ [k: string]: SQLiteTable<import("drizzle-orm/sqlite-core").TableConfig>;
16
+ };
17
+ };
18
+ export declare const seedSqlite: (db: BaseSQLiteDatabase<any, any>, schema: {
19
+ [key: string]: SQLiteTable | 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';
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
+ export declare const resetSqlite: (db: BaseSQLiteDatabase<any, any>, schema: {
6
+ [key: string]: SQLiteTable;
7
+ }) => Promise<void>;
8
+ export declare const filterSqliteTables: (schema: {
9
+ [key: string]: SQLiteTable | Relations | any;
10
+ }) => {
11
+ sqliteSchema: {
12
+ [k: string]: SQLiteTable<import("drizzle-orm/sqlite-core").TableConfig> | Relations<string, Record<string, import("drizzle-orm").Relation<string>>>;
13
+ };
14
+ sqliteTables: {
15
+ [k: string]: SQLiteTable<import("drizzle-orm/sqlite-core").TableConfig>;
16
+ };
17
+ };
18
+ export declare const seedSqlite: (db: BaseSQLiteDatabase<any, any>, schema: {
19
+ [key: string]: SQLiteTable | 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 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;
@@ -1,5 +1,14 @@
1
- import type { AbstractGenerator } from '../services/Generators.js';
1
+ import type { CockroachDatabase, CockroachTable } from 'drizzle-orm/cockroach-core';
2
+ import type { MsSqlDatabase, MsSqlTable } from 'drizzle-orm/mssql-core';
3
+ import type { MySqlDatabase, MySqlTable } from 'drizzle-orm/mysql-core';
4
+ import type { PgDatabase, PgTable } from 'drizzle-orm/pg-core';
5
+ import type { SingleStoreDatabase, SingleStoreTable } from 'drizzle-orm/singlestore-core';
6
+ import type { BaseSQLiteDatabase, SQLiteTable } from 'drizzle-orm/sqlite-core';
7
+ import type { AbstractGenerator } from '../generators/Generators.js';
2
8
  import type { Prettify } from './tables.js';
9
+ export type GeneratedValueType = number | bigint | string | Buffer | boolean | undefined;
10
+ export type DbType = PgDatabase<any, any> | MySqlDatabase<any, any> | BaseSQLiteDatabase<any, any> | MsSqlDatabase<any, any> | CockroachDatabase<any, any> | SingleStoreDatabase<any, any>;
11
+ export type TableType = PgTable | MySqlTable | SQLiteTable | MsSqlTable | CockroachTable | SingleStoreTable;
3
12
  export type TableGeneratorsType = {
4
13
  [columnName: string]: Prettify<{
5
14
  hasSelfRelation?: boolean | undefined;
@@ -14,6 +23,7 @@ export type GeneratePossibleGeneratorsColumnType = {
14
23
  notNull: boolean;
15
24
  primary: boolean;
16
25
  generatedIdentityType?: 'always' | 'byDefault' | undefined;
26
+ identity?: boolean;
17
27
  wasRefined: boolean;
18
28
  wasDefinedBefore: boolean;
19
29
  isCyclic: boolean;
@@ -37,7 +47,7 @@ export type RefinementsType = Prettify<{
37
47
  [tableName: string]: {
38
48
  count?: number;
39
49
  columns: {
40
- [columnName: string]: AbstractGenerator<{}> | false;
50
+ [columnName: string]: AbstractGenerator<{}>;
41
51
  };
42
52
  with?: {
43
53
  [tableName: string]: number | {
@@ -1,5 +1,14 @@
1
- import type { AbstractGenerator } from '../services/Generators.js';
1
+ import type { CockroachDatabase, CockroachTable } from 'drizzle-orm/cockroach-core';
2
+ import type { MsSqlDatabase, MsSqlTable } from 'drizzle-orm/mssql-core';
3
+ import type { MySqlDatabase, MySqlTable } from 'drizzle-orm/mysql-core';
4
+ import type { PgDatabase, PgTable } from 'drizzle-orm/pg-core';
5
+ import type { SingleStoreDatabase, SingleStoreTable } from 'drizzle-orm/singlestore-core';
6
+ import type { BaseSQLiteDatabase, SQLiteTable } from 'drizzle-orm/sqlite-core';
7
+ import type { AbstractGenerator } from '../generators/Generators.js';
2
8
  import type { Prettify } from './tables.js';
9
+ export type GeneratedValueType = number | bigint | string | Buffer | boolean | undefined;
10
+ export type DbType = PgDatabase<any, any> | MySqlDatabase<any, any> | BaseSQLiteDatabase<any, any> | MsSqlDatabase<any, any> | CockroachDatabase<any, any> | SingleStoreDatabase<any, any>;
11
+ export type TableType = PgTable | MySqlTable | SQLiteTable | MsSqlTable | CockroachTable | SingleStoreTable;
3
12
  export type TableGeneratorsType = {
4
13
  [columnName: string]: Prettify<{
5
14
  hasSelfRelation?: boolean | undefined;
@@ -14,6 +23,7 @@ export type GeneratePossibleGeneratorsColumnType = {
14
23
  notNull: boolean;
15
24
  primary: boolean;
16
25
  generatedIdentityType?: 'always' | 'byDefault' | undefined;
26
+ identity?: boolean;
17
27
  wasRefined: boolean;
18
28
  wasDefinedBefore: boolean;
19
29
  isCyclic: boolean;
@@ -37,7 +47,7 @@ export type RefinementsType = Prettify<{
37
47
  [tableName: string]: {
38
48
  count?: number;
39
49
  columns: {
40
- [columnName: string]: AbstractGenerator<{}> | false;
50
+ [columnName: string]: AbstractGenerator<{}>;
41
51
  };
42
52
  with?: {
43
53
  [tableName: string]: number | {
@@ -1,5 +1,14 @@
1
- import type { AbstractGenerator } from '../services/Generators.js';
1
+ import type { CockroachDatabase, CockroachTable } from 'drizzle-orm/cockroach-core';
2
+ import type { MsSqlDatabase, MsSqlTable } from 'drizzle-orm/mssql-core';
3
+ import type { MySqlDatabase, MySqlTable } from 'drizzle-orm/mysql-core';
4
+ import type { PgDatabase, PgTable } from 'drizzle-orm/pg-core';
5
+ import type { SingleStoreDatabase, SingleStoreTable } from 'drizzle-orm/singlestore-core';
6
+ import type { BaseSQLiteDatabase, SQLiteTable } from 'drizzle-orm/sqlite-core';
7
+ import type { AbstractGenerator } from '../generators/Generators.js';
2
8
  import type { Prettify } from './tables.js';
9
+ export type GeneratedValueType = number | bigint | string | Buffer | boolean | undefined;
10
+ export type DbType = PgDatabase<any, any> | MySqlDatabase<any, any> | BaseSQLiteDatabase<any, any> | MsSqlDatabase<any, any> | CockroachDatabase<any, any> | SingleStoreDatabase<any, any>;
11
+ export type TableType = PgTable | MySqlTable | SQLiteTable | MsSqlTable | CockroachTable | SingleStoreTable;
3
12
  export type TableGeneratorsType = {
4
13
  [columnName: string]: Prettify<{
5
14
  hasSelfRelation?: boolean | undefined;
@@ -14,6 +23,7 @@ export type GeneratePossibleGeneratorsColumnType = {
14
23
  notNull: boolean;
15
24
  primary: boolean;
16
25
  generatedIdentityType?: 'always' | 'byDefault' | undefined;
26
+ identity?: boolean;
17
27
  wasRefined: boolean;
18
28
  wasDefinedBefore: boolean;
19
29
  isCyclic: boolean;
@@ -37,7 +47,7 @@ export type RefinementsType = Prettify<{
37
47
  [tableName: string]: {
38
48
  count?: number;
39
49
  columns: {
40
- [columnName: string]: AbstractGenerator<{}> | false;
50
+ [columnName: string]: AbstractGenerator<{}>;
41
51
  };
42
52
  with?: {
43
53
  [tableName: string]: number | {