@prisma-next/target-postgres 0.4.0-dev.2 → 0.4.0-dev.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/control.mjs +15 -42
- package/dist/control.mjs.map +1 -1
- package/package.json +16 -16
package/dist/control.mjs
CHANGED
|
@@ -2032,43 +2032,16 @@ const postgresDefaultFunctionRegistryEntries = [
|
|
|
2032
2032
|
usageSignatures: ["dbgenerated(\"...\")"]
|
|
2033
2033
|
}]
|
|
2034
2034
|
];
|
|
2035
|
-
const
|
|
2036
|
-
["String",
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
["
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
["
|
|
2045
|
-
codecId: "pg/int4@1",
|
|
2046
|
-
nativeType: "int4"
|
|
2047
|
-
}],
|
|
2048
|
-
["BigInt", {
|
|
2049
|
-
codecId: "pg/int8@1",
|
|
2050
|
-
nativeType: "int8"
|
|
2051
|
-
}],
|
|
2052
|
-
["Float", {
|
|
2053
|
-
codecId: "pg/float8@1",
|
|
2054
|
-
nativeType: "float8"
|
|
2055
|
-
}],
|
|
2056
|
-
["Decimal", {
|
|
2057
|
-
codecId: "pg/numeric@1",
|
|
2058
|
-
nativeType: "numeric"
|
|
2059
|
-
}],
|
|
2060
|
-
["DateTime", {
|
|
2061
|
-
codecId: "pg/timestamptz@1",
|
|
2062
|
-
nativeType: "timestamptz"
|
|
2063
|
-
}],
|
|
2064
|
-
["Json", {
|
|
2065
|
-
codecId: "pg/jsonb@1",
|
|
2066
|
-
nativeType: "jsonb"
|
|
2067
|
-
}],
|
|
2068
|
-
["Bytes", {
|
|
2069
|
-
codecId: "pg/bytea@1",
|
|
2070
|
-
nativeType: "bytea"
|
|
2071
|
-
}]
|
|
2035
|
+
const postgresScalarTypeDescriptors = new Map([
|
|
2036
|
+
["String", "pg/text@1"],
|
|
2037
|
+
["Boolean", "pg/bool@1"],
|
|
2038
|
+
["Int", "pg/int4@1"],
|
|
2039
|
+
["BigInt", "pg/int8@1"],
|
|
2040
|
+
["Float", "pg/float8@1"],
|
|
2041
|
+
["Decimal", "pg/numeric@1"],
|
|
2042
|
+
["DateTime", "pg/timestamptz@1"],
|
|
2043
|
+
["Json", "pg/jsonb@1"],
|
|
2044
|
+
["Bytes", "pg/bytea@1"]
|
|
2072
2045
|
]);
|
|
2073
2046
|
function createPostgresDefaultFunctionRegistry() {
|
|
2074
2047
|
return new Map(postgresDefaultFunctionRegistryEntries);
|
|
@@ -2092,16 +2065,16 @@ function createPostgresMutationDefaultGeneratorDescriptors() {
|
|
|
2092
2065
|
}
|
|
2093
2066
|
}));
|
|
2094
2067
|
}
|
|
2095
|
-
function
|
|
2096
|
-
return new Map(
|
|
2068
|
+
function createPostgresScalarTypeDescriptors() {
|
|
2069
|
+
return new Map(postgresScalarTypeDescriptors);
|
|
2097
2070
|
}
|
|
2098
2071
|
var control_default$1 = {
|
|
2099
2072
|
...postgresAdapterDescriptorMeta,
|
|
2100
|
-
|
|
2101
|
-
controlMutationDefaults:
|
|
2073
|
+
scalarTypeDescriptors: createPostgresScalarTypeDescriptors(),
|
|
2074
|
+
controlMutationDefaults: {
|
|
2102
2075
|
defaultFunctionRegistry: createPostgresDefaultFunctionRegistry(),
|
|
2103
2076
|
generatorDescriptors: createPostgresMutationDefaultGeneratorDescriptors()
|
|
2104
|
-
}
|
|
2077
|
+
},
|
|
2105
2078
|
create() {
|
|
2106
2079
|
return new PostgresControlAdapter();
|
|
2107
2080
|
}
|