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,"Savepoint","rusqlite","Represents a savepoint on a database connection.",null,null],[3,"Transaction","","Represents a transaction on a database connection.",null,null],[3,"CachedStatement","","Cacheable statement.",null,null],[3,"Connection","","A connection to a SQLite database.",null,null],[3,"OpenFlags","","Flags for opening SQLite database connections.\nSee [sqlite3_open_v2](http://www.sqlite.org/c3ref/open.html) for details.",null,null],[3,"Statement","","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 Error.",null,null],[3,"Rows","","An handle for the resulting rows of a query.",null,null],[3,"Row","","A single result row of a query.",null,null],[4,"DropBehavior","","Options for how a Transaction or Savepoint should behave when it is dropped.",null,null],[13,"Rollback","","Roll back the changes. This is the default.",0,null],[13,"Commit","","Commit the changes.",0,null],[13,"Ignore","","Do not commit or roll back changes - this will leave the transaction or savepoint\nopen, so should be used with care.",0,null],[4,"TransactionBehavior","","Options for transaction behavior. See [BEGIN\nTRANSACTION](http://www.sqlite.org/lang_transaction.html) for details.",null,null],[13,"Deferred","","",1,null],[13,"Immediate","","",1,null],[13,"Exclusive","","",1,null],[4,"Error","","Enum listing possible errors from rusqlite.",null,null],[13,"SqliteFailure","","An error from an underlying SQLite call.",2,null],[13,"SqliteSingleThreadedMode","","Error reported when attempting to open a connection when SQLite was configured to\nallow single-threaded use only.",2,null],[13,"FromSqlConversionFailure","","An error case available for implementors of the `FromSql` trait.",2,null],[13,"Utf8Error","","Error converting a string to UTF-8.",2,null],[13,"NulError","","Error converting a string to a C-compatible string because it contained an embedded nul.",2,null],[13,"InvalidParameterName","","Error when using SQL named parameters and passing a parameter name not present in the SQL.",2,null],[13,"InvalidPath","","Error converting a file path to a string.",2,null],[13,"ExecuteReturnedResults","","Error returned when an `execute` call returns rows.",2,null],[13,"QueryReturnedNoRows","","Error when a query that was expected to return at least one row (e.g., for `query_row`)\ndid not return any.",2,null],[13,"InvalidColumnIndex","","Error when the value of a particular column is requested, but the index is out of range\nfor the statement.",2,null],[13,"InvalidColumnName","","Error when the value of a named column is requested, but no column matches the name\nfor the statement.",2,null],[13,"InvalidColumnType","","Error when the value of a particular column is requested, but the type of the result in\nthat column cannot be converted to the requested Rust type.",2,null],[13,"StatementChangedRows","","Error when a query that was expected to insert one row did not insert any or insert many.",2,null],[4,"DatabaseName","","Name for a database within a SQLite connection.",null,null],[13,"Main","","The main database.",3,null],[13,"Temp","","The temporary database (e.g., any "CREATE TEMPORARY TABLE" tables).",3,null],[13,"Attached","","A database that has been attached via "ATTACH DATABASE ...".",3,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],[4,"Value","","Dynamic type value (http://sqlite.org/datatype3.html)\nValue's type is dictated by SQLite (not by the caller).",null,null],[13,"Null","","The value is a `NULL` value.",4,null],[13,"Integer","","The value is a signed integer.",4,null],[13,"Real","","The value is a floating point number.",4,null],[13,"Text","","The value is a text string.",4,null],[13,"Blob","","The value is a blob of data",4,null],[8,"ToSql","","A trait for types that can be converted into SQLite values.",null,null],[10,"bind_parameter","","",5,null],[8,"FromSql","","A trait for types that can be created from a SQLite value.",null,null],[10,"column_result","","",6,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 `Row::get_checked` to confirm that the column contains a valid type before\nattempting to retrieve the value.",6,null],[11,"clone","","",7,null],[11,"bind_parameter","","",7,null],[11,"eq","","",4,null],[11,"ne","","",4,null],[11,"fmt","","",4,null],[11,"clone","","",4,null],[11,"column_result","","",4,null],[11,"clone","rusqlite","",1,null],[11,"eq","","",0,null],[11,"clone","","",0,null],[11,"new","","Begin a new transaction. Cannot be nested; see `savepoint` for nested transactions.",8,{"inputs":[{"name":"connection"},{"name":"transactionbehavior"}],"output":{"name":"result"}}],[11,"savepoint","","Starts a new [savepoint](http://www.sqlite.org/lang_savepoint.html), allowing nested\ntransactions.",8,null],[11,"savepoint_with_name","","Create a new savepoint with a custom savepoint name. See `savepoint()`.",8,null],[11,"drop_behavior","","Get the current setting for what happens to the transaction when it is dropped.",8,null],[11,"set_drop_behavior","","Configure the transaction to perform the specified action when it is dropped.",8,null],[11,"commit","","A convenience method which consumes and commits a transaction.",8,null],[11,"rollback","","A convenience method which consumes and rolls back a transaction.",8,null],[11,"finish","","Consumes the transaction, committing or rolling back according to the current setting\n(see `drop_behavior`).",8,null],[11,"deref","","",8,null],[11,"drop","","",8,null],[11,"new","","Begin a new savepoint. Can be nested.",9,{"inputs":[{"name":"connection"}],"output":{"name":"result"}}],[11,"with_name","","Begin a new savepoint with a user-provided savepoint name.",9,{"inputs":[{"name":"connection"},{"name":"t"}],"output":{"name":"result"}}],[11,"savepoint","","Begin a nested savepoint.",9,null],[11,"savepoint_with_name","","Begin a nested savepoint with a user-provided savepoint name.",9,null],[11,"drop_behavior","","Get the current setting for what happens to the savepoint when it is dropped.",9,null],[11,"set_drop_behavior","","Configure the savepoint to perform the specified action when it is dropped.",9,null],[11,"commit","","A convenience method which consumes and commits a savepoint.",9,null],[11,"rollback","","A convenience method which rolls back a savepoint.",9,null],[11,"finish","","Consumes the savepoint, committing or rolling back according to the current setting\n(see `drop_behavior`).",9,null],[11,"deref","","",9,null],[11,"drop","","",9,null],[11,"transaction","","Begin a new transaction with the default behavior (DEFERRED).",10,null],[11,"transaction_with_behavior","","Begin a new transaction with a specified behavior.",10,null],[11,"savepoint","","Begin a new savepoint with the default behavior (DEFERRED).",10,null],[11,"savepoint_with_name","","Begin a new savepoint with a specified name.",10,null],[11,"prepare_cached","","Prepare a SQL statement for execution, returning a previously prepared (but\nnot currently in-use) statement if one is available. The returned statement\nwill be cached for reuse by future calls to `prepare_cached` once it is\ndropped.",10,null],[11,"set_prepared_statement_cache_capacity","","Set the maximum number of cached prepared statements this connection will hold.\nBy default, a connection will hold a relatively small number of cached statements.\nIf you need more, or know that you will not use cached statements, you can set\nthe capacity manually using this method.",10,null],[11,"deref","","",11,null],[11,"deref_mut","","",11,null],[11,"drop","","",11,null],[11,"discard","","Discard the statement, preventing it from being returned to its `Connection`'s collection\nof cached statements.",11,null],[11,"execute_named","","Convenience method to prepare and execute a single SQL statement with named parameter(s).",10,null],[11,"query_row_named","","Convenience method to execute a query with named parameter(s) that is expected to return\na single row.",10,null],[11,"parameter_index","","Return the index of an SQL parameter given its name.",12,null],[11,"execute_named","","Execute the prepared statement with named parameter(s). If any parameters\nthat were in the prepared statement are not included in `params`, they\nwill continue to use the most-recently bound value from a previous call\nto `execute_named`, or `NULL` if they have never been bound.",12,null],[11,"query_named","","Execute the prepared statement with named parameter(s), returning a handle for the\nresulting rows. If any parameters that were in the prepared statement are not included in\n`params`, they will continue to use the most-recently bound value from a previous call to\n`query_named`, or `NULL` if they have never been bound.",12,null],[11,"query_map_named","","Execute the prepared statement with named parameter(s), returning an iterator over the\nresult of calling the mapping function over the query's rows. If any parameters that were\nin the prepared statement are not included in `params`, they will continue to use the\nmost-recently bound value from a previous call to `query_named`, or `NULL` if they have\nnever been bound.",12,null],[11,"query_and_then_named","","Execute the prepared statement with named parameter(s), returning an iterator over the\nresult of calling the mapping function over the query's rows. If any parameters that were\nin the prepared statement are not included in `params`, they will continue to use the\nmost-recently bound value from a previous call to `query_named`, or `NULL` if they have\nnever been bound.",12,null],[11,"fmt","","",2,null],[11,"from","","",2,{"inputs":[{"name":"utf8error"}],"output":{"name":"error"}}],[11,"from","","",2,{"inputs":[{"name":"nulerror"}],"output":{"name":"error"}}],[11,"fmt","","",2,null],[11,"description","","",2,null],[11,"cause","","",2,null],[11,"insert","","Execute an INSERT and return the ROWID.",12,null],[11,"exists","","Return `true` if a query in the SQL statement it executes returns one or more rows\nand `false` if the SQL returns an empty set.",12,null],[6,"SqliteTransaction","","Old name for `Transaction`. `SqliteTransaction` is deprecated.",null,null],[6,"SqliteTransactionBehavior","","Old name for `TransactionBehavior`. `SqliteTransactionBehavior` is deprecated.",null,null],[6,"SqliteError","","Old name for `Error`. `SqliteError` is deprecated.",null,null],[6,"SqliteResult","","Old name for `Result`. `SqliteResult` is deprecated.",null,null],[6,"Result","","A typedef of the result returned by many methods.",null,null],[6,"SqliteConnection","","Old name for `Connection`. `SqliteConnection` is deprecated.",null,null],[6,"SqliteOpenFlags","","Old name for `OpenFlags`. `SqliteOpenFlags` is deprecated.",null,null],[6,"SqliteStatement","","Old name for `Statement`. `SqliteStatement` is deprecated.",null,null],[6,"SqliteRows","","Old name for `Rows`. `SqliteRows` is deprecated.",null,null],[6,"SqliteRow","","Old name for `Row`. `SqliteRow` is deprecated.",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],[8,"RowIndex","","A trait implemented by types that can index into columns of a row.",null,null],[10,"idx","","Returns the index of the appropriate column, or `None` if no such\ncolumn exists.",13,null],[11,"open","","Open a new connection to a SQLite database.",10,{"inputs":[{"name":"p"}],"output":{"name":"result"}}],[11,"open_in_memory","","Open a new connection to an in-memory SQLite database.",10,{"inputs":[],"output":{"name":"result"}}],[11,"open_with_flags","","Open a new connection to a SQLite database.",10,{"inputs":[{"name":"p"},{"name":"openflags"}],"output":{"name":"result"}}],[11,"open_in_memory_with_flags","","Open a new connection to an in-memory SQLite database.",10,{"inputs":[{"name":"openflags"}],"output":{"name":"result"}}],[11,"execute_batch","","Convenience method to run multiple SQL statements (that cannot take any parameters).",10,null],[11,"execute","","Convenience method to prepare and execute a single SQL statement.",10,null],[11,"last_insert_rowid","","Get the SQLite rowid of the most recent successful INSERT.",10,null],[11,"query_row","","Convenience method to execute a query that is expected to return a single row.",10,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<Error>`.",10,null],[11,"query_row_safe","","Convenience method to execute a query that is expected to return a single row.",10,null],[11,"prepare","","Prepare a SQL statement for execution.",10,null],[11,"close","","Close the SQLite connection.",10,null],[11,"handle","","Get access to the underlying SQLite database connection handle.",10,null],[11,"fmt","","",10,null],[11,"hash","","",14,null],[11,"cmp","","",14,null],[11,"partial_cmp","","",14,null],[11,"lt","","",14,null],[11,"le","","",14,null],[11,"gt","","",14,null],[11,"ge","","",14,null],[11,"clone","","",14,null],[11,"eq","","",14,null],[11,"ne","","",14,null],[11,"fmt","","",14,null],[11,"empty","","Returns an empty set of flags.",14,{"inputs":[],"output":{"name":"openflags"}}],[11,"all","","Returns the set containing all flags.",14,{"inputs":[],"output":{"name":"openflags"}}],[11,"bits","","Returns the raw value of the flags currently stored.",14,null],[11,"from_bits","","Convert from underlying bit representation, unless that\nrepresentation contains bits that do not correspond to a flag.",14,{"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.",14,{"inputs":[{"name":"c_int"}],"output":{"name":"openflags"}}],[11,"is_empty","","Returns `true` if no flags are currently stored.",14,null],[11,"is_all","","Returns `true` if all flags are currently set.",14,null],[11,"intersects","","Returns `true` if there are flags common to both `self` and `other`.",14,null],[11,"contains","","Returns `true` all of the flags in `other` are contained within `self`.",14,null],[11,"insert","","Inserts the specified flags in-place.",14,null],[11,"remove","","Removes the specified flags in-place.",14,null],[11,"toggle","","Toggles the specified flags in-place.",14,null],[11,"bitor","","Returns the union of the two sets of flags.",14,null],[11,"bitor_assign","","Adds the set of flags.",14,null],[11,"bitxor","","Returns the left flags, but with all the right flags toggled.",14,null],[11,"bitxor_assign","","Toggles the set of flags.",14,null],[11,"bitand","","Returns the intersection between the two sets of flags.",14,null],[11,"bitand_assign","","Disables all flags disabled in the set.",14,null],[11,"sub","","Returns the set difference of the two sets of flags.",14,null],[11,"sub_assign","","Disables all flags enabled in the set.",14,null],[11,"not","","Returns the complement of this set of flags.",14,null],[11,"extend","","",14,null],[11,"from_iter","","",14,{"inputs":[{"name":"t"}],"output":{"name":"openflags"}}],[11,"default","","",14,{"inputs":[],"output":{"name":"openflags"}}],[11,"column_names","","Get all the column names in the result set of the prepared statement.",12,null],[11,"column_count","","Return the number of columns in the result set returned by the prepared statement.",12,null],[11,"column_index","","Returns the column index in the result set for a given column name.",12,null],[11,"execute","","Execute the prepared statement.",12,null],[11,"query","","Execute the prepared statement, returning a handle to the resulting rows.",12,null],[11,"query_map","","Executes the prepared statement and maps a function over the resulting rows, returning\nan iterator over the mapped function results.",12,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<Error>` (so errors can be unified).",12,null],[11,"finalize","","Consumes the statement.",12,null],[11,"into","","",12,null],[11,"fmt","","",12,null],[11,"drop","","",12,null],[11,"next","","",15,null],[11,"next","","",16,null],[11,"next","","Attempt to get the next row from the query. Returns `Some(Ok(Row))` if there\nis another row, `Some(Err(...))` if there was an error getting the next\nrow, and `None` if all rows have been retrieved.",17,null],[11,"drop","","",17,null],[11,"get","","Get the value of a particular column of the result row.",18,null],[11,"get_checked","","Get the value of a particular column of the result row.",18,null],[11,"column_count","","Return the number of columns in the current row.",18,null]],"paths":[[4,"DropBehavior"],[4,"TransactionBehavior"],[4,"Error"],[4,"DatabaseName"],[4,"Value"],[8,"ToSql"],[8,"FromSql"],[3,"Null"],[3,"Transaction"],[3,"Savepoint"],[3,"Connection"],[3,"CachedStatement"],[3,"Statement"],[8,"RowIndex"],[3,"OpenFlags"],[3,"MappedRows"],[3,"AndThenRows"],[3,"Rows"],[3,"Row"]]}; initSearch(searchIndex);