Home
last modified time | relevance | path

Searched refs:stmt_ (Results 1 – 17 of 17) sorted by relevance

/external/perfetto/src/trace_processor/sqlite/
Dspan_join_operator_table_unittest.cc41 stmt_.reset(stmt); in PrepareValidStatement()
46 ASSERT_EQ(sqlite3_step(stmt_.get()), SQLITE_DONE); in RunStatement()
50 ASSERT_EQ(sqlite3_step(stmt_.get()), SQLITE_ROW); in AssertNextRow()
52 ASSERT_EQ(sqlite3_column_int64(stmt_.get(), static_cast<int>(i)), in AssertNextRow()
59 ScopedStmt stmt_; member in perfetto::trace_processor::__anond927c48b0111::SpanJoinOperatorTableTest
91 ASSERT_EQ(sqlite3_step(stmt_.get()), SQLITE_ROW); in TEST_F()
92 ASSERT_EQ(sqlite3_column_int64(stmt_.get(), 0), 120); in TEST_F()
93 ASSERT_EQ(sqlite3_column_int64(stmt_.get(), 1), 40); in TEST_F()
94 ASSERT_EQ(sqlite3_column_int64(stmt_.get(), 2), 2); in TEST_F()
96 ASSERT_EQ(sqlite3_step(stmt_.get()), SQLITE_ROW); in TEST_F()
[all …]
Dsqlite_utils_unittest.cc39 stmt_.reset(stmt); in PrepareValidStatement()
44 ASSERT_EQ(sqlite3_step(stmt_.get()), SQLITE_DONE); in RunStatement()
49 ScopedStmt stmt_; member in perfetto::trace_processor::__anon405646fa0111::GetColumnsForTableTest
Dsqlite3_str_split_unittest.cc49 stmt_.reset(stmt); in SplitStmt()
59 ScopedStmt stmt_; member in perfetto::trace_processor::__anon27b9c6c00111::Sqlite3StrSplitTest
Dspan_join_operator_table.h281 return sqlite3_column_int64(stmt_.get(), ts_idx); in CursorTs()
287 return sqlite3_column_int64(stmt_.get(), dur_idx); in CursorDur()
294 return sqlite3_column_int64(stmt_.get(), partition_idx); in CursorPartition()
312 ScopedStmt stmt_; variable
Dspan_join_operator_table.cc760 stmt_.reset(stmt); in Rewind()
791 auto* stmt = stmt_.get(); in CursorNext()
838 sqlite3_stmt* stmt = stmt_.get(); in ReportSqliteResult()
/external/tensorflow/tensorflow/core/lib/db/
Dsqlite.h152 sqlite3_finalize(stmt_); in ~SqliteStatement()
157 explicit operator bool() const { return stmt_ != nullptr; }
160 const char* sql() const { return sqlite3_sql(stmt_); } in sql()
207 Update(sqlite3_bind_int64(stmt_, parameter, value), parameter); in BindInt()
216 Update(sqlite3_bind_double(stmt_, parameter, value), parameter); in BindDouble()
232 Update(sqlite3_bind_text64(stmt_, parameter, text.data(), text.size(), in BindText()
241 Update(sqlite3_bind_text64(stmt_, parameter, text.data(), text.size(), in BindTextUnsafe()
255 Update(sqlite3_bind_blob64(stmt_, parameter, blob.data(), blob.size(), in BindBlob()
264 Update(sqlite3_bind_blob64(stmt_, parameter, blob.data(), blob.size(), in BindBlobUnsafe()
275 return sqlite3_column_count(stmt_); in ColumnCount()
[all …]
Dsqlite.cc178 DCHECK(stmt_ != nullptr); in Step()
186 int rc = sqlite3_step(stmt_); in Step()
234 if (TF_PREDICT_TRUE(stmt_ != nullptr)) { in Reset()
235 sqlite3_reset(stmt_); in Reset()
236 sqlite3_clear_bindings(stmt_); in Reset()
/external/perfetto/src/trace_processor/
Diterator_impl.h64 int ret = sqlite3_step(*stmt_); in Next()
74 auto col_type = sqlite3_column_type(*stmt_, column); in Get()
79 value.long_value = sqlite3_column_int64(*stmt_, column); in Get()
84 reinterpret_cast<const char*>(sqlite3_column_text(*stmt_, column)); in Get()
88 value.double_value = sqlite3_column_double(*stmt_, column); in Get()
92 value.bytes_value = sqlite3_column_blob(*stmt_, column); in Get()
94 static_cast<size_t>(sqlite3_column_bytes(*stmt_, column)); in Get()
104 return sqlite3_column_name(stmt_.get(), static_cast<int>(col)); in GetColumnName()
128 ScopedStmt stmt_; variable
Diterator_impl.cc35 stmt_(std::move(stmt)), in IteratorImpl()
/external/tensorflow/tensorflow/core/kernels/data/experimental/sql/
Dsqlite_query_connection.cc47 stmt_ = SqliteStatement(); in Close()
56 if (!stmt_) TF_RETURN_IF_ERROR(PrepareQuery()); in GetNext()
57 TF_RETURN_IF_ERROR(stmt_.Step(end_of_sequence)); in GetNext()
70 TF_RETURN_IF_ERROR(db_->Prepare(query_, &stmt_)); in PrepareQuery()
71 int column_count = stmt_.ColumnCount(); in PrepareQuery()
73 stmt_ = SqliteStatement(); in PrepareQuery()
87 tensor->scalar<T>()() = static_cast<T>(stmt_.M(column_index)); \ in FillTensorWithResultSetEntry()
106 tensor->scalar<bool>()() = stmt_.ColumnInt(column_index) != 0; in FillTensorWithResultSetEntry()
Dsqlite_query_connection.h47 SqliteStatement stmt_; variable
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dreadability-redundant-control-flow.cpp153 #define MACRO_RETURN_ARG(stmt_) \ argument
154 stmt_
156 #define MACRO_CONTINUE_ARG(stmt_) \ argument
159 stmt_; \
/external/llvm-project/flang/lib/Semantics/
Dprogram-tree.h60 const Stmt &stmt() const { return stmt_; } in stmt()
81 stmt_ = &stmt; in set_stmt()
92 Stmt stmt_{
Dcheck-io.cpp250 constantFormat->length(), reporterWrapper, stmt_}; in Enter()
257 /*???*/ nullptr, /*???*/ 0, reporterWrapper, stmt_}; in Enter()
264 /*???*/ nullptr, /*???*/ 0, reporterWrapper, stmt_}; in Enter()
518 if (stmt_ == IoStmtKind::Write) { in Enter()
540 if (stmt_ == IoStmtKind::None) { in Enter()
567 if (stmt_ == IoStmtKind::Open) { in Enter()
577 CHECK(stmt_ == IoStmtKind::Close); in Enter()
586 if (stmt_ == IoStmtKind::None) { in Enter()
796 if (stmt_ == IoStmtKind::None) { in SetSpecifier()
848 parser::ToUpperCaseLetters(common::EnumToString(stmt_)), in CheckForRequiredSpecifier()
[all …]
Dcheck-io.h131 stmt_ = s; in Init()
136 void Done() { stmt_ = IoStmtKind::None; } in Done()
139 IoStmtKind stmt_{IoStmtKind::None};
Dprogram-tree.cpp121 std::get<const parser::Statement<parser::SubmoduleStmt> *>(stmt_)}; in GetParentId()
147 stmt_)}; in HasModulePrefix()
183 stmt_); in GetKind()
/external/llvm-project/flang/include/flang/Common/
Dformat.h55 stmt_{stmt}, cursor_{format - 1} { in ENUM_CLASS()
134 IoStmtKind stmt_; in ENUM_CLASS() local
235 if (stmt_ == IoStmtKind::Read) { // 13.3.2p6 in NextToken()
419 if (stmt_ == IoStmtKind::Read) { // 13.3.2p6 in NextToken()
453 stmt_ == IoStmtKind::Read)) { // C1306, 13.7.2.1p6 in check_w()
474 if ((stmt_ == IoStmtKind::Print || stmt_ == IoStmtKind::Write) && in check_m()