drizzle-seed 1.0.0-beta.2-58a4521 → 1.0.0-beta.2-278d7e6

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 +12 -3
  2. package/SeedService.d.mts +12 -3
  3. package/SeedService.d.ts +12 -3
  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 +950 -20
  14. package/generators/GeneratorFuncs.d.mts +950 -20
  15. package/generators/GeneratorFuncs.d.ts +950 -20
  16. package/generators/Generators.d.cts +29 -2
  17. package/generators/Generators.d.mts +29 -2
  18. package/generators/Generators.d.ts +29 -2
  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 +1 -0
  23. package/generators/utils.d.mts +1 -0
  24. package/generators/utils.d.ts +1 -0
  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/generators/versioning/v4.d.cts +16 -0
  32. package/generators/versioning/v4.d.mts +16 -0
  33. package/generators/versioning/v4.d.ts +16 -0
  34. package/index.cjs +286 -26
  35. package/index.cjs.map +1 -1
  36. package/index.d.cts +68 -47
  37. package/index.d.mts +68 -47
  38. package/index.d.ts +68 -47
  39. package/index.mjs +288 -28
  40. package/index.mjs.map +1 -1
  41. package/mssql-core/index.d.cts +1 -1
  42. package/mssql-core/index.d.mts +1 -1
  43. package/mssql-core/index.d.ts +1 -1
  44. package/mssql-core/selectGensForColumn.d.cts +2 -2
  45. package/mssql-core/selectGensForColumn.d.mts +2 -2
  46. package/mssql-core/selectGensForColumn.d.ts +2 -2
  47. package/mysql-core/index.d.cts +2 -2
  48. package/mysql-core/index.d.mts +2 -2
  49. package/mysql-core/index.d.ts +2 -2
  50. package/mysql-core/selectGensForColumn.d.cts +2 -2
  51. package/mysql-core/selectGensForColumn.d.mts +2 -2
  52. package/mysql-core/selectGensForColumn.d.ts +2 -2
  53. package/package.json +5 -3
  54. package/pg-core/index.d.cts +2 -2
  55. package/pg-core/index.d.mts +2 -2
  56. package/pg-core/index.d.ts +2 -2
  57. package/pg-core/selectGensForColumn.d.cts +3 -3
  58. package/pg-core/selectGensForColumn.d.mts +3 -3
  59. package/pg-core/selectGensForColumn.d.ts +3 -3
  60. package/singlestore-core/index.d.cts +2 -2
  61. package/singlestore-core/index.d.mts +2 -2
  62. package/singlestore-core/index.d.ts +2 -2
  63. package/singlestore-core/selectGensForColumn.d.cts +2 -2
  64. package/singlestore-core/selectGensForColumn.d.mts +2 -2
  65. package/singlestore-core/selectGensForColumn.d.ts +2 -2
  66. package/sqlite-core/index.d.cts +2 -2
  67. package/sqlite-core/index.d.mts +2 -2
  68. package/sqlite-core/index.d.ts +2 -2
  69. package/sqlite-core/selectGensForColumn.d.cts +2 -2
  70. package/sqlite-core/selectGensForColumn.d.mts +2 -2
  71. package/sqlite-core/selectGensForColumn.d.ts +2 -2
  72. package/types/seedService.d.cts +2 -2
  73. package/types/seedService.d.mts +2 -2
  74. package/types/seedService.d.ts +2 -2
  75. package/utils.d.cts +4 -0
  76. package/utils.d.mts +4 -0
  77. package/utils.d.ts +4 -0
package/SeedService.d.cts CHANGED
@@ -1,6 +1,6 @@
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';
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';
4
4
  export declare class SeedService {
5
5
  static readonly entityKind: string;
6
6
  private defaultCountForTable;
@@ -123,6 +123,15 @@ 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>;
126
135
  insertInDb: ({ generatedValues, db, schema, tableName, override, }: {
127
136
  generatedValues: {
128
137
  [columnName: string]: GeneratedValueType;
package/SeedService.d.mts CHANGED
@@ -1,6 +1,6 @@
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';
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';
4
4
  export declare class SeedService {
5
5
  static readonly entityKind: string;
6
6
  private defaultCountForTable;
@@ -123,6 +123,15 @@ 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>;
126
135
  insertInDb: ({ generatedValues, db, schema, tableName, override, }: {
127
136
  generatedValues: {
128
137
  [columnName: string]: GeneratedValueType;
package/SeedService.d.ts CHANGED
@@ -1,6 +1,6 @@
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';
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';
4
4
  export declare class SeedService {
5
5
  static readonly entityKind: string;
6
6
  private defaultCountForTable;
@@ -123,6 +123,15 @@ 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>;
126
135
  insertInDb: ({ generatedValues, db, schema, tableName, override, }: {
127
136
  generatedValues: {
128
137
  [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.js';
5
- import type { Column, TableConfigT } from '../types/tables.js';
4
+ import type { RefinementsType } from '../types/seedService.ts';
5
+ import type { Column, TableConfigT } from '../types/tables.ts';
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.js';
5
- import type { Column, TableConfigT } from '../types/tables.js';
4
+ import type { RefinementsType } from '../types/seedService.ts';
5
+ import type { Column, TableConfigT } from '../types/tables.ts';
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.js';
5
- import type { Column, TableConfigT } from '../types/tables.js';
4
+ import type { RefinementsType } from '../types/seedService.ts';
5
+ import type { Column, TableConfigT } from '../types/tables.ts';
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.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
+ 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,3 +1,3 @@
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
+ 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,3 +1,3 @@
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
+ 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;
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.js';
2
+ import type { Column, DrizzleTable, RelationWithReferences, Table, TableConfigT } from './types/tables.ts';
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.js';
2
+ import type { Column, DrizzleTable, RelationWithReferences, Table, TableConfigT } from './types/tables.ts';
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.js';
2
+ import type { Column, DrizzleTable, RelationWithReferences, Table, TableConfigT } from './types/tables.ts';
3
3
  export declare const getSchemaInfo: (drizzleTablesAndRelations: {
4
4
  [key: string]: DrizzleTable | Relations;
5
5
  }, drizzleTables: {