@prisma/adapter-libsql 6.2.0-dev.3 → 6.2.0-dev.5
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.js +4 -2
- package/dist/index.mjs +4 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -79,14 +79,16 @@ function mapDeclType(declType) {
|
|
|
79
79
|
return import_driver_adapter_utils.ColumnTypeEnum.Bytes;
|
|
80
80
|
case "BOOLEAN":
|
|
81
81
|
return import_driver_adapter_utils.ColumnTypeEnum.Boolean;
|
|
82
|
+
case "JSONB":
|
|
83
|
+
return import_driver_adapter_utils.ColumnTypeEnum.Json;
|
|
82
84
|
default:
|
|
83
85
|
debug("unknown decltype:", declType);
|
|
84
86
|
return null;
|
|
85
87
|
}
|
|
86
88
|
}
|
|
87
|
-
function mapDeclaredColumnTypes(
|
|
89
|
+
function mapDeclaredColumnTypes(columnTypes) {
|
|
88
90
|
const emptyIndices = /* @__PURE__ */ new Set();
|
|
89
|
-
const result =
|
|
91
|
+
const result = columnTypes.map((typeName, index) => {
|
|
90
92
|
const mappedType = mapDeclType(typeName);
|
|
91
93
|
if (mappedType === null) {
|
|
92
94
|
emptyIndices.add(index);
|
package/dist/index.mjs
CHANGED
|
@@ -53,14 +53,16 @@ function mapDeclType(declType) {
|
|
|
53
53
|
return ColumnTypeEnum.Bytes;
|
|
54
54
|
case "BOOLEAN":
|
|
55
55
|
return ColumnTypeEnum.Boolean;
|
|
56
|
+
case "JSONB":
|
|
57
|
+
return ColumnTypeEnum.Json;
|
|
56
58
|
default:
|
|
57
59
|
debug("unknown decltype:", declType);
|
|
58
60
|
return null;
|
|
59
61
|
}
|
|
60
62
|
}
|
|
61
|
-
function mapDeclaredColumnTypes(
|
|
63
|
+
function mapDeclaredColumnTypes(columnTypes) {
|
|
62
64
|
const emptyIndices = /* @__PURE__ */ new Set();
|
|
63
|
-
const result =
|
|
65
|
+
const result = columnTypes.map((typeName, index) => {
|
|
64
66
|
const mappedType = mapDeclType(typeName);
|
|
65
67
|
if (mappedType === null) {
|
|
66
68
|
emptyIndices.add(index);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/adapter-libsql",
|
|
3
|
-
"version": "6.2.0-dev.
|
|
3
|
+
"version": "6.2.0-dev.5",
|
|
4
4
|
"description": "Prisma's driver adapter for libSQL and Turso",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"sideEffects": false,
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"async-mutex": "0.5.0",
|
|
35
|
-
"@prisma/driver-adapter-utils": "6.2.0-dev.
|
|
35
|
+
"@prisma/driver-adapter-utils": "6.2.0-dev.5"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@libsql/client": "0.8.0"
|