VibeSQL
SQL:1999 compliant database in Rust, 100% AI-generated
Live Demo | CLI Guide | Python Bindings | Conformance Report
Highlights
- 100% SQL:1999 Core compliance - 739/739 sqltest tests passing
- 100% SQLLogicTest conformance - 624 files (~5.9M tests)
- Full-featured CLI with PostgreSQL-compatible commands
- Python bindings with DB-API 2.0 interface
- WebAssembly - runs in the browser
- 215,000+ lines of Rust across 11 crates
Built entirely by AI agents using Claude Code and Loom.
Quick Start
# Clone and build
# Run the CLI
# Or try the web demo
&& &&
CLI Example
));
));
;
| | |
| | |
| | |
See CLI Guide for meta-commands, output formats, and import/export.
Python
=
=
# [(1, 'Hello')]
See Python Bindings Guide for full API reference.
Features
SQL Support
- Queries: SELECT, JOINs (INNER/LEFT/RIGHT/FULL/CROSS), subqueries, CTEs, UNION/INTERSECT/EXCEPT
- DML: INSERT, UPDATE, DELETE, TRUNCATE
- DDL: CREATE/ALTER/DROP TABLE, views, indexes, schemas
- Aggregates: COUNT, SUM, AVG, MIN, MAX with GROUP BY/HAVING
- Window functions: ROW_NUMBER, RANK, DENSE_RANK, LAG, LEAD
- Transactions: BEGIN, COMMIT, ROLLBACK, savepoints
- Security: GRANT/REVOKE with full privilege enforcement
Advanced Features
- Views with OR REPLACE and column lists
- Stored procedures and functions (IN/OUT/INOUT parameters)
- Full-text search (MATCH AGAINST)
- Spatial functions (ST_* library)
- Triggers (BEFORE/AFTER)
Performance
- Columnar execution with SIMD acceleration
- Cost-based join reordering
- Hash joins for equi-joins
- Predicate pushdown
- Expression caching
Development
# Full build, test, and benchmark (runs in background)
# Individual targets
Documentation
| Guide | Description |
|---|---|
| CLI Guide | Command-line interface |
| Python Bindings | Python API reference |
| ODBC/JDBC | Database connectivity |
| Roadmap | Future plans |
| History | Development timeline |
Project Background
This project originated from a challenge about AI capabilities: implement a NIST-compatible SQL database from scratch. Core SQL:1999 compliance was achieved in under 2 weeks (Oct 25 - Nov 1, 2025).
Inspired by posix4e/nistmemsql.
License
MIT OR Apache-2.0. See LICENSE-MIT and LICENSE-APACHE.
Contributing
See CLAUDE.md for development workflow with Loom AI orchestration.