Home
last modified time | relevance | path

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

/external/perfetto/src/trace_processor/prelude/operators/
Dspan_join_operator_unittest.cc42 stmt_.reset(stmt); in PrepareValidStatement()
47 ASSERT_EQ(sqlite3_step(stmt_.get()), SQLITE_DONE); in RunStatement()
51 ASSERT_EQ(sqlite3_step(stmt_.get()), SQLITE_ROW); in AssertNextRow()
53 ASSERT_EQ(sqlite3_column_int64(stmt_.get(), static_cast<int>(i)), in AssertNextRow()
60 ScopedStmt stmt_; member in perfetto::trace_processor::__anonaf46460f0111::SpanJoinOperatorTableTest
92 ASSERT_EQ(sqlite3_step(stmt_.get()), SQLITE_ROW); in TEST_F()
93 ASSERT_EQ(sqlite3_column_int64(stmt_.get(), 0), 120); in TEST_F()
94 ASSERT_EQ(sqlite3_column_int64(stmt_.get(), 1), 40); in TEST_F()
95 ASSERT_EQ(sqlite3_column_int64(stmt_.get(), 2), 2); in TEST_F()
97 ASSERT_EQ(sqlite3_step(stmt_.get()), SQLITE_ROW); in TEST_F()
[all …]
Dspan_join_operator.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.cc736 stmt_.reset(stmt); in Rewind()
742 stmt_.get(), base::StringView(sql_query_), db_, res) in Rewind()
768 auto* stmt = stmt_.get(); in CursorNext()
819 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.h63 PERFETTO_DCHECK(stmt_ || !status_.ok()); in Next()
81 return status_.ok() && !sqlite_utils::IsStmtDone(*stmt_); in Next()
87 int ret = sqlite3_step(*stmt_); in Next()
90 stmt_.get(), std::nullopt, db_, ret) in Next()
92 stmt_.reset(); in Next()
100 auto col_type = sqlite3_column_type(*stmt_, column); in Get()
105 value.long_value = sqlite3_column_int64(*stmt_, column); in Get()
110 reinterpret_cast<const char*>(sqlite3_column_text(*stmt_, column)); in Get()
114 value.double_value = sqlite3_column_double(*stmt_, column); in Get()
118 value.bytes_value = sqlite3_column_blob(*stmt_, column); in Get()
[all …]
Diterator_impl.cc37 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/perfetto/src/trace_processor/prelude/functions/
Dcreate_view_function.cc55 sqlite3_stmt* stmt_ = nullptr; member in perfetto::trace_processor::__anon7e8ae0710111::CreatedViewFunction::Cursor
335 &stmt_, nullptr); in Filter()
336 scoped_stmt_.reset(stmt_); in Filter()
354 auto status = MaybeBindArgument(stmt_, table_->prototype_.function_name, in Filter()
366 int ret = sqlite3_step(stmt_); in Next()
373 sqlite_utils::FormatErrorMessage(stmt_, std::nullopt, table_->db_, ret) in Next()
386 sqlite3_result_value(ctx, sqlite3_column_value(stmt_, i)); in Column()
Dsqlite3_str_split_unittest.cc49 stmt_.reset(stmt); in SplitStmt()
59 ScopedStmt stmt_; member in perfetto::trace_processor::__anona950ab650111::Sqlite3StrSplitTest
/external/perfetto/src/trace_processor/sqlite/
Dsqlite_utils_unittest.cc41 stmt_.reset(stmt); in PrepareValidStatement()
46 ASSERT_EQ(sqlite3_step(stmt_.get()), SQLITE_DONE); in RunStatement()
51 ScopedStmt stmt_; member in perfetto::trace_processor::sqlite_utils::__anoncd0887580111::GetColumnsForTableTest