File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -87,7 +87,6 @@ replication = [
8787 " dep:tonic" ,
8888 " dep:tonic-web" ,
8989 " dep:tower-http" ,
90- " dep:tower" ,
9190 " dep:hyper-rustls" ,
9291 " dep:futures" ,
9392 " dep:libsql_replication" ,
@@ -113,7 +112,6 @@ remote = [
113112 " dep:tokio" ,
114113 " dep:futures" ,
115114 " dep:bitflags" ,
116- " dep:tower" ,
117115 " dep:hyper-rustls" ,
118116]
119117wasm = [" hrana" ]
Original file line number Diff line number Diff line change 4242//!
4343//! ## Remote database
4444//!
45- //! It is also possible to create a libsql connection that does not open a local datatbase but
45+ //! It is also possible to create a libsql connection that does not open a local database but
4646//! instead sends queries to a remote database.
4747//!
4848//! ```rust,no_run
4949//! # async fn run() {
5050//! use libsql::Builder;
5151//!
52- //! let db = Builder::new_remote("libsql://my-remote-db.com", "my-auth-token").build().await.unwrap();
52+ //! let db = Builder::new_remote("libsql://my-remote-db.com".to_string() , "my-auth-token".to_string() ).build().await.unwrap();
5353//! let conn = db.connect().unwrap();
5454//! conn.execute("CREATE TABLE IF NOT EXISTS users (email TEXT)", ()).await.unwrap();
5555//! conn.execute("INSERT INTO users (email) VALUES ('alice@example.org')", ()).await.unwrap();
You can’t perform that action at this time.
0 commit comments