drizzle-kit 0.25.0-a345cb3 → 0.25.0-a5ec472
Sign up to get free protection for your applications and to get access to all the features.
- package/api.d.mts +96 -0
- package/api.d.ts +96 -0
- package/api.js +1524 -567
- package/api.mjs +1524 -567
- package/bin.cjs +1112 -155
- package/index.d.mts +7 -0
- package/index.d.ts +7 -0
- package/package.json +2 -2
- package/utils.js +21 -3
- package/utils.mjs +21 -3
package/api.d.mts
CHANGED
@@ -614,6 +614,28 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
614
614
|
columns: string[];
|
615
615
|
nullsNotDistinct: boolean;
|
616
616
|
}>>>;
|
617
|
+
policies: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
618
|
+
name: zod.ZodString;
|
619
|
+
as: zod.ZodOptional<zod.ZodEnum<["PERMISSIVE", "RESTRICTIVE"]>>;
|
620
|
+
for: zod.ZodOptional<zod.ZodEnum<["ALL", "SELECT", "INSERT", "UPDATE", "DELETE"]>>;
|
621
|
+
to: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
622
|
+
using: zod.ZodOptional<zod.ZodString>;
|
623
|
+
withCheck: zod.ZodOptional<zod.ZodString>;
|
624
|
+
}, "strict", zod.ZodTypeAny, {
|
625
|
+
name: string;
|
626
|
+
using?: string | undefined;
|
627
|
+
as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
|
628
|
+
for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
|
629
|
+
to?: string[] | undefined;
|
630
|
+
withCheck?: string | undefined;
|
631
|
+
}, {
|
632
|
+
name: string;
|
633
|
+
using?: string | undefined;
|
634
|
+
as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
|
635
|
+
for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
|
636
|
+
to?: string[] | undefined;
|
637
|
+
withCheck?: string | undefined;
|
638
|
+
}>>>;
|
617
639
|
}, "strict", zod.ZodTypeAny, {
|
618
640
|
name: string;
|
619
641
|
columns: Record<string, {
|
@@ -677,6 +699,14 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
677
699
|
columns: string[];
|
678
700
|
nullsNotDistinct: boolean;
|
679
701
|
}>;
|
702
|
+
policies: Record<string, {
|
703
|
+
name: string;
|
704
|
+
using?: string | undefined;
|
705
|
+
as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
|
706
|
+
for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
|
707
|
+
to?: string[] | undefined;
|
708
|
+
withCheck?: string | undefined;
|
709
|
+
}>;
|
680
710
|
}, {
|
681
711
|
name: string;
|
682
712
|
columns: Record<string, {
|
@@ -740,6 +770,14 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
740
770
|
columns: string[];
|
741
771
|
nullsNotDistinct: boolean;
|
742
772
|
}> | undefined;
|
773
|
+
policies?: Record<string, {
|
774
|
+
name: string;
|
775
|
+
using?: string | undefined;
|
776
|
+
as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
|
777
|
+
for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
|
778
|
+
to?: string[] | undefined;
|
779
|
+
withCheck?: string | undefined;
|
780
|
+
}> | undefined;
|
743
781
|
}>>;
|
744
782
|
enums: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
745
783
|
name: zod.ZodString;
|
@@ -783,6 +821,22 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
783
821
|
cache?: string | undefined;
|
784
822
|
cycle?: boolean | undefined;
|
785
823
|
}>>>;
|
824
|
+
roles: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
825
|
+
name: zod.ZodString;
|
826
|
+
createDb: zod.ZodOptional<zod.ZodBoolean>;
|
827
|
+
createRole: zod.ZodOptional<zod.ZodBoolean>;
|
828
|
+
inherit: zod.ZodOptional<zod.ZodBoolean>;
|
829
|
+
}, "strict", zod.ZodTypeAny, {
|
830
|
+
name: string;
|
831
|
+
createDb?: boolean | undefined;
|
832
|
+
createRole?: boolean | undefined;
|
833
|
+
inherit?: boolean | undefined;
|
834
|
+
}, {
|
835
|
+
name: string;
|
836
|
+
createDb?: boolean | undefined;
|
837
|
+
createRole?: boolean | undefined;
|
838
|
+
inherit?: boolean | undefined;
|
839
|
+
}>>>;
|
786
840
|
_meta: zod.ZodObject<{
|
787
841
|
schemas: zod.ZodRecord<zod.ZodString, zod.ZodString>;
|
788
842
|
tables: zod.ZodRecord<zod.ZodString, zod.ZodString>;
|
@@ -915,6 +969,14 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
915
969
|
columns: string[];
|
916
970
|
nullsNotDistinct: boolean;
|
917
971
|
}>;
|
972
|
+
policies: Record<string, {
|
973
|
+
name: string;
|
974
|
+
using?: string | undefined;
|
975
|
+
as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
|
976
|
+
for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
|
977
|
+
to?: string[] | undefined;
|
978
|
+
withCheck?: string | undefined;
|
979
|
+
}>;
|
918
980
|
}>;
|
919
981
|
id: string;
|
920
982
|
prevId: string;
|
@@ -941,6 +1003,12 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
941
1003
|
cache?: string | undefined;
|
942
1004
|
cycle?: boolean | undefined;
|
943
1005
|
}>;
|
1006
|
+
roles: Record<string, {
|
1007
|
+
name: string;
|
1008
|
+
createDb?: boolean | undefined;
|
1009
|
+
createRole?: boolean | undefined;
|
1010
|
+
inherit?: boolean | undefined;
|
1011
|
+
}>;
|
944
1012
|
internal?: {
|
945
1013
|
tables: Record<string, {
|
946
1014
|
columns: Record<string, {
|
@@ -1015,6 +1083,14 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
1015
1083
|
columns: string[];
|
1016
1084
|
nullsNotDistinct: boolean;
|
1017
1085
|
}> | undefined;
|
1086
|
+
policies?: Record<string, {
|
1087
|
+
name: string;
|
1088
|
+
using?: string | undefined;
|
1089
|
+
as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
|
1090
|
+
for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
|
1091
|
+
to?: string[] | undefined;
|
1092
|
+
withCheck?: string | undefined;
|
1093
|
+
}> | undefined;
|
1018
1094
|
}>;
|
1019
1095
|
id: string;
|
1020
1096
|
prevId: string;
|
@@ -1051,6 +1127,12 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
1051
1127
|
cache?: string | undefined;
|
1052
1128
|
cycle?: boolean | undefined;
|
1053
1129
|
}> | undefined;
|
1130
|
+
roles?: Record<string, {
|
1131
|
+
name: string;
|
1132
|
+
createDb?: boolean | undefined;
|
1133
|
+
createRole?: boolean | undefined;
|
1134
|
+
inherit?: boolean | undefined;
|
1135
|
+
}> | undefined;
|
1054
1136
|
}>;
|
1055
1137
|
type PgSchema = TypeOf<typeof pgSchema>;
|
1056
1138
|
|
@@ -1486,6 +1568,14 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
|
1486
1568
|
columns: string[];
|
1487
1569
|
nullsNotDistinct: boolean;
|
1488
1570
|
}>;
|
1571
|
+
policies: Record<string, {
|
1572
|
+
name: string;
|
1573
|
+
as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
|
1574
|
+
for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
|
1575
|
+
to?: string[] | undefined;
|
1576
|
+
using?: string | undefined;
|
1577
|
+
withCheck?: string | undefined;
|
1578
|
+
}>;
|
1489
1579
|
}>;
|
1490
1580
|
enums: Record<string, {
|
1491
1581
|
values: string[];
|
@@ -1503,6 +1593,12 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
|
1503
1593
|
cache?: string | undefined;
|
1504
1594
|
cycle?: boolean | undefined;
|
1505
1595
|
}>;
|
1596
|
+
roles: Record<string, {
|
1597
|
+
name: string;
|
1598
|
+
createDb?: boolean | undefined;
|
1599
|
+
createRole?: boolean | undefined;
|
1600
|
+
inherit?: boolean | undefined;
|
1601
|
+
}>;
|
1506
1602
|
_meta: {
|
1507
1603
|
tables: Record<string, string>;
|
1508
1604
|
columns: Record<string, string>;
|
package/api.d.ts
CHANGED
@@ -614,6 +614,28 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
614
614
|
columns: string[];
|
615
615
|
nullsNotDistinct: boolean;
|
616
616
|
}>>>;
|
617
|
+
policies: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
618
|
+
name: zod.ZodString;
|
619
|
+
as: zod.ZodOptional<zod.ZodEnum<["PERMISSIVE", "RESTRICTIVE"]>>;
|
620
|
+
for: zod.ZodOptional<zod.ZodEnum<["ALL", "SELECT", "INSERT", "UPDATE", "DELETE"]>>;
|
621
|
+
to: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
622
|
+
using: zod.ZodOptional<zod.ZodString>;
|
623
|
+
withCheck: zod.ZodOptional<zod.ZodString>;
|
624
|
+
}, "strict", zod.ZodTypeAny, {
|
625
|
+
name: string;
|
626
|
+
using?: string | undefined;
|
627
|
+
as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
|
628
|
+
for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
|
629
|
+
to?: string[] | undefined;
|
630
|
+
withCheck?: string | undefined;
|
631
|
+
}, {
|
632
|
+
name: string;
|
633
|
+
using?: string | undefined;
|
634
|
+
as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
|
635
|
+
for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
|
636
|
+
to?: string[] | undefined;
|
637
|
+
withCheck?: string | undefined;
|
638
|
+
}>>>;
|
617
639
|
}, "strict", zod.ZodTypeAny, {
|
618
640
|
name: string;
|
619
641
|
columns: Record<string, {
|
@@ -677,6 +699,14 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
677
699
|
columns: string[];
|
678
700
|
nullsNotDistinct: boolean;
|
679
701
|
}>;
|
702
|
+
policies: Record<string, {
|
703
|
+
name: string;
|
704
|
+
using?: string | undefined;
|
705
|
+
as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
|
706
|
+
for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
|
707
|
+
to?: string[] | undefined;
|
708
|
+
withCheck?: string | undefined;
|
709
|
+
}>;
|
680
710
|
}, {
|
681
711
|
name: string;
|
682
712
|
columns: Record<string, {
|
@@ -740,6 +770,14 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
740
770
|
columns: string[];
|
741
771
|
nullsNotDistinct: boolean;
|
742
772
|
}> | undefined;
|
773
|
+
policies?: Record<string, {
|
774
|
+
name: string;
|
775
|
+
using?: string | undefined;
|
776
|
+
as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
|
777
|
+
for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
|
778
|
+
to?: string[] | undefined;
|
779
|
+
withCheck?: string | undefined;
|
780
|
+
}> | undefined;
|
743
781
|
}>>;
|
744
782
|
enums: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
745
783
|
name: zod.ZodString;
|
@@ -783,6 +821,22 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
783
821
|
cache?: string | undefined;
|
784
822
|
cycle?: boolean | undefined;
|
785
823
|
}>>>;
|
824
|
+
roles: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
825
|
+
name: zod.ZodString;
|
826
|
+
createDb: zod.ZodOptional<zod.ZodBoolean>;
|
827
|
+
createRole: zod.ZodOptional<zod.ZodBoolean>;
|
828
|
+
inherit: zod.ZodOptional<zod.ZodBoolean>;
|
829
|
+
}, "strict", zod.ZodTypeAny, {
|
830
|
+
name: string;
|
831
|
+
createDb?: boolean | undefined;
|
832
|
+
createRole?: boolean | undefined;
|
833
|
+
inherit?: boolean | undefined;
|
834
|
+
}, {
|
835
|
+
name: string;
|
836
|
+
createDb?: boolean | undefined;
|
837
|
+
createRole?: boolean | undefined;
|
838
|
+
inherit?: boolean | undefined;
|
839
|
+
}>>>;
|
786
840
|
_meta: zod.ZodObject<{
|
787
841
|
schemas: zod.ZodRecord<zod.ZodString, zod.ZodString>;
|
788
842
|
tables: zod.ZodRecord<zod.ZodString, zod.ZodString>;
|
@@ -915,6 +969,14 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
915
969
|
columns: string[];
|
916
970
|
nullsNotDistinct: boolean;
|
917
971
|
}>;
|
972
|
+
policies: Record<string, {
|
973
|
+
name: string;
|
974
|
+
using?: string | undefined;
|
975
|
+
as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
|
976
|
+
for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
|
977
|
+
to?: string[] | undefined;
|
978
|
+
withCheck?: string | undefined;
|
979
|
+
}>;
|
918
980
|
}>;
|
919
981
|
id: string;
|
920
982
|
prevId: string;
|
@@ -941,6 +1003,12 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
941
1003
|
cache?: string | undefined;
|
942
1004
|
cycle?: boolean | undefined;
|
943
1005
|
}>;
|
1006
|
+
roles: Record<string, {
|
1007
|
+
name: string;
|
1008
|
+
createDb?: boolean | undefined;
|
1009
|
+
createRole?: boolean | undefined;
|
1010
|
+
inherit?: boolean | undefined;
|
1011
|
+
}>;
|
944
1012
|
internal?: {
|
945
1013
|
tables: Record<string, {
|
946
1014
|
columns: Record<string, {
|
@@ -1015,6 +1083,14 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
1015
1083
|
columns: string[];
|
1016
1084
|
nullsNotDistinct: boolean;
|
1017
1085
|
}> | undefined;
|
1086
|
+
policies?: Record<string, {
|
1087
|
+
name: string;
|
1088
|
+
using?: string | undefined;
|
1089
|
+
as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
|
1090
|
+
for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
|
1091
|
+
to?: string[] | undefined;
|
1092
|
+
withCheck?: string | undefined;
|
1093
|
+
}> | undefined;
|
1018
1094
|
}>;
|
1019
1095
|
id: string;
|
1020
1096
|
prevId: string;
|
@@ -1051,6 +1127,12 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
1051
1127
|
cache?: string | undefined;
|
1052
1128
|
cycle?: boolean | undefined;
|
1053
1129
|
}> | undefined;
|
1130
|
+
roles?: Record<string, {
|
1131
|
+
name: string;
|
1132
|
+
createDb?: boolean | undefined;
|
1133
|
+
createRole?: boolean | undefined;
|
1134
|
+
inherit?: boolean | undefined;
|
1135
|
+
}> | undefined;
|
1054
1136
|
}>;
|
1055
1137
|
type PgSchema = TypeOf<typeof pgSchema>;
|
1056
1138
|
|
@@ -1486,6 +1568,14 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
|
1486
1568
|
columns: string[];
|
1487
1569
|
nullsNotDistinct: boolean;
|
1488
1570
|
}>;
|
1571
|
+
policies: Record<string, {
|
1572
|
+
name: string;
|
1573
|
+
as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
|
1574
|
+
for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
|
1575
|
+
to?: string[] | undefined;
|
1576
|
+
using?: string | undefined;
|
1577
|
+
withCheck?: string | undefined;
|
1578
|
+
}>;
|
1489
1579
|
}>;
|
1490
1580
|
enums: Record<string, {
|
1491
1581
|
values: string[];
|
@@ -1503,6 +1593,12 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
|
1503
1593
|
cache?: string | undefined;
|
1504
1594
|
cycle?: boolean | undefined;
|
1505
1595
|
}>;
|
1596
|
+
roles: Record<string, {
|
1597
|
+
name: string;
|
1598
|
+
createDb?: boolean | undefined;
|
1599
|
+
createRole?: boolean | undefined;
|
1600
|
+
inherit?: boolean | undefined;
|
1601
|
+
}>;
|
1506
1602
|
_meta: {
|
1507
1603
|
tables: Record<string, string>;
|
1508
1604
|
columns: Record<string, string>;
|