sql-middleware 0.2.0

Lightweight async wrappers for tokio-postgres, rusqlite, libsql, turso, and tiberius.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use sql_middleware::benchmark::libsql::get_libsql_instance;
use tokio::runtime::Runtime;

fn main() {
    let rt = Runtime::new().unwrap();
    
    println!("Starting LibSQL benchmark debug...");
    
    rt.block_on(async {
        println!("About to call get_libsql_instance...");
        let config_and_pool = get_libsql_instance().await;
        println!("Got LibSQL instance successfully!");
        
        println!("Config and pool: {:?}", config_and_pool);
    });
    
    println!("Debug completed!");
}