var searchIndex = {}; searchIndex["rusqlite"] = {"doc":"Rusqlite is an ergonomic wrapper for using SQLite from Rust. It attempts to expose\nan interface similar to [rust-postgres](https://github.com/sfackler/rust-postgres).","items":[[3,"SqliteTransaction","rusqlite","Represents a transaction on a database connection.",null,null],[3,"SqliteError","","Encompasses an error result from a call to the SQLite C API.",null,null],[12,"code","","The error code returned by a SQLite C API call. See [SQLite Result\nCodes](http://www.sqlite.org/rescode.html) for details.",0,null],[12,"message","","The error message provided by [sqlite3_errmsg](http://www.sqlite.org/c3ref/errcode.html),\nif possible, or a generic error message based on `code` otherwise.",0,null],[3,"SqliteConnection","","A connection to a SQLite database.",null,null],[3,"SqliteOpenFlags","","Flags for opening SQLite database connections.\nSee [sqlite3_open_v2](http://www.sqlite.org/c3ref/open.html) for details.",null,null],[3,"SqliteStatement","","A prepared statement.",null,null],[3,"MappedRows","","An iterator over the mapped resulting rows of a query.",null,null],[3,"AndThenRows","","An iterator over the mapped resulting rows of a query, with an Error type\nunifying with SqliteError.",null,null],[3,"SqliteRows","","An iterator over the resulting rows of a query.",null,null],[3,"SqliteRow","","A single result row of a query.",null,null],[4,"SqliteTransactionBehavior","","Options for transaction behavior. See [BEGIN\nTRANSACTION](http://www.sqlite.org/lang_transaction.html) for details.",null,null],[13,"SqliteTransactionDeferred","","",1,null],[13,"SqliteTransactionImmediate","","",1,null],[13,"SqliteTransactionExclusive","","",1,null],[0,"types","","Traits dealing with SQLite data types.",null,null],[6,"sqlite3_stmt","rusqlite::types","",null,null],[5,"sqlite3_column_type","","",null,null],[17,"SQLITE_INTEGER","","",null,null],[17,"SQLITE_FLOAT","","",null,null],[17,"SQLITE_TEXT","","",null,null],[17,"SQLITE_BLOB","","",null,null],[17,"SQLITE_NULL","","",null,null],[3,"Null","","Empty struct that can be used to fill in a query parameter as `NULL`.",null,null],[8,"ToSql","","A trait for types that can be converted into SQLite values.",null,null],[10,"bind_parameter","","",2,null],[8,"FromSql","","A trait for types that can be created from a SQLite value.",null,null],[10,"column_result","","",3,null],[11,"column_has_valid_sqlite_type","","FromSql types can implement this method and use sqlite3_column_type to check that\nthe type reported by SQLite matches a type suitable for Self. This method is used\nby `SqliteRow::get_checked` to confirm that the column contains a valid type before\nattempting to retrieve the value.",3,null],[11,"clone","","",4,null],[11,"bind_parameter","","",4,null],[11,"clone","rusqlite","",1,null],[11,"new","","Begin a new transaction. Cannot be nested; see `savepoint` for nested transactions.",5,{"inputs":[{"name":"sqliteconnection"},{"name":"sqlitetransactionbehavior"}],"output":{"name":"sqliteresult"}}],[11,"savepoint","","Starts a new [savepoint](http://www.sqlite.org/lang_savepoint.html), allowing nested\ntransactions.",5,null],[11,"will_commit","","Returns whether or not the transaction is currently set to commit.",5,null],[11,"will_rollback","","Returns whether or not the transaction is currently set to rollback.",5,null],[11,"set_commit","","Set the transaction to commit at its completion.",5,null],[11,"set_rollback","","Set the transaction to rollback at its completion.",5,null],[11,"commit","","A convenience method which consumes and commits a transaction.",5,null],[11,"rollback","","A convenience method which consumes and rolls back a transaction.",5,null],[11,"finish","","Consumes the transaction, committing or rolling back according to the current setting\n(see `will_commit`, `will_rollback`).",5,null],[11,"drop","","",5,null],[6,"SqliteResult","","A typedef of the result returned by many methods.",null,null],[17,"SQLITE_OPEN_READ_ONLY","","",null,null],[17,"SQLITE_OPEN_READ_WRITE","","",null,null],[17,"SQLITE_OPEN_CREATE","","",null,null],[17,"SQLITE_OPEN_URI","","",null,null],[17,"SQLITE_OPEN_MEMORY","","",null,null],[17,"SQLITE_OPEN_NO_MUTEX","","",null,null],[17,"SQLITE_OPEN_FULL_MUTEX","","",null,null],[17,"SQLITE_OPEN_SHARED_CACHE","","",null,null],[17,"SQLITE_OPEN_PRIVATE_CACHE","","",null,null],[11,"eq","","",0,null],[11,"ne","","",0,null],[11,"fmt","","",0,null],[11,"fmt","","",0,null],[11,"description","","",0,null],[11,"open","","Open a new connection to a SQLite database.",6,{"inputs":[{"name":"p"}],"output":{"name":"sqliteresult"}}],[11,"open_in_memory","","Open a new connection to an in-memory SQLite database.",6,{"inputs":[],"output":{"name":"sqliteresult"}}],[11,"open_with_flags","","Open a new connection to a SQLite database.",6,{"inputs":[{"name":"p"},{"name":"sqliteopenflags"}],"output":{"name":"sqliteresult"}}],[11,"open_in_memory_with_flags","","Open a new connection to an in-memory SQLite database.",6,{"inputs":[{"name":"sqliteopenflags"}],"output":{"name":"sqliteresult"}}],[11,"transaction","","Begin a new transaction with the default behavior (DEFERRED).",6,null],[11,"transaction_with_behavior","","Begin a new transaction with a specified behavior.",6,null],[11,"execute_batch","","Convenience method to run multiple SQL statements (that cannot take any parameters).",6,null],[11,"execute","","Convenience method to prepare and execute a single SQL statement.",6,null],[11,"last_insert_rowid","","Get the SQLite rowid of the most recent successful INSERT.",6,null],[11,"query_row","","Convenience method to execute a query that is expected to return a single row.",6,null],[11,"query_row_and_then","","Convenience method to execute a query that is expected to return a single row,\nand execute a mapping via `f` on that returned row with the possibility of failure.\nThe `Result` type of `f` must implement `std::convert::From<SqliteError>`.",6,null],[11,"query_row_safe","","Convenience method to execute a query that is expected to return a single row.",6,null],[11,"prepare","","Prepare a SQL statement for execution.",6,null],[11,"close","","Close the SQLite connection.",6,null],[11,"fmt","","",6,null],[11,"hash","","",7,null],[11,"cmp","","",7,null],[11,"partial_cmp","","",7,null],[11,"lt","","",7,null],[11,"le","","",7,null],[11,"gt","","",7,null],[11,"ge","","",7,null],[11,"clone","","",7,null],[11,"eq","","",7,null],[11,"ne","","",7,null],[11,"empty","","Returns an empty set of flags.",7,{"inputs":[],"output":{"name":"sqliteopenflags"}}],[11,"all","","Returns the set containing all flags.",7,{"inputs":[],"output":{"name":"sqliteopenflags"}}],[11,"bits","","Returns the raw value of the flags currently stored.",7,null],[11,"from_bits","","Convert from underlying bit representation, unless that\nrepresentation contains bits that do not correspond to a flag.",7,{"inputs":[{"name":"c_int"}],"output":{"name":"option"}}],[11,"from_bits_truncate","","Convert from underlying bit representation, dropping any bits\nthat do not correspond to flags.",7,{"inputs":[{"name":"c_int"}],"output":{"name":"sqliteopenflags"}}],[11,"is_empty","","Returns `true` if no flags are currently stored.",7,null],[11,"is_all","","Returns `true` if all flags are currently set.",7,null],[11,"intersects","","Returns `true` if there are flags common to both `self` and `other`.",7,null],[11,"contains","","Returns `true` all of the flags in `other` are contained within `self`.",7,null],[11,"insert","","Inserts the specified flags in-place.",7,null],[11,"remove","","Removes the specified flags in-place.",7,null],[11,"toggle","","Toggles the specified flags in-place.",7,null],[11,"bitor","","Returns the union of the two sets of flags.",7,null],[11,"bitxor","","Returns the left flags, but with all the right flags toggled.",7,null],[11,"bitand","","Returns the intersection between the two sets of flags.",7,null],[11,"sub","","Returns the set difference of the two sets of flags.",7,null],[11,"not","","Returns the complement of this set of flags.",7,null],[11,"default","","",7,{"inputs":[],"output":{"name":"sqliteopenflags"}}],[11,"column_names","","Get all the column names in the result set of the prepared statement.",8,null],[11,"execute","","Execute the prepared statement.",8,null],[11,"query","","Execute the prepared statement, returning an iterator over the resulting rows.",8,null],[11,"query_map","","Executes the prepared statement and maps a function over the resulting\nrows.",8,null],[11,"query_and_then","","Executes the prepared statement and maps a function over the resulting\nrows, where the function returns a `Result` with `Error` type implementing\n`std::convert::From<SqliteError>` (so errors can be unified).",8,null],[11,"finalize","","Consumes the statement.",8,null],[11,"fmt","","",8,null],[11,"drop","","",8,null],[11,"next","","",9,null],[11,"next","","",10,null],[11,"next","","",11,null],[11,"get","","Get the value of a particular column of the result row.",12,null],[11,"get_checked","","Get the value of a particular column of the result row.",12,null]],"paths":[[3,"SqliteError"],[4,"SqliteTransactionBehavior"],[8,"ToSql"],[8,"FromSql"],[3,"Null"],[3,"SqliteTransaction"],[3,"SqliteConnection"],[3,"SqliteOpenFlags"],[3,"SqliteStatement"],[3,"MappedRows"],[3,"AndThenRows"],[3,"SqliteRows"],[3,"SqliteRow"]]}; initSearch(searchIndex);