Repository navigation
v0.4.0 — The Polyglot Engine & CodeMirror Migration #52
abeni16
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
What's New in v0.4.0
🚀 7 New Database Engines
VeloxDB now supports 13 database engines natively with end-to-end connection pooling, schema tree exploration, and dialect-specific execution:
FORMAT JSON)/v2/pipeline) with auth tokenstiberius+tokio-rustls)⚡ Connection Dialog Improvements
72px × 58px) with custom vector icons for all engines.+badge indicating more engines planned for future releases.💡 Architecture Discussion: Why We Moved from Monaco to CodeMirror 6
One of the most foundational architectural evolutions in VeloxDB
v0.4.0is the complete removal of the Monaco Editor in favor of CodeMirror 6. Below is an engineering deep-dive into why this migration was necessary and how it transforms the desktop SQL experience.1. Bundle Size & Startup Latency (Eliminating the Web Worker Overhead)
editor.worker.js,ts.worker.js, etc.). In a cross-platform desktop application built with Tauri, this introduced initial tab-mounting lag and unnecessary memory overhead.2. Fine-Grained Multi-Dialect SQL Parsing
@codemirror/lang-sqlpackage includes first-class dialect definitions with dedicated Lezer grammar AST parsers. In VeloxDBv0.4.0, switching connection engines dynamically reconfigures the editor dialect:PostgreSQLfor Postgres, Supabase, Neon, CockroachDB, TimescaleDBMySQLfor MySQL, MariaDB, TiDB, PlanetScaleSQLitefor SQLite, LibSQL, TursoMSSQLfor Microsoft SQL Server & Azure SQLCassandrafor Apache Cassandra & ScyllaDBStandardSQLfor ClickHouse and DuckDB3. First-Class Support for NoSQL & Key-Value Engines
$match,$group,$project,$lookup,$unwind,$sort, etc.) and collection methods (find,aggregate,insertOne,updateMany, etc.)GET,SET,HGETALL,LPUSH,LRANGE,XADD,INFO, etc.)4. Desktop Memory Footprint & Multi-Tab Stability
EditorState) from visual rendering (EditorView). Inactive tabs can serialize and hold their state with near-zero memory footprint, rendering fresh views on demand with zero memory leaks.Upgrading from v0.3.1: Drop-in upgrade. All existing database connections and saved query drafts are fully preserved.
This discussion was created from the release v0.4.0 — The Polyglot Engine & CodeMirror Migration.
All reactions