Skip to content

Commit 62b48aa

Browse files
committed
add python generator file and spec
1 parent f84b1fd commit 62b48aa

4 files changed

Lines changed: 792 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ scripts/**.js
55
dist
66
.DS_Store
77
!.vscode
8+
__marimo__

src/data/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Generating SQL Dialects and Keywords
2+
3+
Dialects enable CodeMirror to provide SQL syntax highlighting.
4+
5+
Keywords allow CodeMirror to offer SQL autocompletion and display hover tooltips.
6+
7+
| Database | How to Run Spec Script |
8+
| -------- | --------------------------------------- |
9+
| DuckDB | `python src/data/duckdb/spec_duckdb.py` |
10+
11+
> 💡 **Tip:** Update the script path to match your target SQL dialect.
12+
> Running the script will automatically generate the keywords and types for the corresponding `*.ts` dialect file.
13+
14+
> 🚀 **Quick Start:**
15+
> To open and run the script interactively in marimo, use:
16+
> `uvx marimo edit <path-to-script>`

0 commit comments

Comments
 (0)