Searched refs:Statement (Results 1 – 6 of 6) sorted by relevance
27 Statement::Statement(sqlite3* db, const std::string& sql) : db_(db), sql_(sql) in Statement() function in OHOS::Security::AccessToken::Statement34 Statement::~Statement() in ~Statement()40 void Statement::Bind(const int32_t index, const std::string& text) in Bind()47 void Statement::Bind(const int32_t index, int32_t value) in Bind()54 void Statement::Bind(const int32_t index, int64_t value) in Bind()61 int32_t Statement::GetColumnInt(const int32_t column) const in GetColumnInt()66 int64_t Statement::GetColumnInt64(const int32_t column) const in GetColumnInt64()71 std::string Statement::GetColumnString(const int32_t column) const in GetColumnString()76 std::string Statement::GetColumnName(const int32_t column) const in GetColumnName()81 Statement::State Statement::Step() in Step()[all …]
131 Statement SqliteHelper::Prepare(const std::string& sql) const in Prepare()133 return Statement(db_, sql); in Prepare()161 while (statement.Step() == Statement::State::ROW) { in GetVersion()
28 class Statement final {32 Statement(sqlite3* db, const std::string& sql);33 virtual ~Statement();
40 Statement Prepare(const std::string& sql) const;
89 if (ret != Statement::State::DONE) { in Add()115 return (ret == Statement::State::DONE) ? SUCCESS : FAILURE; in Remove()130 while (statement.Step() == Statement::State::ROW) { in FindByConditions()152 while (statement.Step() == Statement::State::ROW) { in GetDistinctValue()172 if (countStatement.Step() == Statement::State::ROW) { in Count()189 if (deleteExpireStatement.Step() != Statement::State::DONE) { in DeleteExpireRecords()201 if (deleteExcessiveStatement.Step() != Statement::State::DONE) { in DeleteExcessiveRecords()
116 if (ret != Statement::State::DONE) { in Add()142 return (ret == Statement::State::DONE) ? SUCCESS : FAILURE; in Remove()159 return (ret == Statement::State::DONE) ? SUCCESS : FAILURE; in Modify()167 while (statement.Step() == Statement::State::ROW) { in Find()186 bool canCommit = deleteStatement.Step() == Statement::State::DONE; in RefreshAll()193 if (ret != Statement::State::DONE) { in RefreshAll()