MCPcopy Create free account

hub / github.com/dckc/rust-sqlite3 / functions

Functions92 in github.com/dckc/rust-sqlite3

↓ 17 callersMethodprepare
Prepare/compile an SQL statement.
src/core.rs:250
↓ 15 callersMethodstep
Execute the next step of a prepared statement.
src/core.rs:559
↓ 13 callersMethodexecute
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 callersFunctiondecode_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 callersMethoddetail_db
(&mut self)
src/core.rs:429
↓ 6 callersMethodcolumn_int
Get `int` value of a column.
src/core.rs:626
↓ 5 callersMethodbind_text
Bind a (copy of a) str to a statement parameter. TODO: support binding without copying strings, blobs
src/core.rs:473
↓ 5 callersMethodexec
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 callersMethodget
(&mut self, idx: I)
src/lib.rs:293
↓ 4 callersFunctionbind_values
(s: &mut PreparedStatement, values: &[&ToSql])
src/lib.rs:270
↓ 4 callersFunctiongo
()
src/core.rs:717
↓ 4 callersFunctionstr_charstar
(s: &str)
src/core.rs:371
↓ 3 callersMethodbind_int
Bind an int to a statement parameter.
src/core.rs:450
↓ 3 callersMethodcolumn_text
Get `Option<String>` (aka text) value of a column.
src/core.rs:647
↓ 3 callersMethodget_opt
(&mut self, idx: I)
src/lib.rs:304
↓ 3 callersFunctionmaybe
why isn't this in std::option?
src/core.rs:190
↓ 2 callersFunctioncharstar_str
Convert from sqlite3 API utf8 to rust str.
src/core.rs:360
↓ 2 callersMethodcolumn_slice
Get `Option<&[u8]>` (aka blob) value of a column.
src/core.rs:662
↓ 2 callersFunctionerror_result
(result: c_int, desc: &'static str, detail: Option<String>)
src/core.rs:696
↓ 2 callersMethodignore_detail
Opt out of copies of error message details.
src/core.rs:230
↓ 2 callersFunctionio
()
tests/ex.rs:31
↓ 2 callersFunctionlose
(why: &str)
tests/opening.rs:46
↓ 2 callersMethodupdate
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 callersFunctionwith_query
(sql: &str, mut f: F)
src/types.rs:168
↓ 2 callersFunctionwith_query
(sql: &str, mut f: F)
src/core.rs:744
↓ 1 callersMethodbind_blob
Bind a (copy of a) byte sequence to a statement parameter. TODO: support binding without copying strings, blobs
src/core.rs:486
↓ 1 callersMethodbind_double
Bind a double to a statement parameter.
src/core.rs:464
↓ 1 callersMethodbind_int64
Bind an int64 to a statement parameter.
src/core.rs:457
↓ 1 callersMethodbind_null
Bind null to a statement parameter.
src/core.rs:443
↓ 1 callersMethodbusy_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 callersMethodchanges
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 callersMethodcolumn_blob
Get `Option<Vec<u8>>` (aka blob) value of a column.
src/core.rs:657
↓ 1 callersMethodcolumn_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 callersMethodcolumn_double
Get `f64` (aka double) value of a column.
src/core.rs:640
↓ 1 callersMethodcolumn_int64
Get `int64` value of a column.
src/core.rs:633
↓ 1 callersMethodcolumn_str
Get `Option<&str>` (aka text) value of a column.
src/core.rs:652
↓ 1 callersMethodcolumn_type
Look up the type of a column. Return `SQLITE_NULL` if there is no such `col`.
src/core.rs:617
↓ 1 callersFunctionconvenience_exec
()
tests/typical.rs:8
↓ 1 callersMethodget_detail
(&mut self)
src/core.rs:438
↓ 1 callersFunctiongo
()
src/types.rs:179
↓ 1 callersFunctiongo
()
src/lib.rs:455
↓ 1 callersMethodidx
Index into a row directly by uint.
src/lib.rs:329
↓ 1 callersFunctionmake_people
(conn: &mut DatabaseConnection)
tests/opening.rs:69
↓ 1 callersMethodopen
(self, db: *mut *mut ffi::sqlite3)
src/core.rs:241
↓ 1 callersMethodprepare_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 callersMethodquery
(&'stmt mut self, values: &[&ToSql], txform: F)
src/lib.rs:234
↓ 1 callersMethodquery_fold
Fold rows from a query after binding parameters.
src/lib.rs:199
↓ 1 callersMethodto_sql
(&self, s: &mut PreparedStatement, ix: ParamIx)
src/types.rs:30
↓ 1 callersFunctiontypical_usage
(conn: &mut DatabaseConnection)
tests/typical.rs:21
↓ 1 callersFunctionuse_access
(access: A)
tests/opening.rs:40
↓ 1 callersMethodwith_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 callersFunctionwith_query
(sql: &str, mut f: F)
src/lib.rs:504
Method_errmsg
(db: *mut ffi::sqlite3)
src/core.rs:297
Functionbind_fun
()
src/lib.rs:454
Methodbind_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
Methodcause
(&self)
src/lib.rs:427
Methodclear_bindings
Clear all parameter bindings.
src/core.rs:498
Functiondb_busy_timeout
()
src/core.rs:716
Functiondb_construct_typechecks
()
src/core.rs:711
Methoddefault
()
src/access/flags.rs:21
Methoddescription
(&self)
src/lib.rs:424
Methoddetail
Get a detailed description of the error
src/lib.rs:418
Functiondetailed_errors
()
src/core.rs:794
Methoddrop
Release resources associated with connection. # Failure Fails if "the database connection is associated with unfinalized prepared statements or unfi
src/core.rs:161
Functionerr_with_detail
()
src/lib.rs:540
Methoderrmsg
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
Methodexpose
Expose the underlying `sqlite3` struct pointer for use with the `ffi` module.
src/core.rs:353
Methodfmt
(&self, f: &mut fmt::Formatter)
src/lib.rs:406
Methodfrom
(err: time::ParseError)
src/types.rs:136
Methodfrom
(_: NulError)
src/core.rs:196
Methodfrom_sql
(row: &ResultRow, col: ColIx)
src/types.rs:36
Functionget_invalid_tm
()
src/types.rs:210
Functionget_tm
()
src/types.rs:178
Methodin_memory
Create connection to an in-memory database. - TODO: integrate sqlite3_errmsg()
src/core.rs:238
Methodlast_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
Functionmain
()
tests/ex.rs:24
Functionmain
()
tests/typical.rs:56
Functionmain
()
tests/opening.rs:18
Functionnamed_rowindex
()
src/lib.rs:515
Methodnew
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
Methodnext
(&mut self)
src/lib.rs:260
Functionno_alloc_errors_db
()
src/core.rs:805
Functionno_alloc_errors_stmt
()
src/core.rs:818
Functionnon_utf8_str
()
src/core.rs:827
Functionopen
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
Methodopen
(self, db: *mut *mut ffi::sqlite3)
src/access/mod.rs:50
Functionopen_file_db
()
src/access/mod.rs:67
Methodquery_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
Functionquery_null_string
()
src/core.rs:779
Functionquery_two_rows
()
src/core.rs:754
Functionselect_blob
()
src/types.rs:225
Functionstmt_new_types
()
src/core.rs:734