mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-26 11:31:37 +08:00
Rustfmt
This commit is contained in:
parent
4dbfdc85fe
commit
611c8e8b02
@ -68,8 +68,8 @@ pub struct Blob<'conn> {
|
||||
}
|
||||
|
||||
impl Connection {
|
||||
/// `feature = "blob"` Open a handle to the BLOB located in `row_id`, `column`,
|
||||
/// `table` in database `db`.
|
||||
/// `feature = "blob"` Open a handle to the BLOB located in `row_id`,
|
||||
/// `column`, `table` in database `db`.
|
||||
///
|
||||
/// # Failure
|
||||
///
|
||||
|
@ -19,8 +19,8 @@ use crate::{errmsg_to_string, str_to_cstring, Connection, DatabaseName, Result};
|
||||
|
||||
// https://sqlite.org/session.html
|
||||
|
||||
/// `feature = "session"` An instance of this object is a session that can be used to record changes
|
||||
/// to a database.
|
||||
/// `feature = "session"` An instance of this object is a session that can be
|
||||
/// used to record changes to a database.
|
||||
pub struct Session<'conn> {
|
||||
phantom: PhantomData<&'conn ()>,
|
||||
s: *mut ffi::sqlite3_session,
|
||||
@ -377,8 +377,8 @@ impl Drop for ChangesetIter<'_> {
|
||||
}
|
||||
}
|
||||
|
||||
/// `feature = "session"` An item passed to a conflict-handler by `Connection::apply`,
|
||||
/// or an item generated by `ChangesetIter::next`.
|
||||
/// `feature = "session"` An item passed to a conflict-handler by
|
||||
/// `Connection::apply`, or an item generated by `ChangesetIter::next`.
|
||||
// TODO enum ? Delete, Insert, Update, ...
|
||||
pub struct ChangesetItem {
|
||||
it: *mut ffi::sqlite3_changeset_iter,
|
||||
|
@ -757,8 +757,9 @@ impl Statement<'_> {
|
||||
ffi::SQLITE_TEXT => {
|
||||
let s = unsafe {
|
||||
// Quoting from "Using SQLite" book:
|
||||
// To avoid problems, an application should first extract the desired type using a sqlite3_column_xxx() function,
|
||||
// and then call the appropriate sqlite3_column_bytes() function.
|
||||
// To avoid problems, an application should first extract the desired type using
|
||||
// a sqlite3_column_xxx() function, and then call the
|
||||
// appropriate sqlite3_column_bytes() function.
|
||||
let text = ffi::sqlite3_column_text(raw, col as c_int);
|
||||
let len = ffi::sqlite3_column_bytes(raw, col as c_int);
|
||||
assert!(
|
||||
|
@ -396,7 +396,8 @@ impl IndexConstraint<'_> {
|
||||
}
|
||||
}
|
||||
|
||||
/// `feature = "vtab"` Information about what parameters to pass to `VTabCursor.filter`.
|
||||
/// `feature = "vtab"` Information about what parameters to pass to
|
||||
/// `VTabCursor.filter`.
|
||||
pub struct IndexConstraintUsage<'a>(&'a mut ffi::sqlite3_index_constraint_usage);
|
||||
|
||||
impl IndexConstraintUsage<'_> {
|
||||
@ -477,7 +478,8 @@ pub trait VTabCursor: Sized {
|
||||
fn rowid(&self) -> Result<i64>;
|
||||
}
|
||||
|
||||
/// `feature = "vtab"` Context is used by `VTabCursor.column` to specify the cell value.
|
||||
/// `feature = "vtab"` Context is used by `VTabCursor.column` to specify the
|
||||
/// cell value.
|
||||
pub struct Context(*mut ffi::sqlite3_context);
|
||||
|
||||
impl Context {
|
||||
|
Loading…
Reference in New Issue
Block a user