Expand description
MultiSQL
multisql
is a highly modular SQL database engine library written in Rust.
It enables flexible querying via Rust interfaces.
Examples
use multisql::{SledStorage, Storage, Glue};
let storage = SledStorage::new("data/example_location/lib_example")
.map(Storage::new_sled)
.expect("Storage Creation Failed");
let mut glue = Glue::new(String::from("main"), storage);
glue.execute_many("
DROP TABLE IF EXISTS test;
CREATE TABLE test (id INTEGER);
INSERT INTO test VALUES (1),(2);
SELECT * FROM test WHERE id > 1;
");
See also
- Glue – Primary interface
- Storage – Needed to build an interface
- SledStorage – Most common type of storage/backend
- Value – Value wrapper
Re-exports
pub use sqlparser as parser;
Structs
Glue
Enums
Value
Traits
Store
-> SELECT
StoreMut
-> INSERT
, CREATE
, DELETE
, DROP
, UPDATE