Skip to content

Commit

Permalink
feat(quaint): flatten sqlite connector module
Browse files Browse the repository at this point in the history
  • Loading branch information
jkomyno committed Nov 15, 2023
1 parent a9f8ba8 commit 3c1a100
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion quaint/src/connector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pub(crate) mod sqlite;
#[cfg(feature = "sqlite-native")]
pub use sqlite::native::*;
#[cfg(feature = "sqlite")]
pub use sqlite::wasm::common::*;
pub use sqlite::*;

#[cfg(feature = "mssql")]
pub(crate) mod mssql;
Expand Down
10 changes: 7 additions & 3 deletions quaint/src/connector/sqlite.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
pub use wasm::error::SqliteError;
//! Wasm-compatible definitions for the SQLite connector.
//! This module is only available with the `sqlite` feature.
pub(crate) mod error;
mod ffi;
pub(crate) mod params;

#[cfg(feature = "sqlite")]
pub(crate) mod wasm;
pub use error::SqliteError;
pub use params::*;

#[cfg(feature = "sqlite-native")]
pub(crate) mod native;
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion quaint/src/connector/sqlite/native/error.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::connector::sqlite::wasm::error::SqliteError;
use crate::connector::sqlite::error::SqliteError;

use crate::error::*;

Expand Down
2 changes: 1 addition & 1 deletion quaint/src/connector/sqlite/native/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
mod conversion;
mod error;

use crate::connector::sqlite::wasm::common::SqliteParams;
use crate::connector::sqlite::params::SqliteParams;
use crate::connector::IsolationLevel;

pub use rusqlite::{params_from_iter, version as sqlite_version};
Expand Down
File renamed without changes.
5 changes: 0 additions & 5 deletions quaint/src/connector/sqlite/wasm/mod.rs

This file was deleted.

0 comments on commit 3c1a100

Please sign in to comment.