orchid-orm 1.9.36 → 1.9.38
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 +4 -4
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -309,13 +309,13 @@ declare const createBaseTable: <CT extends Record<string, orchid_core.AnyColumnT
|
|
|
309
309
|
} | undefined): {};
|
|
310
310
|
index(columns: orchid_core.MaybeArray<string | pqb.IndexColumnOptions>, options?: pqb.IndexOptions): {};
|
|
311
311
|
unique(columns: orchid_core.MaybeArray<string | pqb.IndexColumnOptions>, options?: pqb.IndexOptions): {};
|
|
312
|
-
constraint<Table_1 extends string | (() =>
|
|
312
|
+
constraint<Table_1 extends string | (() => orchid_core.ForeignKeyTable), Columns extends Table_1 extends () => orchid_core.ForeignKeyTable ? [orchid_core.ColumnNameOfTable<ReturnType<Table_1>>, ...orchid_core.ColumnNameOfTable<ReturnType<Table_1>>[]] : [string, ...string[]]>({ name, references, check, dropMode, }: {
|
|
313
313
|
name?: string | undefined;
|
|
314
314
|
references?: [columns: string[], fnOrTable: Table_1, foreignColumns: Columns, options?: pqb.ForeignKeyOptions | undefined] | undefined;
|
|
315
315
|
check?: orchid_core.RawExpression | undefined;
|
|
316
316
|
dropMode?: pqb.DropMode | undefined;
|
|
317
317
|
}): {};
|
|
318
|
-
foreignKey<Table_2 extends string | (() =>
|
|
318
|
+
foreignKey<Table_2 extends string | (() => orchid_core.ForeignKeyTable), Columns_1 extends Table_2 extends () => orchid_core.ForeignKeyTable ? [orchid_core.ColumnNameOfTable<ReturnType<Table_2>>, ...orchid_core.ColumnNameOfTable<ReturnType<Table_2>>[]] : [string, ...string[]]>(columns: string[], fnOrTable: Table_2, foreignColumns: Columns_1, options?: (pqb.ForeignKeyOptions & {
|
|
319
319
|
name?: string | undefined;
|
|
320
320
|
dropMode?: pqb.DropMode | undefined;
|
|
321
321
|
}) | undefined): {};
|
|
@@ -460,13 +460,13 @@ declare const createBaseTable: <CT extends Record<string, orchid_core.AnyColumnT
|
|
|
460
460
|
} | undefined): {};
|
|
461
461
|
index(columns: orchid_core.MaybeArray<string | pqb.IndexColumnOptions>, options?: pqb.IndexOptions): {};
|
|
462
462
|
unique(columns: orchid_core.MaybeArray<string | pqb.IndexColumnOptions>, options?: pqb.IndexOptions): {};
|
|
463
|
-
constraint<Table_1 extends string | (() =>
|
|
463
|
+
constraint<Table_1 extends string | (() => orchid_core.ForeignKeyTable), Columns extends Table_1 extends () => orchid_core.ForeignKeyTable ? [orchid_core.ColumnNameOfTable<ReturnType<Table_1>>, ...orchid_core.ColumnNameOfTable<ReturnType<Table_1>>[]] : [string, ...string[]]>({ name, references, check, dropMode, }: {
|
|
464
464
|
name?: string | undefined;
|
|
465
465
|
references?: [columns: string[], fnOrTable: Table_1, foreignColumns: Columns, options?: pqb.ForeignKeyOptions | undefined] | undefined;
|
|
466
466
|
check?: orchid_core.RawExpression | undefined;
|
|
467
467
|
dropMode?: pqb.DropMode | undefined;
|
|
468
468
|
}): {};
|
|
469
|
-
foreignKey<Table_2 extends string | (() =>
|
|
469
|
+
foreignKey<Table_2 extends string | (() => orchid_core.ForeignKeyTable), Columns_1 extends Table_2 extends () => orchid_core.ForeignKeyTable ? [orchid_core.ColumnNameOfTable<ReturnType<Table_2>>, ...orchid_core.ColumnNameOfTable<ReturnType<Table_2>>[]] : [string, ...string[]]>(columns: string[], fnOrTable: Table_2, foreignColumns: Columns_1, options?: (pqb.ForeignKeyOptions & {
|
|
470
470
|
name?: string | undefined;
|
|
471
471
|
dropMode?: pqb.DropMode | undefined;
|
|
472
472
|
}) | undefined): {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "orchid-orm",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.38",
|
|
4
4
|
"description": "Postgres ORM",
|
|
5
5
|
"homepage": "https://orchid-orm.netlify.app/guide/orm-and-query-builder.html",
|
|
6
6
|
"repository": {
|
|
@@ -52,13 +52,13 @@
|
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"inflection": "*",
|
|
54
54
|
"prompts": "^2.4.2",
|
|
55
|
-
"orchid-core": "0.4.
|
|
56
|
-
"pqb": "0.11.
|
|
55
|
+
"orchid-core": "0.4.12",
|
|
56
|
+
"pqb": "0.11.31"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/prompts": "^2.4.2",
|
|
60
|
-
"orchid-orm-schema-to-zod": "0.3.
|
|
61
|
-
"rake-db": "2.8.
|
|
60
|
+
"orchid-orm-schema-to-zod": "0.3.70",
|
|
61
|
+
"rake-db": "2.8.35",
|
|
62
62
|
"test-utils": "0.0.2"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|