Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dckc/rust-sqlite3
/ functions
Functions
92 in github.com/dckc/rust-sqlite3
⨍
Functions
92
◇
Types & classes
45
↓ 17 callers
Method
prepare
Prepare/compile an SQL statement.
src/core.rs:250
↓ 15 callers
Method
step
Execute the next step of a prepared statement.
src/core.rs:559
↓ 13 callers
Method
execute
Begin executing a statement. An sqlite "row" only lasts until the next call to `ffi::sqlite3_step()`, so `ResultSet` has a corresponding lifetime con
src/core.rs:413
↓ 10 callers
Function
decode_result
Decode SQLite result as `SqliteResult`. Note the use of the `Result<T, E>` pattern to distinguish errors in the type system. # Panic Panics if resu
src/core.rs:683
↓ 7 callers
Method
detail_db
(&mut self)
src/core.rs:429
↓ 6 callers
Method
column_int
Get `int` value of a column.
src/core.rs:626
↓ 5 callers
Method
bind_text
Bind a (copy of a) str to a statement parameter. TODO: support binding without copying strings, blobs
src/core.rs:473
↓ 5 callers
Method
exec
One-Step Query Execution Interface cf [sqlite3_exec][exec] [exec]: http://www.sqlite.org/c3ref/exec.html - TODO: callback support? - TODO: errmsg su
src/core.rs:310
↓ 5 callers
Method
get
(&mut self, idx: I)
src/lib.rs:293
↓ 4 callers
Function
bind_values
(s: &mut PreparedStatement, values: &[&ToSql])
src/lib.rs:270
↓ 4 callers
Function
go
()
src/core.rs:717
↓ 4 callers
Function
str_charstar
(s: &str)
src/core.rs:371
↓ 3 callers
Method
bind_int
Bind an int to a statement parameter.
src/core.rs:450
↓ 3 callers
Method
column_text
Get `Option<String>` (aka text) value of a column.
src/core.rs:647
↓ 3 callers
Method
get_opt
(&mut self, idx: I)
src/lib.rs:304
↓ 3 callers
Function
maybe
why isn't this in std::option?
src/core.rs:190
↓ 2 callers
Function
charstar_str
Convert from sqlite3 API utf8 to rust str.
src/core.rs:360
↓ 2 callers
Method
column_slice
Get `Option<&[u8]>` (aka blob) value of a column.
src/core.rs:662
↓ 2 callers
Function
error_result
(result: c_int, desc: &'static str, detail: Option<String>)
src/core.rs:696
↓ 2 callers
Method
ignore_detail
Opt out of copies of error message details.
src/core.rs:230
↓ 2 callers
Function
io
()
tests/ex.rs:31
↓ 2 callers
Function
lose
(why: &str)
tests/opening.rs:46
↓ 2 callers
Method
update
Execute a statement after binding any parameters. When the statement is done, The [number of rows modified][changes] is reported. Fail with `Err(SQL
src/lib.rs:137
↓ 2 callers
Function
with_query
(sql: &str, mut f: F)
src/types.rs:168
↓ 2 callers
Function
with_query
(sql: &str, mut f: F)
src/core.rs:744
↓ 1 callers
Method
bind_blob
Bind a (copy of a) byte sequence to a statement parameter. TODO: support binding without copying strings, blobs
src/core.rs:486
↓ 1 callers
Method
bind_double
Bind a double to a statement parameter.
src/core.rs:464
↓ 1 callers
Method
bind_int64
Bind an int64 to a statement parameter.
src/core.rs:457
↓ 1 callers
Method
bind_null
Bind null to a statement parameter.
src/core.rs:443
↓ 1 callers
Method
busy_timeout
Set a busy timeout and clear any previously set handler. If duration is zero or negative, turns off busy handler.
src/core.rs:335
↓ 1 callers
Method
changes
Return the number of database rows that were changed or inserted or deleted by the most recently completed SQL statement. cf `sqlite3_changes`.
src/core.rs:327
↓ 1 callers
Method
column_blob
Get `Option<Vec<u8>>` (aka blob) value of a column.
src/core.rs:657
↓ 1 callers
Method
column_count
cf `sqlite3_column_count` TODO: consider returning Option<uint> "This routine returns 0 if pStmt is an SQL statement that does not return data (for e
src/core.rs:593
↓ 1 callers
Method
column_double
Get `f64` (aka double) value of a column.
src/core.rs:640
↓ 1 callers
Method
column_int64
Get `int64` value of a column.
src/core.rs:633
↓ 1 callers
Method
column_str
Get `Option<&str>` (aka text) value of a column.
src/core.rs:652
↓ 1 callers
Method
column_type
Look up the type of a column. Return `SQLITE_NULL` if there is no such `col`.
src/core.rs:617
↓ 1 callers
Function
convenience_exec
()
tests/typical.rs:8
↓ 1 callers
Method
get_detail
(&mut self)
src/core.rs:438
↓ 1 callers
Function
go
()
src/types.rs:179
↓ 1 callers
Function
go
()
src/lib.rs:455
↓ 1 callers
Method
idx
Index into a row directly by uint.
src/lib.rs:329
↓ 1 callers
Function
make_people
(conn: &mut DatabaseConnection)
tests/opening.rs:69
↓ 1 callers
Method
open
(self, db: *mut *mut ffi::sqlite3)
src/core.rs:241
↓ 1 callers
Method
prepare_with_offset
Prepare/compile an SQL statement and give offset to remaining text. TODO: give caller a safe way to use the offset. Perhaps return a &'x str?
src/core.rs:261
↓ 1 callers
Method
query
(&'stmt mut self, values: &[&ToSql], txform: F)
src/lib.rs:234
↓ 1 callers
Method
query_fold
Fold rows from a query after binding parameters.
src/lib.rs:199
↓ 1 callers
Method
to_sql
(&self, s: &mut PreparedStatement, ix: ParamIx)
src/types.rs:30
↓ 1 callers
Function
typical_usage
(conn: &mut DatabaseConnection)
tests/typical.rs:21
↓ 1 callers
Function
use_access
(access: A)
tests/opening.rs:40
↓ 1 callers
Method
with_column_name
Look up a column name and compute some function of it. Return `default` if there is no column `i` cf `sqlite_column_name`
src/core.rs:604
↓ 1 callers
Function
with_query
(sql: &str, mut f: F)
src/lib.rs:504
Method
_errmsg
(db: *mut ffi::sqlite3)
src/core.rs:297
Function
bind_fun
()
src/lib.rs:454
Method
bind_parameter_count
Return the number of SQL parameters. If parameters of the ?NNN form are used, there may be gaps in the list.
src/core.rs:505
Method
cause
(&self)
src/lib.rs:427
Method
clear_bindings
Clear all parameter bindings.
src/core.rs:498
Function
db_busy_timeout
()
src/core.rs:716
Function
db_construct_typechecks
()
src/core.rs:711
Method
default
()
src/access/flags.rs:21
Method
description
(&self)
src/lib.rs:424
Method
detail
Get a detailed description of the error
src/lib.rs:418
Function
detailed_errors
()
src/core.rs:794
Method
drop
Release resources associated with connection. # Failure Fails if "the database connection is associated with unfinalized prepared statements or unfi
src/core.rs:161
Function
err_with_detail
()
src/lib.rs:540
Method
errmsg
Return a copy of the latest error message. Return `""` in case of ill-formed utf-8 or null. TODO: represent error state in types: "If a prior API ca
src/core.rs:293
Method
expose
Expose the underlying `sqlite3` struct pointer for use with the `ffi` module.
src/core.rs:353
Method
fmt
(&self, f: &mut fmt::Formatter)
src/lib.rs:406
Method
from
(err: time::ParseError)
src/types.rs:136
Method
from
(_: NulError)
src/core.rs:196
Method
from_sql
(row: &ResultRow, col: ColIx)
src/types.rs:36
Function
get_invalid_tm
()
src/types.rs:210
Function
get_tm
()
src/types.rs:178
Method
in_memory
Create connection to an in-memory database. - TODO: integrate sqlite3_errmsg()
src/core.rs:238
Method
last_insert_rowid
Return the rowid of the most recent successful INSERT into a rowid table or virtual table. cf `sqlite3_last_insert_rowid`
src/core.rs:347
Function
main
()
tests/ex.rs:24
Function
main
()
tests/typical.rs:56
Function
main
()
tests/opening.rs:18
Function
named_rowindex
()
src/lib.rs:515
Method
new
Given explicit access to a database, attempt to connect to it. Note `SqliteError` code is accompanied by (copy) of `sqlite3_errmsg()`.
src/core.rs:209
Method
next
(&mut self)
src/lib.rs:260
Function
no_alloc_errors_db
()
src/core.rs:805
Function
no_alloc_errors_stmt
()
src/core.rs:818
Function
non_utf8_str
()
src/core.rs:827
Function
open
Open a database by filename. TODO: test for "Note that `sqlite3_open()` can be used to either open existing database files or to create and open new
src/access/mod.rs:34
Method
open
(self, db: *mut *mut ffi::sqlite3)
src/access/mod.rs:50
Function
open_file_db
()
src/access/mod.rs:67
Method
query_each
Process rows from a query after binding parameters. For call `each_row(row)` for each resulting step, exiting on `Err`.
src/lib.rs:172
Function
query_null_string
()
src/core.rs:779
Function
query_two_rows
()
src/core.rs:754
Function
select_blob
()
src/types.rs:225
Function
stmt_new_types
()
src/core.rs:734