@stardeck-customer-apps/data-store-sdk 0.1.0-preview.4 → 0.1.0-preview.6
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/server/index.js +2 -8
- package/dist/server/index.mjs +2 -8
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -257,14 +257,8 @@ async function createDataStore(options) {
|
|
|
257
257
|
const { Kysely: KyselyClass } = await import("kysely");
|
|
258
258
|
const { NeonDialect } = await import("kysely-neon");
|
|
259
259
|
const { neon, types } = await import("@neondatabase/serverless");
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
getTypeParser: ((oid, format) => {
|
|
263
|
-
if (oid === 1700) return (val) => parseFloat(val);
|
|
264
|
-
return types.getTypeParser(oid, format);
|
|
265
|
-
})
|
|
266
|
-
};
|
|
267
|
-
const sql = neon(connectionString, { types: customTypes });
|
|
260
|
+
types.setTypeParser(1700, (val) => parseFloat(val));
|
|
261
|
+
const sql = neon(connectionString);
|
|
268
262
|
const dialect = new NeonDialect({ neon: sql });
|
|
269
263
|
return new KyselyClass({
|
|
270
264
|
dialect,
|
package/dist/server/index.mjs
CHANGED
|
@@ -206,14 +206,8 @@ async function createDataStore(options) {
|
|
|
206
206
|
const { Kysely: KyselyClass } = await import("kysely");
|
|
207
207
|
const { NeonDialect } = await import("kysely-neon");
|
|
208
208
|
const { neon, types } = await import("@neondatabase/serverless");
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
getTypeParser: ((oid, format) => {
|
|
212
|
-
if (oid === 1700) return (val) => parseFloat(val);
|
|
213
|
-
return types.getTypeParser(oid, format);
|
|
214
|
-
})
|
|
215
|
-
};
|
|
216
|
-
const sql = neon(connectionString, { types: customTypes });
|
|
209
|
+
types.setTypeParser(1700, (val) => parseFloat(val));
|
|
210
|
+
const sql = neon(connectionString);
|
|
217
211
|
const dialect = new NeonDialect({ neon: sql });
|
|
218
212
|
return new KyselyClass({
|
|
219
213
|
dialect,
|
package/package.json
CHANGED