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.
Files changed (77) hide show
  1. package/SeedService.d.cts +3 -12
  2. package/SeedService.d.mts +3 -12
  3. package/SeedService.d.ts +3 -12
  4. package/cockroach-core/index.d.cts +2 -2
  5. package/cockroach-core/index.d.mts +2 -2
  6. package/cockroach-core/index.d.ts +2 -2
  7. package/cockroach-core/selectGensForColumn.d.cts +3 -3
  8. package/cockroach-core/selectGensForColumn.d.mts +3 -3
  9. package/cockroach-core/selectGensForColumn.d.ts +3 -3
  10. package/common.d.cts +1 -1
  11. package/common.d.mts +1 -1
  12. package/common.d.ts +1 -1
  13. package/generators/GeneratorFuncs.d.cts +20 -950
  14. package/generators/GeneratorFuncs.d.mts +20 -950
  15. package/generators/GeneratorFuncs.d.ts +20 -950
  16. package/generators/Generators.d.cts +2 -29
  17. package/generators/Generators.d.mts +2 -29
  18. package/generators/Generators.d.ts +2 -29
  19. package/generators/apiVersion.d.cts +1 -1
  20. package/generators/apiVersion.d.mts +1 -1
  21. package/generators/apiVersion.d.ts +1 -1
  22. package/generators/utils.d.cts +0 -1
  23. package/generators/utils.d.mts +0 -1
  24. package/generators/utils.d.ts +0 -1
  25. package/generators/versioning/v2.d.cts +1 -1
  26. package/generators/versioning/v2.d.mts +1 -1
  27. package/generators/versioning/v2.d.ts +1 -1
  28. package/generators/versioning/v3.d.cts +1 -1
  29. package/generators/versioning/v3.d.mts +1 -1
  30. package/generators/versioning/v3.d.ts +1 -1
  31. package/index.cjs +26 -286
  32. package/index.cjs.map +1 -1
  33. package/index.d.cts +47 -68
  34. package/index.d.mts +47 -68
  35. package/index.d.ts +47 -68
  36. package/index.mjs +28 -288
  37. package/index.mjs.map +1 -1
  38. package/mssql-core/index.d.cts +1 -1
  39. package/mssql-core/index.d.mts +1 -1
  40. package/mssql-core/index.d.ts +1 -1
  41. package/mssql-core/selectGensForColumn.d.cts +2 -2
  42. package/mssql-core/selectGensForColumn.d.mts +2 -2
  43. package/mssql-core/selectGensForColumn.d.ts +2 -2
  44. package/mysql-core/index.d.cts +2 -2
  45. package/mysql-core/index.d.mts +2 -2
  46. package/mysql-core/index.d.ts +2 -2
  47. package/mysql-core/selectGensForColumn.d.cts +2 -2
  48. package/mysql-core/selectGensForColumn.d.mts +2 -2
  49. package/mysql-core/selectGensForColumn.d.ts +2 -2
  50. package/package.json +3 -5
  51. package/pg-core/index.d.cts +2 -2
  52. package/pg-core/index.d.mts +2 -2
  53. package/pg-core/index.d.ts +2 -2
  54. package/pg-core/selectGensForColumn.d.cts +3 -3
  55. package/pg-core/selectGensForColumn.d.mts +3 -3
  56. package/pg-core/selectGensForColumn.d.ts +3 -3
  57. package/singlestore-core/index.d.cts +2 -2
  58. package/singlestore-core/index.d.mts +2 -2
  59. package/singlestore-core/index.d.ts +2 -2
  60. package/singlestore-core/selectGensForColumn.d.cts +2 -2
  61. package/singlestore-core/selectGensForColumn.d.mts +2 -2
  62. package/singlestore-core/selectGensForColumn.d.ts +2 -2
  63. package/sqlite-core/index.d.cts +2 -2
  64. package/sqlite-core/index.d.mts +2 -2
  65. package/sqlite-core/index.d.ts +2 -2
  66. package/sqlite-core/selectGensForColumn.d.cts +2 -2
  67. package/sqlite-core/selectGensForColumn.d.mts +2 -2
  68. package/sqlite-core/selectGensForColumn.d.ts +2 -2
  69. package/types/seedService.d.cts +2 -2
  70. package/types/seedService.d.mts +2 -2
  71. package/types/seedService.d.ts +2 -2
  72. package/utils.d.cts +0 -4
  73. package/utils.d.mts +0 -4
  74. package/utils.d.ts +0 -4
  75. package/generators/versioning/v4.d.cts +0 -16
  76. package/generators/versioning/v4.d.mts +0 -16
  77. package/generators/versioning/v4.d.ts +0 -16
