@hamelin.sh/compiler 0.1.3 → 0.1.4

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