Searched refs:stmt (Results 1 - 3 of 3) sorted by relevance
/base/security/asset/services/db_operator/src/ |
H A D | statement.rs | 31 fn SqliteFinalize(stmt: *mut c_void) -> i32; in SqliteFinalize() 33 fn SqliteBindBlob(stmt: *mut c_void, index: i32, blob: *const u8, n: i32, callback: Option<BindCallback>) -> i32; in SqliteBindBlob() 34 fn SqliteBindInt64(stmt: *mut c_void, index: i32, value: i64) -> i32; in SqliteBindInt64() 35 fn SqliteStep(stmt: *mut c_void) -> i32; in SqliteStep() 36 fn SqliteColumnName(stmt: *mut c_void, n: i32) -> *const u8; in SqliteColumnName() 37 fn SqliteDataCount(stmt: *mut c_void) -> i32; in SqliteDataCount() 38 fn SqliteColumnBlob(stmt: *mut c_void, i_col: i32) -> *const u8; in SqliteColumnBlob() 39 fn SqliteColumnInt64(stmt: *mut c_void, i_col: i32) -> i64; in SqliteColumnInt64() 40 fn SqliteColumnBytes(stmt: *mut c_void, i_col: i32) -> i32; in SqliteColumnBytes() 41 fn SqliteColumnType(stmt in SqliteColumnBytes() 62 let mut stmt = Statement { sql: sql_s, handle: 0, db }; global() variables [all...] |
H A D | table.rs | 43 fn bind_datas(datas: &DbMap, stmt: &Statement, index: &mut i32) -> Result<()> { in bind_datas() 45 stmt.bind_data(*index, value)?; in bind_datas() 51 fn bind_where_datas(datas: &DbMap, stmt: &Statement, index: &mut i32) -> Result<()> { in bind_where_datas() 54 stmt.bind_data(*index, value)?; in bind_where_datas() 57 stmt.bind_data(*index, value)?; in bind_where_datas() 63 fn bind_where_with_specific_condifion(datas: &[Value], stmt: &Statement, index: &mut i32) -> Result<()> { in bind_where_with_specific_condifion() 65 stmt.bind_data(*index, value)?; in bind_where_with_specific_condifion() 207 let stmt = Statement::prepare(sql.as_str(), self.db)?; 208 let ret = stmt.step()?; 302 let stmt [all...] |
/base/security/asset/services/db_operator/src/test/ |
H A D | test_table.rs | 120 let stmt = Statement::prepare(sql, &db).unwrap(); in execute_sql() 121 assert!(stmt.bind_data(1, &Value::Number(1)).is_ok()); in execute_sql() 124 while stmt.step().unwrap() == SQLITE_ROW { in execute_sql() 166 let stmt = Statement::prepare("select id,alias from table_name where id < ?", &db).unwrap(); in single_data() 167 stmt.bind_data(1, &Value::Number(1000)).unwrap(); in single_data() 169 while stmt.step().unwrap() == SQLITE_ROW { in single_data() 170 let count = stmt.data_count(); in single_data() 173 assert_eq!("id", stmt.query_column_name(0).unwrap()); in single_data() 174 assert_eq!("alias", stmt.query_column_name(1).unwrap()); in single_data() 176 let id = stmt in single_data() [all...] |
Completed in 1 milliseconds