Skip to content

Commit

Permalink
Moved code to modules
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Apr 6, 2024
1 parent fb5e078 commit 350d2ce
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/diesel_ext/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub(crate) mod vector;
File renamed without changes.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ mod diesel_ext;

#[cfg(feature = "diesel")]
pub mod sql_types {
pub use super::diesel_ext::VectorType as Vector;
pub use super::diesel_ext::vector::VectorType as Vector;
}

#[cfg(feature = "diesel")]
pub use diesel_ext::VectorExpressionMethods;
pub use diesel_ext::vector::VectorExpressionMethods;
1 change: 1 addition & 0 deletions src/postgres_ext/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mod vector;
File renamed without changes.
1 change: 1 addition & 0 deletions src/sqlx_ext/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mod vector;
File renamed without changes.
2 changes: 1 addition & 1 deletion src/vector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
use std::convert::TryInto;

#[cfg(feature = "diesel")]
use crate::diesel_ext::VectorType;
use crate::diesel_ext::vector::VectorType;

#[cfg(feature = "diesel")]
use diesel::{deserialize::FromSqlRow, expression::AsExpression};
Expand Down

0 comments on commit 350d2ce

Please sign in to comment.