@hamelin.sh/compiler 0.1.9 → 0.1.11

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 CHANGED
@@ -1,19 +1,5 @@
1
1
  type StatementDatasetsResult = { Ok: string[] } | { Err: ContextualTranslationErrors };
2
2
 
3
- 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[] };
4
-
5
- interface Column {
6
- name: string;
7
- type: HamelinType;
8
- }
9
-
10
- type Catalog = Record<string, Column[]>;
11
-
12
- interface Translation {
13
- sql: string;
14
- columns: Column[];
15
- }
16
-
17
3
  interface FunctionDescription {
18
4
  name: string;
19
5
  parameters: string;
@@ -47,6 +33,20 @@ type LanguageArea = "FunctionCall" | "Operator" | "Deref" | "IndexAccess" | "Par
47
33
 
48
34
  type Level = "Error" | "Warning" | "Info";
49
35
 
36
+ 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[] };
37
+
38
+ interface Column {
39
+ name: string;
40
+ type: HamelinType;
41
+ }
42
+
43
+ type Catalog = Record<string, Column[]>;
44
+
45
+ interface Translation {
46
+ sql: string;
47
+ columns: Column[];
48
+ }
49
+
50
50
  type AugmentedCompileResult = {
51
51
  Ok: Translation;
52
52
  } | {