mirror of
https://github.com/isar/rusqlite.git
synced 2025-04-11 17:57:45 +08:00
commit
844842d311
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@ -202,7 +202,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
with:
|
||||||
components: 'llvm-tools-preview'
|
components: "llvm-tools-preview"
|
||||||
- uses: taiki-e/install-action@main
|
- uses: taiki-e/install-action@main
|
||||||
with:
|
with:
|
||||||
tool: grcov
|
tool: grcov
|
||||||
|
@ -21,7 +21,7 @@ pub fn SQLITE_TRANSIENT() -> sqlite3_destructor_type {
|
|||||||
Some(unsafe { mem::transmute::<isize, unsafe extern "C" fn(*mut std::ffi::c_void)>(-1_isize) })
|
Some(unsafe { mem::transmute::<isize, unsafe extern "C" fn(*mut std::ffi::c_void)>(-1_isize) })
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(clippy::all)]
|
#[allow(dead_code, clippy::all)]
|
||||||
mod bindings {
|
mod bindings {
|
||||||
include!(concat!(env!("OUT_DIR"), "/bindgen.rs"));
|
include!(concat!(env!("OUT_DIR"), "/bindgen.rs"));
|
||||||
}
|
}
|
||||||
|
@ -372,7 +372,7 @@ impl Connection {
|
|||||||
/// The callback parameters are:
|
/// The callback parameters are:
|
||||||
///
|
///
|
||||||
/// - the type of database update (`SQLITE_INSERT`, `SQLITE_UPDATE` or
|
/// - the type of database update (`SQLITE_INSERT`, `SQLITE_UPDATE` or
|
||||||
/// `SQLITE_DELETE`),
|
/// `SQLITE_DELETE`),
|
||||||
/// - the name of the database ("main", "temp", ...),
|
/// - the name of the database ("main", "temp", ...),
|
||||||
/// - the name of the table that is updated,
|
/// - the name of the table that is updated,
|
||||||
/// - the ROWID of the row that is updated.
|
/// - the ROWID of the row that is updated.
|
||||||
|
@ -128,7 +128,7 @@ impl Connection {
|
|||||||
/// - the name of the database ("main", "temp", ...),
|
/// - the name of the database ("main", "temp", ...),
|
||||||
/// - the name of the table that is updated,
|
/// - the name of the table that is updated,
|
||||||
/// - a variant of the PreUpdateCase enum which allows access to extra functions depending
|
/// - a variant of the PreUpdateCase enum which allows access to extra functions depending
|
||||||
/// on whether it's an update, delete or insert.
|
/// on whether it's an update, delete or insert.
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn preupdate_hook<F>(&self, hook: Option<F>)
|
pub fn preupdate_hook<F>(&self, hook: Option<F>)
|
||||||
where
|
where
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
//! - Format 2: "YYYY-MM-DD HH:MM"
|
//! - Format 2: "YYYY-MM-DD HH:MM"
|
||||||
//! - Format 5: "YYYY-MM-DDTHH:MM"
|
//! - Format 5: "YYYY-MM-DDTHH:MM"
|
||||||
//! - Format 8: "HH:MM"
|
//! - Format 8: "HH:MM"
|
||||||
|
//!
|
||||||
//! without an explicit second value will assume 0 seconds.
|
//! without an explicit second value will assume 0 seconds.
|
||||||
//! Time String that contain an optional timezone without an explicit date are unsupported.
|
//! Time String that contain an optional timezone without an explicit date are unsupported.
|
||||||
//! All other assumptions described in [Time Values](https://sqlite.org/lang_datefunc.html#time_values) section are unsupported.
|
//! All other assumptions described in [Time Values](https://sqlite.org/lang_datefunc.html#time_values) section are unsupported.
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
//! Follow these steps to create your own virtual table:
|
//! Follow these steps to create your own virtual table:
|
||||||
//! 1. Write implementation of [`VTab`] and [`VTabCursor`] traits.
|
//! 1. Write implementation of [`VTab`] and [`VTabCursor`] traits.
|
||||||
//! 2. Create an instance of the [`Module`] structure specialized for [`VTab`]
|
//! 2. Create an instance of the [`Module`] structure specialized for [`VTab`]
|
||||||
//! impl. from step 1.
|
//! impl. from step 1.
|
||||||
//! 3. Register your [`Module`] structure using [`Connection::create_module`].
|
//! 3. Register your [`Module`] structure using [`Connection::create_module`].
|
||||||
//! 4. Run a `CREATE VIRTUAL TABLE` command that specifies the new module in the
|
//! 4. Run a `CREATE VIRTUAL TABLE` command that specifies the new module in the
|
||||||
//! `USING` clause.
|
//! `USING` clause.
|
||||||
//!
|
//!
|
||||||
//! (See [SQLite doc](http://sqlite.org/vtab.html))
|
//! (See [SQLite doc](http://sqlite.org/vtab.html))
|
||||||
use std::borrow::Cow::{self, Borrowed, Owned};
|
use std::borrow::Cow::{self, Borrowed, Owned};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user