drizzle-seed 1.0.0-beta.2-278d7e6 → 1.0.0-beta.2-9848003
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/SeedService.d.cts +3 -12
- package/SeedService.d.mts +3 -12
- package/SeedService.d.ts +3 -12
- package/cockroach-core/index.d.cts +2 -2
- package/cockroach-core/index.d.mts +2 -2
- package/cockroach-core/index.d.ts +2 -2
- package/cockroach-core/selectGensForColumn.d.cts +3 -3
- package/cockroach-core/selectGensForColumn.d.mts +3 -3
- package/cockroach-core/selectGensForColumn.d.ts +3 -3
- package/common.d.cts +1 -1
- package/common.d.mts +1 -1
- package/common.d.ts +1 -1
- package/generators/GeneratorFuncs.d.cts +20 -950
- package/generators/GeneratorFuncs.d.mts +20 -950
- package/generators/GeneratorFuncs.d.ts +20 -950
- package/generators/Generators.d.cts +2 -29
- package/generators/Generators.d.mts +2 -29
- package/generators/Generators.d.ts +2 -29
- package/generators/apiVersion.d.cts +1 -1
- package/generators/apiVersion.d.mts +1 -1
- package/generators/apiVersion.d.ts +1 -1
- package/generators/utils.d.cts +0 -1
- package/generators/utils.d.mts +0 -1
- package/generators/utils.d.ts +0 -1
- package/generators/versioning/v2.d.cts +1 -1
- package/generators/versioning/v2.d.mts +1 -1
- package/generators/versioning/v2.d.ts +1 -1
- package/generators/versioning/v3.d.cts +1 -1
- package/generators/versioning/v3.d.mts +1 -1
- package/generators/versioning/v3.d.ts +1 -1
- package/index.cjs +26 -286
- package/index.cjs.map +1 -1
- package/index.d.cts +47 -68
- package/index.d.mts +47 -68
- package/index.d.ts +47 -68
- package/index.mjs +28 -288
- package/index.mjs.map +1 -1
- package/mssql-core/index.d.cts +1 -1
- package/mssql-core/index.d.mts +1 -1
- package/mssql-core/index.d.ts +1 -1
- package/mssql-core/selectGensForColumn.d.cts +2 -2
- package/mssql-core/selectGensForColumn.d.mts +2 -2
- package/mssql-core/selectGensForColumn.d.ts +2 -2
- package/mysql-core/index.d.cts +2 -2
- package/mysql-core/index.d.mts +2 -2
- package/mysql-core/index.d.ts +2 -2
- package/mysql-core/selectGensForColumn.d.cts +2 -2
- package/mysql-core/selectGensForColumn.d.mts +2 -2
- package/mysql-core/selectGensForColumn.d.ts +2 -2
- package/package.json +3 -5
- package/pg-core/index.d.cts +2 -2
- package/pg-core/index.d.mts +2 -2
- package/pg-core/index.d.ts +2 -2
- package/pg-core/selectGensForColumn.d.cts +3 -3
- package/pg-core/selectGensForColumn.d.mts +3 -3
- package/pg-core/selectGensForColumn.d.ts +3 -3
- package/singlestore-core/index.d.cts +2 -2
- package/singlestore-core/index.d.mts +2 -2
- package/singlestore-core/index.d.ts +2 -2
- package/singlestore-core/selectGensForColumn.d.cts +2 -2
- package/singlestore-core/selectGensForColumn.d.mts +2 -2
- package/singlestore-core/selectGensForColumn.d.ts +2 -2
- package/sqlite-core/index.d.cts +2 -2
- package/sqlite-core/index.d.mts +2 -2
- package/sqlite-core/index.d.ts +2 -2
- package/sqlite-core/selectGensForColumn.d.cts +2 -2
- package/sqlite-core/selectGensForColumn.d.mts +2 -2
- package/sqlite-core/selectGensForColumn.d.ts +2 -2
- package/types/seedService.d.cts +2 -2
- package/types/seedService.d.mts +2 -2
- package/types/seedService.d.ts +2 -2
- package/utils.d.cts +0 -4
- package/utils.d.mts +0 -4
- package/utils.d.ts +0 -4
- package/generators/versioning/v4.d.cts +0 -16
- package/generators/versioning/v4.d.mts +0 -16
- package/generators/versioning/v4.d.ts +0 -16
package/SeedService.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { AbstractGenerator } from './generators/Generators.
|
|
2
|
-
import type { DbType, GeneratedValueType, GeneratePossibleGeneratorsColumnType, RefinementsType, TableGeneratorsType, TableType } from './types/seedService.
|
|
3
|
-
import type { Prettify, Relation, Table } from './types/tables.
|
|
1
|
+
import type { AbstractGenerator } from './generators/Generators.js';
|
|
2
|
+
import type { DbType, GeneratedValueType, GeneratePossibleGeneratorsColumnType, RefinementsType, TableGeneratorsType, TableType } from './types/seedService.js';
|
|
3
|
+
import type { Prettify, Relation, Table } from './types/tables.js';
|
|
4
4
|
export declare class SeedService {
|
|
5
5
|
static readonly entityKind: string;
|
|
6
6
|
private defaultCountForTable;
|
|
@@ -123,15 +123,6 @@ export declare class SeedService {
|
|
|
123
123
|
}) => Promise<{
|
|
124
124
|
[columnName: string]: GeneratedValueType;
|
|
125
125
|
}[]>;
|
|
126
|
-
updateColumnSequence: ({ db, columnConfig: { schemaName, tableName, columnName, valueToUpdate } }: {
|
|
127
|
-
db: DbType;
|
|
128
|
-
columnConfig: {
|
|
129
|
-
schemaName?: string;
|
|
130
|
-
tableName: string;
|
|
131
|
-
columnName: string;
|
|
132
|
-
valueToUpdate?: number | bigint;
|
|
133
|
-
};
|
|
134
|
-
}) => Promise<void>;
|
|
135
126
|
insertInDb: ({ generatedValues, db, schema, tableName, override, }: {
|
|
136
127
|
generatedValues: {
|
|
137
128
|
[columnName: string]: GeneratedValueType;
|
package/SeedService.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { AbstractGenerator } from './generators/Generators.
|
|
2
|
-
import type { DbType, GeneratedValueType, GeneratePossibleGeneratorsColumnType, RefinementsType, TableGeneratorsType, TableType } from './types/seedService.
|
|
3
|
-
import type { Prettify, Relation, Table } from './types/tables.
|
|
1
|
+
import type { AbstractGenerator } from './generators/Generators.js';
|
|
2
|
+
import type { DbType, GeneratedValueType, GeneratePossibleGeneratorsColumnType, RefinementsType, TableGeneratorsType, TableType } from './types/seedService.js';
|
|
3
|
+
import type { Prettify, Relation, Table } from './types/tables.js';
|
|
4
4
|
export declare class SeedService {
|
|
5
5
|
static readonly entityKind: string;
|
|
6
6
|
private defaultCountForTable;
|
|
@@ -123,15 +123,6 @@ export declare class SeedService {
|
|
|
123
123
|
}) => Promise<{
|
|
124
124
|
[columnName: string]: GeneratedValueType;
|
|
125
125
|
}[]>;
|
|
126
|
-
updateColumnSequence: ({ db, columnConfig: { schemaName, tableName, columnName, valueToUpdate } }: {
|
|
127
|
-
db: DbType;
|
|
128
|
-
columnConfig: {
|
|
129
|
-
schemaName?: string;
|
|
130
|
-
tableName: string;
|
|
131
|
-
columnName: string;
|
|
132
|
-
valueToUpdate?: number | bigint;
|
|
133
|
-
};
|
|
134
|
-
}) => Promise<void>;
|
|
135
126
|
insertInDb: ({ generatedValues, db, schema, tableName, override, }: {
|
|
136
127
|
generatedValues: {
|
|
137
128
|
[columnName: string]: GeneratedValueType;
|
package/SeedService.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { AbstractGenerator } from './generators/Generators.
|
|
2
|
-
import type { DbType, GeneratedValueType, GeneratePossibleGeneratorsColumnType, RefinementsType, TableGeneratorsType, TableType } from './types/seedService.
|
|
3
|
-
import type { Prettify, Relation, Table } from './types/tables.
|
|
1
|
+
import type { AbstractGenerator } from './generators/Generators.js';
|
|
2
|
+
import type { DbType, GeneratedValueType, GeneratePossibleGeneratorsColumnType, RefinementsType, TableGeneratorsType, TableType } from './types/seedService.js';
|
|
3
|
+
import type { Prettify, Relation, Table } from './types/tables.js';
|
|
4
4
|
export declare class SeedService {
|
|
5
5
|
static readonly entityKind: string;
|
|
6
6
|
private defaultCountForTable;
|
|
@@ -123,15 +123,6 @@ export declare class SeedService {
|
|
|
123
123
|
}) => Promise<{
|
|
124
124
|
[columnName: string]: GeneratedValueType;
|
|
125
125
|
}[]>;
|
|
126
|
-
updateColumnSequence: ({ db, columnConfig: { schemaName, tableName, columnName, valueToUpdate } }: {
|
|
127
|
-
db: DbType;
|
|
128
|
-
columnConfig: {
|
|
129
|
-
schemaName?: string;
|
|
130
|
-
tableName: string;
|
|
131
|
-
columnName: string;
|
|
132
|
-
valueToUpdate?: number | bigint;
|
|
133
|
-
};
|
|
134
|
-
}) => Promise<void>;
|
|
135
126
|
insertInDb: ({ generatedValues, db, schema, tableName, override, }: {
|
|
136
127
|
generatedValues: {
|
|
137
128
|
[columnName: string]: GeneratedValueType;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Relations } from 'drizzle-orm/_relations';
|
|
2
2
|
import type { CockroachDatabase, CockroachSchema } from 'drizzle-orm/cockroach-core';
|
|
3
3
|
import { CockroachTable } from 'drizzle-orm/cockroach-core';
|
|
4
|
-
import type { RefinementsType } from '../types/seedService.
|
|
5
|
-
import type { Column, TableConfigT } from '../types/tables.
|
|
4
|
+
import type { RefinementsType } from '../types/seedService.js';
|
|
5
|
+
import type { Column, TableConfigT } from '../types/tables.js';
|
|
6
6
|
export declare const resetCockroach: (db: CockroachDatabase<any, any>, cockroachTables: {
|
|
7
7
|
[key: string]: CockroachTable;
|
|
8
8
|
}) => Promise<void>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Relations } from 'drizzle-orm/_relations';
|
|
2
2
|
import type { CockroachDatabase, CockroachSchema } from 'drizzle-orm/cockroach-core';
|
|
3
3
|
import { CockroachTable } from 'drizzle-orm/cockroach-core';
|
|
4
|
-
import type { RefinementsType } from '../types/seedService.
|
|
5
|
-
import type { Column, TableConfigT } from '../types/tables.
|
|
4
|
+
import type { RefinementsType } from '../types/seedService.js';
|
|
5
|
+
import type { Column, TableConfigT } from '../types/tables.js';
|
|
6
6
|
export declare const resetCockroach: (db: CockroachDatabase<any, any>, cockroachTables: {
|
|
7
7
|
[key: string]: CockroachTable;
|
|
8
8
|
}) => Promise<void>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Relations } from 'drizzle-orm/_relations';
|
|
2
2
|
import type { CockroachDatabase, CockroachSchema } from 'drizzle-orm/cockroach-core';
|
|
3
3
|
import { CockroachTable } from 'drizzle-orm/cockroach-core';
|
|
4
|
-
import type { RefinementsType } from '../types/seedService.
|
|
5
|
-
import type { Column, TableConfigT } from '../types/tables.
|
|
4
|
+
import type { RefinementsType } from '../types/seedService.js';
|
|
5
|
+
import type { Column, TableConfigT } from '../types/tables.js';
|
|
6
6
|
export declare const resetCockroach: (db: CockroachDatabase<any, any>, cockroachTables: {
|
|
7
7
|
[key: string]: CockroachTable;
|
|
8
8
|
}) => Promise<void>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { GenerateInterval } from '../generators/Generators.
|
|
2
|
-
import type { Column, Table } from '../types/tables.
|
|
3
|
-
export declare const selectGeneratorForCockroachColumn: (table: Table, col: Column) => import("../generators/Generators.
|
|
1
|
+
import type { GenerateInterval } from '../generators/Generators.js';
|
|
2
|
+
import type { Column, Table } from '../types/tables.js';
|
|
3
|
+
export declare const selectGeneratorForCockroachColumn: (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").GenerateBitString | import("../generators/Generators.js").GenerateInet | import("../generators/Generators.js").GenerateGeometry | import("../generators/Generators.js").GenerateVector | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { GenerateInterval } from '../generators/Generators.
|
|
2
|
-
import type { Column, Table } from '../types/tables.
|
|
3
|
-
export declare const selectGeneratorForCockroachColumn: (table: Table, col: Column) => import("../generators/Generators.
|
|
1
|
+
import type { GenerateInterval } from '../generators/Generators.js';
|
|
2
|
+
import type { Column, Table } from '../types/tables.js';
|
|
3
|
+
export declare const selectGeneratorForCockroachColumn: (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").GenerateBitString | import("../generators/Generators.js").GenerateInet | import("../generators/Generators.js").GenerateGeometry | import("../generators/Generators.js").GenerateVector | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { GenerateInterval } from '../generators/Generators.
|
|
2
|
-
import type { Column, Table } from '../types/tables.
|
|
3
|
-
export declare const selectGeneratorForCockroachColumn: (table: Table, col: Column) => import("../generators/Generators.
|
|
1
|
+
import type { GenerateInterval } from '../generators/Generators.js';
|
|
2
|
+
import type { Column, Table } from '../types/tables.js';
|
|
3
|
+
export declare const selectGeneratorForCockroachColumn: (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").GenerateBitString | import("../generators/Generators.js").GenerateInet | import("../generators/Generators.js").GenerateGeometry | import("../generators/Generators.js").GenerateVector | undefined;
|
package/common.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Relations } from 'drizzle-orm/_relations';
|
|
2
|
-
import type { Column, DrizzleTable, RelationWithReferences, Table, TableConfigT } from './types/tables.
|
|
2
|
+
import type { Column, DrizzleTable, RelationWithReferences, Table, TableConfigT } from './types/tables.js';
|
|
3
3
|
export declare const getSchemaInfo: (drizzleTablesAndRelations: {
|
|
4
4
|
[key: string]: DrizzleTable | Relations;
|
|
5
5
|
}, drizzleTables: {
|
package/common.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Relations } from 'drizzle-orm/_relations';
|
|
2
|
-
import type { Column, DrizzleTable, RelationWithReferences, Table, TableConfigT } from './types/tables.
|
|
2
|
+
import type { Column, DrizzleTable, RelationWithReferences, Table, TableConfigT } from './types/tables.js';
|
|
3
3
|
export declare const getSchemaInfo: (drizzleTablesAndRelations: {
|
|
4
4
|
[key: string]: DrizzleTable | Relations;
|
|
5
5
|
}, drizzleTables: {
|
package/common.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Relations } from 'drizzle-orm/_relations';
|
|
2
|
-
import type { Column, DrizzleTable, RelationWithReferences, Table, TableConfigT } from './types/tables.
|
|
2
|
+
import type { Column, DrizzleTable, RelationWithReferences, Table, TableConfigT } from './types/tables.js';
|
|
3
3
|
export declare const getSchemaInfo: (drizzleTablesAndRelations: {
|
|
4
4
|
[key: string]: DrizzleTable | Relations;
|
|
5
5
|
}, drizzleTables: {
|