Skip to content

Commit ed967bf

Browse files
committed
v5.6.22
1 parent 93d979f commit ed967bf

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nshiab/simple-data-analysis",
3-
"version": "5.6.21",
3+
"version": "5.6.22",
44
"exports": {
55
".": "./src/index.ts"
66
},

llm.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,10 +319,13 @@ console.log(extensions); // Output: [{ extension_name: "spatial", loaded: true,
319319

320320
Executes a custom SQL query directly against the DuckDB instance.
321321

322+
If you want to force the returned data to match the types of the columns, you
323+
can use the `types` option.
324+
322325
##### Signature
323326

324327
```typescript
325-
async customQuery(query: string, options?: { returnDataFrom?: "query" | "none"; table?: string }): Promise<Record<string, string | number | boolean | Date | null>[] | null>;
328+
async customQuery(query: string, options?: { returnDataFrom?: "query" | "none"; table?: string; types?: Record<string, string> }): Promise<Record<string, string | number | boolean | Date | null>[] | null>;
326329
```
327330

328331
##### Parameters
@@ -334,6 +337,8 @@ async customQuery(query: string, options?: { returnDataFrom?: "query" | "none";
334337
data.
335338
- **`options.table`**: - The name of the table associated with the query,
336339
primarily used for debugging and logging.
340+
- **`options.types`**: - An optional object specifying data types for the query
341+
parameters.
337342

338343
##### Returns
339344

0 commit comments

Comments
 (0)