diff --git a/diesel-wasm-sqlite/src/connection/mod.rs b/diesel-wasm-sqlite/src/connection/mod.rs index ca52f98b3..86d8bede3 100644 --- a/diesel-wasm-sqlite/src/connection/mod.rs +++ b/diesel-wasm-sqlite/src/connection/mod.rs @@ -36,7 +36,7 @@ use diesel::{ result::QueryResult, row::Field, }; -use diesel_async::{AnsiTransactionManager, AsyncConnection, SimpleAsyncConnection}; +pub use diesel_async::{AnsiTransactionManager, AsyncConnection, SimpleAsyncConnection}; use futures::stream::Stream; use std::{ marker::PhantomData, diff --git a/diesel-wasm-sqlite/src/connection/raw.rs b/diesel-wasm-sqlite/src/connection/raw.rs index c0e20dbc7..fa24ab167 100644 --- a/diesel-wasm-sqlite/src/connection/raw.rs +++ b/diesel-wasm-sqlite/src/connection/raw.rs @@ -602,5 +602,4 @@ extern "C" fn destroy_boxed(data: *mut libc::c_void) { let ptr = data as *mut F; unsafe { std::mem::drop(Box::from_raw(ptr)) }; } - */ diff --git a/diesel-wasm-sqlite/src/wa-sqlite.wasm b/diesel-wasm-sqlite/src/wa-sqlite.wasm deleted file mode 100755 index 203e3e7cd..000000000 Binary files a/diesel-wasm-sqlite/src/wa-sqlite.wasm and /dev/null differ diff --git a/diesel-wasm-sqlite/tests/web.rs b/diesel-wasm-sqlite/tests/web.rs index dd8a6673a..0305c809d 100755 --- a/diesel-wasm-sqlite/tests/web.rs +++ b/diesel-wasm-sqlite/tests/web.rs @@ -1,7 +1,7 @@ #![cfg(target_arch = "wasm32")] use diesel::connection::Connection; -use diesel_wasm_sqlite::rust_establish; +use diesel_wasm_sqlite::connection::{AsyncConnection, WasmSqliteConnection}; use wasm_bindgen_test::*; use web_sys::console; wasm_bindgen_test_configure!(run_in_dedicated_worker); @@ -15,7 +15,7 @@ async fn test_establish() { rng ); */ - let mut conn = rust_establish("test").await.unwrap(); + let mut conn = WasmSqliteConnection::establish("test").await.unwrap(); console::log_1(&"CONNECTED".into()); // assert 1 == 2 is here b/c can't get --nocapture to work yet assert_eq!(1, 2);