File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,6 @@ replication = [
87
87
" dep:tonic" ,
88
88
" dep:tonic-web" ,
89
89
" dep:tower-http" ,
90
- " dep:tower" ,
91
90
" dep:hyper-rustls" ,
92
91
" dep:futures" ,
93
92
" dep:libsql_replication" ,
@@ -113,7 +112,6 @@ remote = [
113
112
" dep:tokio" ,
114
113
" dep:futures" ,
115
114
" dep:bitflags" ,
116
- " dep:tower" ,
117
115
" dep:hyper-rustls" ,
118
116
]
119
117
wasm = [" hrana" ]
Original file line number Diff line number Diff line change 42
42
//!
43
43
//! ## Remote database
44
44
//!
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
46
46
//! instead sends queries to a remote database.
47
47
//!
48
48
//! ```rust,no_run
49
49
//! # async fn run() {
50
50
//! use libsql::Builder;
51
51
//!
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();
53
53
//! let conn = db.connect().unwrap();
54
54
//! conn.execute("CREATE TABLE IF NOT EXISTS users (email TEXT)", ()).await.unwrap();
55
55
//! conn.execute("INSERT INTO users (email) VALUES ('[email protected] ')", ()).await.unwrap();
You can’t perform that action at this time.
0 commit comments