@latitude-data/query_result
Advanced tools
# @latitude-data/query_result | ||
## 0.3.0-canary.0 | ||
### Minor Changes | ||
- 5c4e829: Support materializing tables with JSONB fields | ||
## 0.2.0 | ||
@@ -4,0 +10,0 @@ |
@@ -8,2 +8,3 @@ export declare enum DataType { | ||
String = "string", | ||
JSONB = "jsonb", | ||
Unknown = "unknown" | ||
@@ -15,5 +16,6 @@ } | ||
}; | ||
export type ResultRow = unknown[]; | ||
type Props = { | ||
fields?: Field[]; | ||
rows?: unknown[][]; | ||
rows?: ResultRow[]; | ||
rowCount?: number; | ||
@@ -23,3 +25,3 @@ }; | ||
fields: Field[]; | ||
rows: unknown[][]; | ||
rows: ResultRow[]; | ||
rowCount: number; | ||
@@ -26,0 +28,0 @@ }; |
@@ -11,2 +11,3 @@ import { json2csv } from 'json-2-csv'; | ||
DataType["String"] = "string"; | ||
DataType["JSONB"] = "jsonb"; | ||
DataType["Unknown"] = "unknown"; | ||
@@ -13,0 +14,0 @@ })(DataType || (DataType = {})); |
{ | ||
"name": "@latitude-data/query_result", | ||
"description": "A library for working with query results at Latitude", | ||
"version": "0.2.0", | ||
"version": "0.3.0-canary.0", | ||
"license": "LGPL", | ||
@@ -6,0 +6,0 @@ "type": "module", |
@@ -1,1 +0,3 @@ | ||
# `@latitude-data/query_result` | ||
# `@latitude-data/query_result` | ||
Query Result is a library that provides a way to interact with the data returned from a query in Latitude. Not meant to be used directly. |
@@ -10,2 +10,3 @@ import { json2csv } from 'json-2-csv' | ||
String = 'string', | ||
JSONB = 'jsonb', | ||
Unknown = 'unknown', | ||
@@ -19,5 +20,6 @@ } | ||
export type ResultRow = unknown[] | ||
type Props = { | ||
fields?: Field[] | ||
rows?: unknown[][] | ||
rows?: ResultRow[] | ||
rowCount?: number | ||
@@ -28,3 +30,3 @@ } | ||
fields: Field[] | ||
rows: unknown[][] | ||
rows: ResultRow[] | ||
rowCount: number | ||
@@ -31,0 +33,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
18103
1.57%294
2.08%4
300%