Skip to content

Commit

Permalink
fix: rustfmt and libsqlite3-sys feature from
Browse files Browse the repository at this point in the history
`bundled-bindings` to `bundled` to support jsonb.
  • Loading branch information
xuehaonan27 committed Dec 12, 2024
1 parent 61c8c38 commit 287c9f6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion diesel/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ include = [
byteorder = { version = "1.0", optional = true }
chrono = { version = "0.4.20", optional = true, default-features = false, features = ["clock", "std"] }
libc = { version = "0.2.0", optional = true }
libsqlite3-sys = { version = ">=0.17.2, <0.31.0", optional = true, features = ["bundled_bindings"] }
libsqlite3-sys = { version = ">=0.17.2, <0.31.0", optional = true, features = ["bundled"] }
mysqlclient-sys = { version = ">=0.2.5, <0.5.0", optional = true }
mysqlclient-src = { version = "0.1.0", optional = true }
pq-sys = { version = ">=0.4.0, <0.7.0", optional = true }
Expand Down
4 changes: 2 additions & 2 deletions diesel/src/sqlite/expression/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ define_sql_function! {
/// # use serde_json::{json, Value};
/// # use diesel::sql_types::{Text, Json, Jsonb, Nullable};
/// # let connection = &mut establish_connection();
///
///
/// let result = diesel::select(json::<Json, _>(json!({"a": "b", "c": 1})))
/// .get_result::<String>(connection)?;
///
Expand Down Expand Up @@ -100,7 +100,7 @@ define_sql_function! {
///
/// assert!(result.is_none());
/// println!("json null");
///
///
/// let result = diesel::select(jsonb::<Nullable<Jsonb>, _>(None::<Value>))
/// .get_result::<Option<Value>>(connection)?;
///
Expand Down
4 changes: 2 additions & 2 deletions diesel/src/sqlite/expression/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ pub(crate) mod helper_types;
mod operators;

/// SQLite specific expression DSL methods.
///
///
/// This module will be glob imported by
/// [`diesel::dsl`](crate::dsl) when compiled with the `feature =
/// "postgres"` flag.
pub mod dsl {
#[doc(inline)]
pub use super::functions::*;
}
}

0 comments on commit 287c9f6

Please sign in to comment.