@stardeck-customer-apps/data-store-sdk 0.1.0-preview.4 → 0.1.0-preview.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/server/index.js +11 -2
- package/dist/server/index.mjs +11 -2
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -264,8 +264,17 @@ async function createDataStore(options) {
|
|
|
264
264
|
return types.getTypeParser(oid, format);
|
|
265
265
|
})
|
|
266
266
|
};
|
|
267
|
-
const
|
|
268
|
-
const
|
|
267
|
+
const baseSql = neon(connectionString);
|
|
268
|
+
const wrappedSql = {
|
|
269
|
+
query: (queryWithPlaceholders, params, queryOpts) => (
|
|
270
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
271
|
+
baseSql.query(queryWithPlaceholders, params, {
|
|
272
|
+
...queryOpts,
|
|
273
|
+
types: customTypes
|
|
274
|
+
})
|
|
275
|
+
)
|
|
276
|
+
};
|
|
277
|
+
const dialect = new NeonDialect({ neon: wrappedSql });
|
|
269
278
|
return new KyselyClass({
|
|
270
279
|
dialect,
|
|
271
280
|
...options?.kyselyConfig
|
package/dist/server/index.mjs
CHANGED
|
@@ -213,8 +213,17 @@ async function createDataStore(options) {
|
|
|
213
213
|
return types.getTypeParser(oid, format);
|
|
214
214
|
})
|
|
215
215
|
};
|
|
216
|
-
const
|
|
217
|
-
const
|
|
216
|
+
const baseSql = neon(connectionString);
|
|
217
|
+
const wrappedSql = {
|
|
218
|
+
query: (queryWithPlaceholders, params, queryOpts) => (
|
|
219
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
220
|
+
baseSql.query(queryWithPlaceholders, params, {
|
|
221
|
+
...queryOpts,
|
|
222
|
+
types: customTypes
|
|
223
|
+
})
|
|
224
|
+
)
|
|
225
|
+
};
|
|
226
|
+
const dialect = new NeonDialect({ neon: wrappedSql });
|
|
218
227
|
return new KyselyClass({
|
|
219
228
|
dialect,
|
|
220
229
|
...options?.kyselyConfig
|
package/package.json
CHANGED