Quick Start
Installation
Section titled “Installation”Rust (Cargo)
Section titled “Rust (Cargo)”cargo add bql-corecargo install bql-cliNode.js (Coming Soon)
Section titled “Node.js (Coming Soon)”npm install @bql/npmBasic Usage
Section titled “Basic Usage”# Parse and show ASTbql parse -e 'select User { id, name }'
# Transpile to SQLbql transpile -e 'select User { id, name }'Rust Library
Section titled “Rust Library”use bql_core::bql::AstExpressionParser;
fn main() { let parser = AstExpressionParser::new(); let ast = parser.parse("select User { id, name }").unwrap(); println!("{:#?}", ast);}Your First Query
Section titled “Your First Query”SELECT
Section titled “SELECT”-- Select specific fieldsselect User { id, name, email }
-- With filteringselect User { id, name } filter active = true
-- With ordering and limitselect User { name } order by created_at desc limit 10INSERT
Section titled “INSERT”insert User { name := "Alice", email := "alice@example.com", active := true}UPDATE
Section titled “UPDATE”update User filter id = 1 set { name := "Alice Smith"}DELETE
Section titled “DELETE”delete User filter id = 1Next Steps
Section titled “Next Steps”- Learn about SELECT queries in detail
- Explore expressions and operators
- Try the Playground