@hamelin.sh/compiler 0.1.29-prerelease.20250521T042027 → 0.1.30

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
@@ -7,6 +7,11 @@ type CompileResult = { Ok: Translation } | { Err: ContextualTranslationErrors };
7
7
 
8
8
  type StatementDatasetsResult = { Ok: string[] } | { Err: ContextualTranslationErrors };
9
9
 
10
+ interface Translation {
11
+ sql: string;
12
+ columns: Column[];
13
+ }
14
+
10
15
  interface FunctionDescription {
11
16
  name: string;
12
17
  parameters: string;
@@ -42,11 +47,6 @@ type LanguageArea = "FunctionCall" | "Operator" | "Deref" | "IndexAccess" | "Par
42
47
 
43
48
  type Level = "Error" | "Warning" | "Info";
44
49
 
45
- interface Translation {
46
- sql: string;
47
- columns: Column[];
48
- }
49
-
50
50
  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[] };
51
51
 
52
52
  interface Column {