@hamelin.sh/compiler 0.0.5 → 0.0.6

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
@@ -2,6 +2,11 @@
2
2
  /* eslint-disable */
3
3
  type CompileResult = { Ok: Translation } | { Err: ContextualTranslationErrors };
4
4
 
5
+ interface Translation {
6
+ sql: string;
7
+ columns: Column[];
8
+ }
9
+
5
10
  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[] };
6
11
 
7
12
  interface Column {
@@ -43,11 +48,6 @@ type LanguageArea = "FunctionCall" | "Operator" | "Deref" | "IndexAccess" | "Par
43
48
 
44
49
  type Level = "Error" | "Warning" | "Info";
45
50
 
46
- interface Translation {
47
- sql: string;
48
- columns: Column[];
49
- }
50
-
51
51
  declare const compileHamelin: (catalog: Catalog, hamelinInput: string) => Promise<CompileResult>;
52
52
 
53
53
  declare const getFunctionDescriptions: () => Promise<FunctionDescription[]>;