Home
last modified time | relevance | path

Searched refs:DatabaseName (Results 1 – 6 of 6) sorted by relevance

/external/rust/crates/rusqlite/src/
Dbackup.rs43 use crate::{Connection, DatabaseName, Result};
62 name: DatabaseName<'_>, in backup()
68 let backup = Backup::new_with_names(self, name, &mut dst, DatabaseName::Main)?; in backup()
100 name: DatabaseName<'_>, in restore()
106 let restore = Backup::new_with_names(&src, DatabaseName::Main, self, name)?; in restore()
184 Backup::new_with_names(from, DatabaseName::Main, to, DatabaseName::Main) in new()
198 from_name: DatabaseName<'_>, in new_with_names()
200 to_name: DatabaseName<'_>, in new_with_names()
309 use crate::{Connection, DatabaseName, NO_PARAMS};
361 Backup::new_with_names(&src, DatabaseName::Temp, &mut dst, DatabaseName::Main) in test_backup_temp()
[all …]
Dpragma.rs8 use crate::{Connection, DatabaseName, Result, Row, NO_PARAMS};
21 schema_name: Option<DatabaseName<'_>>, in push_pragma()
45 pub fn push_schema_name(&mut self, schema_name: DatabaseName<'_>) { in push_schema_name()
47 DatabaseName::Main => self.buf.push_str("main"), in push_schema_name()
48 DatabaseName::Temp => self.buf.push_str("temp"), in push_schema_name()
49 DatabaseName::Attached(s) => self.push_identifier(s), in push_schema_name()
170 schema_name: Option<DatabaseName<'_>>, in pragma_query_value()
188 schema_name: Option<DatabaseName<'_>>, in pragma_query()
217 schema_name: Option<DatabaseName<'_>>, in pragma()
248 schema_name: Option<DatabaseName<'_>>, in pragma_update()
[all …]
Dsession.rs18 use crate::{errmsg_to_string, str_to_cstring, Connection, DatabaseName, Result};
33 Session::new_with_name(db, DatabaseName::Main) in new()
39 name: DatabaseName<'_>, in new_with_name()
158 pub fn diff(&mut self, from: DatabaseName<'_>, table: &str) -> Result<()> { in diff()
Dlib.rs279 pub enum DatabaseName<'a> { enum
298 impl DatabaseName<'_> { implementation
300 use self::DatabaseName::{Attached, Main, Temp}; in to_cstring()
912 let db_name = DatabaseName::Main.to_cstring().unwrap(); in db_filename()
/external/rust/crates/rusqlite/src/blob/
Dmod.rs195 use crate::{Connection, DatabaseName, Result};
219 db: DatabaseName<'_>, in blob_open()
409 use crate::{Connection, DatabaseName, Result};
428 .blob_open(DatabaseName::Main, "test", "content", rowid, false) in test_blob()
438 .blob_open(DatabaseName::Main, "test", "content", rowid, true) in test_blob()
480 .blob_open(DatabaseName::Main, "test", "content", rowid, false) in test_blob_in_bufreader()
506 .blob_open(DatabaseName::Main, "test", "content", rowid, false) in test_blob_in_bufwriter()
519 .blob_open(DatabaseName::Main, "test", "content", rowid, false) in test_blob_in_bufwriter()
528 .blob_open(DatabaseName::Main, "test", "content", rowid, false) in test_blob_in_bufwriter()
540 .blob_open(DatabaseName::Main, "test", "content", rowid, false) in test_blob_in_bufwriter()
Dpos_io.rs197 use crate::{Connection, DatabaseName, NO_PARAMS};
214 .blob_open(DatabaseName::Main, "test_table", "content", rowid, false) in test_pos_io()