rake-db 2.25.3 → 2.25.4
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/dist/index.d.ts +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -261,7 +261,7 @@ declare const tableChangeMethods: {
|
|
|
261
261
|
foreignKey<ForeignTable extends string | (() => orchid_core.ForeignKeyTable), ForeignColumns extends ForeignTable extends () => orchid_core.ForeignKeyTable ? [orchid_core.ColumnNameOfTable<ReturnType<ForeignTable>>, ...orchid_core.ColumnNameOfTable<ReturnType<ForeignTable>>[]] : [string, ...string[]]>(columns: [string, ...string[]], fnOrTable: ForeignTable, foreignColumns: ForeignColumns, options?: TableData.References.Options | undefined): pqb.NonUniqDataItem;
|
|
262
262
|
check(check: RawSQLBase<orchid_core.QueryColumn<unknown, any>, unknown>, name?: string | undefined): pqb.NonUniqDataItem;
|
|
263
263
|
sql: pqb.SqlFn;
|
|
264
|
-
enum(name: string): EnumColumn<pqb.DefaultSchemaConfig, undefined,
|
|
264
|
+
enum(name: string): EnumColumn<pqb.DefaultSchemaConfig, undefined, [string, ...string[]]>;
|
|
265
265
|
};
|
|
266
266
|
type TableChanger<CT> = MigrationColumnTypes<CT> & TableChangeMethods;
|
|
267
267
|
type TableChangeData = Record<string, RakeDbAst.ChangeTableItem.Column | RakeDbAst.ChangeTableItem.Rename | Change | SpecialChange | ColumnTypeBase>;
|
|
@@ -277,7 +277,7 @@ type TableOptions = {
|
|
|
277
277
|
language?: string;
|
|
278
278
|
};
|
|
279
279
|
type MigrationColumnTypes<CT> = Omit<CT, 'enum'> & {
|
|
280
|
-
enum: (name: string) => EnumColumn<ColumnSchemaConfig, unknown>;
|
|
280
|
+
enum: (name: string) => EnumColumn<ColumnSchemaConfig, unknown, readonly string[]>;
|
|
281
281
|
};
|
|
282
282
|
type ColumnsShapeCallback<CT, Shape extends ColumnsShape = ColumnsShape> = (t: MigrationColumnTypes<CT> & {
|
|
283
283
|
raw: typeof raw;
|
|
@@ -1264,7 +1264,7 @@ declare const concatSchemaAndName: ({ schema, name, }: {
|
|
|
1264
1264
|
schema?: string;
|
|
1265
1265
|
name: string;
|
|
1266
1266
|
}) => string;
|
|
1267
|
-
declare const makePopulateEnumQuery: (item: EnumColumn<ColumnSchemaConfig, unknown>) => TableQuery;
|
|
1267
|
+
declare const makePopulateEnumQuery: (item: EnumColumn<ColumnSchemaConfig, unknown, readonly string[]>) => TableQuery;
|
|
1268
1268
|
declare const transaction: <T>(adapter: Adapter, fn: (trx: TransactionAdapter) => Promise<T>) => Promise<T>;
|
|
1269
1269
|
declare const queryLock: (trx: TransactionAdapter) => Promise<pqb.QueryResult<any>>;
|
|
1270
1270
|
declare const exhaustive: (_: never) => never;
|