package/SeedService.d.cts CHANGED
@@ -1,6 +1,6 @@
1
- import type { AbstractGenerator } from './generators/Generators.ts';
2
- import type { DbType, GeneratedValueType, GeneratePossibleGeneratorsColumnType, RefinementsType, TableGeneratorsType, TableType } from './types/seedService.ts';
3
- import type { Prettify, Relation, Table } from './types/tables.ts';
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.ts';
2
- import type { DbType, GeneratedValueType, GeneratePossibleGeneratorsColumnType, RefinementsType, TableGeneratorsType, TableType } from './types/seedService.ts';
3
- import type { Prettify, Relation, Table } from './types/tables.ts';
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.ts';
2
- import type { DbType, GeneratedValueType, GeneratePossibleGeneratorsColumnType, RefinementsType, TableGeneratorsType, TableType } from './types/seedService.ts';
3
- import type { Prettify, Relation, Table } from './types/tables.ts';
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.ts';
5
- import type { Column, TableConfigT } from '../types/tables.ts';
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.ts';
5
- import type { Column, TableConfigT } from '../types/tables.ts';
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.ts';
5
- import type { Column, TableConfigT } from '../types/tables.ts';
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.ts';
2
- import type { Column, Table } from '../types/tables.ts';
3
- export declare const selectGeneratorForCockroachColumn: (table: Table, col: Column) => import("../generators/Generators.ts").GenerateArray | import("../generators/Generators.ts").GenerateDefault | import("../generators/Generators.ts").GenerateIntPrimaryKey | import("../generators/Generators.ts").GenerateNumber | import("../generators/Generators.ts").GenerateInt | import("../generators/Generators.ts").GenerateBoolean | import("../generators/Generators.ts").GenerateDate | import("../generators/Generators.ts").GenerateTime | import("../generators/Generators.ts").GenerateTimestamp | import("../generators/Generators.ts").GenerateJson | import("../generators/Generators.ts").GenerateEmail | import("../generators/Generators.ts").GenerateFirstName | import("../generators/Generators.ts").GenerateEnum | GenerateInterval | import("../generators/Generators.ts").GenerateString | import("../generators/Generators.ts").GenerateUniqueString | import("../generators/Generators.ts").GenerateUUID | import("../generators/Generators.ts").GenerateBitString | import("../generators/Generators.ts").GenerateInet | import("../generators/Generators.ts").GenerateGeometry | import("../generators/Generators.ts").GenerateVector | undefined;
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.ts';
2
- import type { Column, Table } from '../types/tables.ts';
3
- export declare const selectGeneratorForCockroachColumn: (table: Table, col: Column) => import("../generators/Generators.ts").GenerateArray | import("../generators/Generators.ts").GenerateDefault | import("../generators/Generators.ts").GenerateIntPrimaryKey | import("../generators/Generators.ts").GenerateNumber | import("../generators/Generators.ts").GenerateInt | import("../generators/Generators.ts").GenerateBoolean | import("../generators/Generators.ts").GenerateDate | import("../generators/Generators.ts").GenerateTime | import("../generators/Generators.ts").GenerateTimestamp | import("../generators/Generators.ts").GenerateJson | import("../generators/Generators.ts").GenerateEmail | import("../generators/Generators.ts").GenerateFirstName | import("../generators/Generators.ts").GenerateEnum | GenerateInterval | import("../generators/Generators.ts").GenerateString | import("../generators/Generators.ts").GenerateUniqueString | import("../generators/Generators.ts").GenerateUUID | import("../generators/Generators.ts").GenerateBitString | import("../generators/Generators.ts").GenerateInet | import("../generators/Generators.ts").GenerateGeometry | import("../generators/Generators.ts").GenerateVector | undefined;
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.ts';
2
- import type { Column, Table } from '../types/tables.ts';
3
- export declare const selectGeneratorForCockroachColumn: (table: Table, col: Column) => import("../generators/Generators.ts").GenerateArray | import("../generators/Generators.ts").GenerateDefault | import("../generators/Generators.ts").GenerateIntPrimaryKey | import("../generators/Generators.ts").GenerateNumber | import("../generators/Generators.ts").GenerateInt | import("../generators/Generators.ts").GenerateBoolean | import("../generators/Generators.ts").GenerateDate | import("../generators/Generators.ts").GenerateTime | import("../generators/Generators.ts").GenerateTimestamp | import("../generators/Generators.ts").GenerateJson | import("../generators/Generators.ts").GenerateEmail | import("../generators/Generators.ts").GenerateFirstName | import("../generators/Generators.ts").GenerateEnum | GenerateInterval | import("../generators/Generators.ts").GenerateString | import("../generators/Generators.ts").GenerateUniqueString | import("../generators/Generators.ts").GenerateUUID | import("../generators/Generators.ts").GenerateBitString | import("../generators/Generators.ts").GenerateInet | import("../generators/Generators.ts").GenerateGeometry | import("../generators/Generators.ts").GenerateVector | undefined;
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.ts';
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.ts';
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.ts';
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: {