@hamelin.sh/compiler 0.1.21 → 0.1.23
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/main.d.ts +5 -5
- package/dist/main.js +1 -1
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -39,6 +39,11 @@ type LanguageArea = "FunctionCall" | "Operator" | "Deref" | "IndexAccess" | "Par
|
|
|
39
39
|
|
|
40
40
|
type Level = "Error" | "Warning" | "Info";
|
|
41
41
|
|
|
42
|
+
interface Translation {
|
|
43
|
+
sql: string;
|
|
44
|
+
columns: Column[];
|
|
45
|
+
}
|
|
46
|
+
|
|
42
47
|
type HamelinType = "binary" | "boolean" | "interval" | "int" | "double" | "rows" | "string" | "timestamp" | "unknown" | { decimal: { precision: number; scale: number } } | { array: { element_type: HamelinType } } | { map: { key_type: HamelinType; value_type: HamelinType } } | { tuple: { elements: HamelinType[] } } | "variant" | { range: { of: HamelinType } } | { struct: Column[] };
|
|
43
48
|
|
|
44
49
|
interface Column {
|
|
@@ -48,11 +53,6 @@ interface Column {
|
|
|
48
53
|
|
|
49
54
|
type Catalog = Record<string, Column[]>;
|
|
50
55
|
|
|
51
|
-
interface Translation {
|
|
52
|
-
sql: string;
|
|
53
|
-
columns: Column[];
|
|
54
|
-
}
|
|
55
|
-
|
|
56
56
|
declare const compileHamelin: (catalog: Catalog, hamelinInput: string, timeRange?: string) => Promise<CompileResult>;
|
|
57
57
|
|
|
58
58
|
declare const getFunctionDescriptions: () => Promise<FunctionDescription[]>;
|