Expand description

MultiSQL

multisql is a highly modular SQL database engine library written in Rust. It enables flexible querying via Rust interfaces.

Examples

use gluesql::{SledStorage, Storage, Glue};
fn main() {
	let storage = SledStorage::new(&path)
		.map(Storage::new_sled)
		.expect("Create Storage");
	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

Enums

Traits

Functions

Type Definitions