drizzle-seed 0.3.1-b06bbcd → 0.3.1
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/index.cjs +127 -104
- package/index.cjs.map +1 -1
- package/index.d.cts +8 -8
- package/index.d.mts +8 -8
- package/index.d.ts +8 -8
- package/index.mjs +122 -99
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/services/SeedService.d.cts +4 -4
- package/services/SeedService.d.mts +4 -4
- package/services/SeedService.d.ts +4 -4
package/package.json
CHANGED
|
@@ -88,7 +88,7 @@ export declare class SeedService {
|
|
|
88
88
|
};
|
|
89
89
|
generateTablesValues: (relations: (Relation & {
|
|
90
90
|
isCyclic: boolean;
|
|
91
|
-
})[], tablesGenerators: ReturnType<typeof this.generatePossibleGenerators>, db?: PgDatabase<any
|
|
91
|
+
})[], tablesGenerators: ReturnType<typeof this.generatePossibleGenerators>, db?: PgDatabase<any> | MySqlDatabase<any, any> | BaseSQLiteDatabase<any, any>, schema?: {
|
|
92
92
|
[key: string]: PgTable | MySqlTable | SQLiteTable;
|
|
93
93
|
}, options?: {
|
|
94
94
|
count?: number;
|
|
@@ -116,7 +116,7 @@ export declare class SeedService {
|
|
|
116
116
|
}[]>;
|
|
117
117
|
generateColumnsValuesByGenerators: ({ tableGenerators, db, schema, tableName, count, preserveData, insertDataInDb, updateDataInDb, uniqueNotNullColName, batchSize, }: {
|
|
118
118
|
tableGenerators: Prettify<TableGeneratorsType>;
|
|
119
|
-
db?: PgDatabase<any
|
|
119
|
+
db?: PgDatabase<any> | MySqlDatabase<any, any> | BaseSQLiteDatabase<any, any>;
|
|
120
120
|
schema?: {
|
|
121
121
|
[key: string]: PgTable | MySqlTable | SQLiteTable;
|
|
122
122
|
};
|
|
@@ -134,7 +134,7 @@ export declare class SeedService {
|
|
|
134
134
|
generatedValues: {
|
|
135
135
|
[columnName: string]: number | string | boolean | undefined;
|
|
136
136
|
}[];
|
|
137
|
-
db: PgDatabase<any, any
|
|
137
|
+
db: PgDatabase<any, any> | MySqlDatabase<any, any> | BaseSQLiteDatabase<any, any>;
|
|
138
138
|
schema: {
|
|
139
139
|
[key: string]: PgTable | MySqlTable | SQLiteTable;
|
|
140
140
|
};
|
|
@@ -145,7 +145,7 @@ export declare class SeedService {
|
|
|
145
145
|
generatedValues: {
|
|
146
146
|
[columnName: string]: number | string | boolean | undefined;
|
|
147
147
|
}[];
|
|
148
|
-
db: PgDatabase<any, any
|
|
148
|
+
db: PgDatabase<any, any> | MySqlDatabase<any, any> | BaseSQLiteDatabase<any, any>;
|
|
149
149
|
schema: {
|
|
150
150
|
[key: string]: PgTable | MySqlTable | SQLiteTable;
|
|
151
151
|
};
|
|
@@ -88,7 +88,7 @@ export declare class SeedService {
|
|
|
88
88
|
};
|
|
89
89
|
generateTablesValues: (relations: (Relation & {
|
|
90
90
|
isCyclic: boolean;
|
|
91
|
-
})[], tablesGenerators: ReturnType<typeof this.generatePossibleGenerators>, db?: PgDatabase<any
|
|
91
|
+
})[], tablesGenerators: ReturnType<typeof this.generatePossibleGenerators>, db?: PgDatabase<any> | MySqlDatabase<any, any> | BaseSQLiteDatabase<any, any>, schema?: {
|
|
92
92
|
[key: string]: PgTable | MySqlTable | SQLiteTable;
|
|
93
93
|
}, options?: {
|
|
94
94
|
count?: number;
|
|
@@ -116,7 +116,7 @@ export declare class SeedService {
|
|
|
116
116
|
}[]>;
|
|
117
117
|
generateColumnsValuesByGenerators: ({ tableGenerators, db, schema, tableName, count, preserveData, insertDataInDb, updateDataInDb, uniqueNotNullColName, batchSize, }: {
|
|
118
118
|
tableGenerators: Prettify<TableGeneratorsType>;
|
|
119
|
-
db?: PgDatabase<any
|
|
119
|
+
db?: PgDatabase<any> | MySqlDatabase<any, any> | BaseSQLiteDatabase<any, any>;
|
|
120
120
|
schema?: {
|
|
121
121
|
[key: string]: PgTable | MySqlTable | SQLiteTable;
|
|
122
122
|
};
|
|
@@ -134,7 +134,7 @@ export declare class SeedService {
|
|
|
134
134
|
generatedValues: {
|
|
135
135
|
[columnName: string]: number | string | boolean | undefined;
|
|
136
136
|
}[];
|
|
137
|
-
db: PgDatabase<any, any
|
|
137
|
+
db: PgDatabase<any, any> | MySqlDatabase<any, any> | BaseSQLiteDatabase<any, any>;
|
|
138
138
|
schema: {
|
|
139
139
|
[key: string]: PgTable | MySqlTable | SQLiteTable;
|
|
140
140
|
};
|
|
@@ -145,7 +145,7 @@ export declare class SeedService {
|
|
|
145
145
|
generatedValues: {
|
|
146
146
|
[columnName: string]: number | string | boolean | undefined;
|
|
147
147
|
}[];
|
|
148
|
-
db: PgDatabase<any, any
|
|
148
|
+
db: PgDatabase<any, any> | MySqlDatabase<any, any> | BaseSQLiteDatabase<any, any>;
|
|
149
149
|
schema: {
|
|
150
150
|
[key: string]: PgTable | MySqlTable | SQLiteTable;
|
|
151
151
|
};
|
|
@@ -88,7 +88,7 @@ export declare class SeedService {
|
|
|
88
88
|
};
|
|
89
89
|
generateTablesValues: (relations: (Relation & {
|
|
90
90
|
isCyclic: boolean;
|
|
91
|
-
})[], tablesGenerators: ReturnType<typeof this.generatePossibleGenerators>, db?: PgDatabase<any
|
|
91
|
+
})[], tablesGenerators: ReturnType<typeof this.generatePossibleGenerators>, db?: PgDatabase<any> | MySqlDatabase<any, any> | BaseSQLiteDatabase<any, any>, schema?: {
|
|
92
92
|
[key: string]: PgTable | MySqlTable | SQLiteTable;
|
|
93
93
|
}, options?: {
|
|
94
94
|
count?: number;
|
|
@@ -116,7 +116,7 @@ export declare class SeedService {
|
|
|
116
116
|
}[]>;
|
|
117
117
|
generateColumnsValuesByGenerators: ({ tableGenerators, db, schema, tableName, count, preserveData, insertDataInDb, updateDataInDb, uniqueNotNullColName, batchSize, }: {
|
|
118
118
|
tableGenerators: Prettify<TableGeneratorsType>;
|
|
119
|
-
db?: PgDatabase<any
|
|
119
|
+
db?: PgDatabase<any> | MySqlDatabase<any, any> | BaseSQLiteDatabase<any, any>;
|
|
120
120
|
schema?: {
|
|
121
121
|
[key: string]: PgTable | MySqlTable | SQLiteTable;
|
|
122
122
|
};
|
|
@@ -134,7 +134,7 @@ export declare class SeedService {
|
|
|
134
134
|
generatedValues: {
|
|
135
135
|
[columnName: string]: number | string | boolean | undefined;
|
|
136
136
|
}[];
|
|
137
|
-
db: PgDatabase<any, any
|
|
137
|
+
db: PgDatabase<any, any> | MySqlDatabase<any, any> | BaseSQLiteDatabase<any, any>;
|
|
138
138
|
schema: {
|
|
139
139
|
[key: string]: PgTable | MySqlTable | SQLiteTable;
|
|
140
140
|
};
|
|
@@ -145,7 +145,7 @@ export declare class SeedService {
|
|
|
145
145
|
generatedValues: {
|
|
146
146
|
[columnName: string]: number | string | boolean | undefined;
|
|
147
147
|
}[];
|
|
148
|
-
db: PgDatabase<any, any
|
|
148
|
+
db: PgDatabase<any, any> | MySqlDatabase<any, any> | BaseSQLiteDatabase<any, any>;
|
|
149
149
|
schema: {
|
|
150
150
|
[key: string]: PgTable | MySqlTable | SQLiteTable;
|
|
151
151
|
};
|