mirror of
https://github.com/fluencelabs/sqlite-wasm-connector
synced 2025-04-25 16:52:15 +00:00
A cosmetic adjustment
This commit is contained in:
parent
825afe4537
commit
c4772f7dd8
@ -149,17 +149,6 @@ impl Bindable for i64 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Bindable for () {
|
|
||||||
#[inline]
|
|
||||||
fn bind(&self, statement: &mut Statement, i: usize) -> Result<()> {
|
|
||||||
debug_assert!(i > 0, "the indexing starts from 1");
|
|
||||||
unsafe {
|
|
||||||
ok!(statement.raw.1, ffi::sqlite3_bind_null(statement.raw.0, i as c_int));
|
|
||||||
}
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl<'l> Bindable for &'l str {
|
impl<'l> Bindable for &'l str {
|
||||||
#[inline]
|
#[inline]
|
||||||
fn bind(&self, statement: &mut Statement, i: usize) -> Result<()> {
|
fn bind(&self, statement: &mut Statement, i: usize) -> Result<()> {
|
||||||
@ -172,6 +161,17 @@ impl<'l> Bindable for &'l str {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl Bindable for () {
|
||||||
|
#[inline]
|
||||||
|
fn bind(&self, statement: &mut Statement, i: usize) -> Result<()> {
|
||||||
|
debug_assert!(i > 0, "the indexing starts from 1");
|
||||||
|
unsafe {
|
||||||
|
ok!(statement.raw.1, ffi::sqlite3_bind_null(statement.raw.0, i as c_int));
|
||||||
|
}
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl Readable for Value {
|
impl Readable for Value {
|
||||||
fn read(statement: &Statement, i: usize) -> Result<Self> {
|
fn read(statement: &Statement, i: usize) -> Result<Self> {
|
||||||
Ok(match statement.kind(i) {
|
Ok(match statement.kind(i) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user