Home
last modified time | relevance | path

Searched refs:db_ (Results 1 – 20 of 20) sorted by relevance

/external/tensorflow/tensorflow/core/lib/db/
Dsqlite_test.cc32 TF_ASSERT_OK(Sqlite::Open(":memory:", SQLITE_OPEN_READWRITE, &db_)); in SetUp()
33 db_->PrepareOrDie("CREATE TABLE T (a BLOB, b BLOB)").StepAndResetOrDie(); in SetUp()
36 void TearDown() override { db_->Unref(); } in TearDown()
38 Sqlite* db_; member in tensorflow::__anonfcb303560111::SqliteTest
43 auto stmt = db_->PrepareOrDie("INSERT INTO T (a, b) VALUES (?, ?)"); in TEST_F()
50 stmt = db_->PrepareOrDie("SELECT a, b FROM T ORDER BY b"); in TEST_F()
64 auto stmt = db_->PrepareOrDie("INSERT INTO T (a, b) VALUES (?, ?)"); in TEST_F()
68 stmt = db_->PrepareOrDie("SELECT a, b FROM T"); in TEST_F()
80 auto stmt = db_->PrepareOrDie("INSERT INTO T (a, b) VALUES (?, ?)"); in TEST_F()
84 stmt = db_->PrepareOrDie("SELECT json_extract(a, '$.key'), json_extract(b, '$.key') FROM T"); in TEST_F()
[all …]
Dsqlite.cc160 CHECK_EQ(SQLITE_OK, sqlite3_close(db_)); in ~Sqlite()
166 int rc = sqlite3_prepare_v2(db_, sql.data(), static_cast<int>(sql.size()), in Prepare()
185 SqliteLock lock(*db_); in Step()
196 return PrintfStatus(rc, "Step() failed: [%d] %s: %s", rc, db_->errmsg(), in Step()
242 SqliteTransaction::SqliteTransaction(Sqlite& db) : db_(&db) { in SqliteTransaction()
243 sqlite3_mutex_enter(sqlite3_db_mutex(db_->db_)); in SqliteTransaction()
244 CHECK(!db_->is_in_transaction_); in SqliteTransaction()
245 db_->is_in_transaction_ = true; in SqliteTransaction()
252 sqlite3_step(db_->rollback_); in ~SqliteTransaction()
253 sqlite3_reset(db_->rollback_); in ~SqliteTransaction()
[all …]
Dsqlite.h99 return sqlite3_extended_errcode(db_); in errcode()
104 return sqlite3_errmsg(db_); in errmsg()
109 return sqlite3_last_insert_rowid(db_); in last_insert_rowid()
114 return sqlite3_changes(db_); in changes()
124 : db_(db), begin_(begin), commit_(commit), rollback_(rollback) {} in Sqlite()
126 sqlite3* const db_; variable
153 if (db_ != nullptr) db_->Unref(); in ~SqliteStatement()
324 : db_(other.db_), stmt_(other.stmt_), bind_error_(other.bind_error_) { in SqliteStatement()
325 other.db_ = nullptr; in SqliteStatement()
333 if (db_ != nullptr) db_->Unref();
[all …]
/external/grpc-grpc/examples/cpp/route_guide/
Dhelper.cc61 explicit Parser(const std::string& db) : db_(db) { in Parser()
63 db_.erase( in Parser()
64 std::remove_if(db_.begin(), db_.end(), isspace), in Parser()
65 db_.end()); in Parser()
72 return current_ >= db_.size(); in Finished()
94 while (current_ != db_.size() && db_[current_++] != '"') { in TryParseOne()
96 if (current_ == db_.size()) { in TryParseOne()
99 feature->set_name(db_.substr(name_start, current_-name_start-1)); in TryParseOne()
101 if (db_[current_ - 1] == ']' && current_ == db_.size()) { in TryParseOne()
117 bool eq = db_.substr(current_, prefix.size()) == prefix; in Match()
[all …]
/external/perfetto/src/trace_processor/
Dtrace_processor_impl.cc225 db_.reset(std::move(db)); in TraceProcessorImpl()
236 ArgsTable::RegisterTable(*db_, context_.storage.get()); in TraceProcessorImpl()
237 ProcessTable::RegisterTable(*db_, context_.storage.get()); in TraceProcessorImpl()
238 SchedSliceTable::RegisterTable(*db_, context_.storage.get()); in TraceProcessorImpl()
239 SliceTable::RegisterTable(*db_, context_.storage.get()); in TraceProcessorImpl()
240 SqlStatsTable::RegisterTable(*db_, context_.storage.get()); in TraceProcessorImpl()
241 StringTable::RegisterTable(*db_, context_.storage.get()); in TraceProcessorImpl()
242 ThreadTable::RegisterTable(*db_, context_.storage.get()); in TraceProcessorImpl()
243 CounterDefinitionsTable::RegisterTable(*db_, context_.storage.get()); in TraceProcessorImpl()
244 CounterValuesTable::RegisterTable(*db_, context_.storage.get()); in TraceProcessorImpl()
[all …]
Dsqlite3_str_split_unittest.cc35 db_.reset(db); in Sqlite3StrSplitTest()
36 sqlite3_str_split_init(db_.get()); in Sqlite3StrSplitTest()
45 PERFETTO_CHECK(sqlite3_prepare_v2(*db_, sql.c_str(), in SplitStmt()
57 ScopedDb db_; member in perfetto::trace_processor::__anon548804210111::Sqlite3StrSplitTest
Dthread_table_unittest.cc38 db_.reset(db); in ThreadTableUnittest()
45 ThreadTable::RegisterTable(db_.get(), context_.storage.get()); in ThreadTableUnittest()
46 ProcessTable::RegisterTable(db_.get(), context_.storage.get()); in ThreadTableUnittest()
52 ASSERT_EQ(sqlite3_prepare_v2(*db_, sql.c_str(), size, &stmt, nullptr), in PrepareValidStatement()
65 ScopedDb db_; member in perfetto::trace_processor::__anon2d070d180111::ThreadTableUnittest
Dprocess_table_unittest.cc35 db_.reset(db); in ProcessTableUnittest()
40 ProcessTable::RegisterTable(db_.get(), context_.storage.get()); in ProcessTableUnittest()
46 ASSERT_EQ(sqlite3_prepare_v2(*db_, sql.c_str(), size, &stmt, nullptr), in PrepareValidStatement()
59 ScopedDb db_; member in perfetto::trace_processor::__anon522334ff0111::ProcessTableUnittest
Dspan_join_operator_table_unittest.cc33 db_.reset(db); in SpanJoinOperatorTableTest()
37 SpanJoinOperatorTable::RegisterTable(db_.get(), context_.storage.get()); in SpanJoinOperatorTableTest()
43 ASSERT_EQ(sqlite3_prepare_v2(*db_, sql.c_str(), size, &stmt, nullptr), in PrepareValidStatement()
65 ScopedDb db_; member in perfetto::trace_processor::__anon06e10acc0111::SpanJoinOperatorTableTest
Dtrace_processor_impl.h70 ScopedDb db_; // Keep first. variable
114 error_ = base::Optional<std::string>(sqlite3_errmsg(db_)); in Next()
160 sqlite3* db_ = nullptr; variable
Dsched_slice_table_unittest.cc41 db_.reset(db); in SchedSliceTableTest()
48 SchedSliceTable::RegisterTable(db_.get(), context_.storage.get()); in SchedSliceTableTest()
54 ASSERT_EQ(sqlite3_prepare_v2(*db_, sql.c_str(), size, &stmt, nullptr), in PrepareValidStatement()
63 ScopedDb db_; member in perfetto::trace_processor::__anon3ca8d4360111::SchedSliceTableTest
Dspan_join_operator_table.cc58 : db_(db) {} in SpanJoinOperatorTable()
164 return std::unique_ptr<SpanJoinOperatorTable::Cursor>(new Cursor(this, db_)); in CreateCursor()
200 auto cols = sqlite_utils::GetColumnsForTable(db_, desc.name); in CreateTableDefinition()
449 : defn_(definition), db_(db), table_(table) { in Query()
458 *this = Query(table_, definition(), db_); in Initialize()
625 sqlite3_prepare_v2(db_, sql_query_.c_str(), in PrepareRawStmt()
Dspan_join_operator_table.h217 sqlite3* db_ = nullptr; variable
293 sqlite3* const db_; variable
/external/tensorflow/tensorflow/core/summary/
Dsummary_db_writer_test.cc52 TF_ASSERT_OK(Sqlite::Open(":memory:", SQLITE_OPEN_READWRITE, &db_)); in SetUp()
53 TF_ASSERT_OK(SetupTensorboardSqliteDb(db_)); in SetUp()
61 db_->Unref(); in TearDown()
62 db_ = nullptr; in TearDown()
66 SqliteStatement stmt = db_->PrepareOrDie(sql); in QueryInt()
77 SqliteStatement stmt = db_->PrepareOrDie(sql); in QueryDouble()
88 SqliteStatement stmt = db_->PrepareOrDie(sql); in QueryString()
99 Sqlite* db_ = nullptr; member in tensorflow::__anon4ff30c150111::SummaryDbWriterTest
104 TF_ASSERT_OK(CreateSummaryDbWriter(db_, "histtest", "test1", "user1", &env_, in TEST_F()
154 TF_ASSERT_OK(CreateSummaryDbWriter(db_, "mad-science", "train", "jart", &env_, in TEST_F()
[all …]
Dsummary_db_writer.cc163 IdAllocator(Env* env, Sqlite* db) : env_{env}, db_{db} { in IdAllocator()
165 DCHECK(db_ != nullptr);
172 TF_RETURN_IF_ERROR(db_->Prepare("INSERT INTO Ids (id) VALUES (?)", &stmt)); in CreateNewId()
210 Sqlite* const db_; member in tensorflow::__anon3d888a760111::IdAllocator
233 : db_(db), txn_(txn), graph_(graph), now_(now), graph_id_(graph_id) {} in GraphWriter()
259 TF_RETURN_IF_ERROR(db_->Prepare(sql, &insert)); in SaveNodeInputs()
311 TF_RETURN_IF_ERROR(db_->Prepare(sql, &insert)); in SaveNodes()
344 TF_RETURN_IF_ERROR(db_->Prepare(sql, &insert)); in SaveGraph()
365 Sqlite* const db_; member in tensorflow::__anon3d888a760111::GraphWriter
881 db_{db},
[all …]
/external/tensorflow/tensorflow/core/kernels/data/experimental/sql/
Dsqlite_query_connection.cc28 if (db_ != nullptr) db_->Unref(); in ~SqliteQueryConnection()
34 if (db_ != nullptr) { in Open()
39 data_source_name, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE, &db_)); in Open()
47 db_->Unref(); in Close()
48 db_ = nullptr; in Close()
69 TF_RETURN_IF_ERROR(db_->Prepare(query_, &stmt_)); in PrepareQuery()
Dsqlite_query_connection.h45 Sqlite* db_ = nullptr; variable
/external/protobuf/src/google/protobuf/
Ddescriptor_unittest.cc2393 pool_.reset(new DescriptorPool(&db_)); in SetUp()
2452 EXPECT_TRUE(db_.Add(proto)); in BuildFile()
2468 SimpleDescriptorDatabase db_; // used if in FALLBACK_DATABASE mode. member in google::protobuf::descriptor_unittest::AllowUnknownDependenciesTest
2661 ASSERT_TRUE(db_.Add(undeclared_dep_proto)); in TEST_P()
6434 db_(&source_tree_), in SourceLocationTest()
6435 pool_(&db_, &collector_) {} in SourceLocationTest()
6448 compiler::SourceTreeDescriptorDatabase db_; member in google::protobuf::descriptor_unittest::SourceLocationTest
6566 db_(&source_tree_), in CopySourceCodeInfoToTest()
6567 pool_(&db_, &collector_) {} in CopySourceCodeInfoToTest()
6572 compiler::SourceTreeDescriptorDatabase db_; member in google::protobuf::descriptor_unittest::CopySourceCodeInfoToTest
/external/toolchain-utils/android_bench_suite/panorama_input/
Dtest_034.ppm521 …KHFMJIQMLOKJSPOPLKTQPVRQVRQWSRXTS]YX^ZY]YXTSRYXWXXX]]][ZY][Za`_dbaa`_ba`ed`db_`_[`_[`_^^][_^]`_^_^…
Dtest_007.ppm5108 &<4380/������db_][X|}i��nOQ7MP6<>'-/MP8BD-53TR:tsVutWzx[��d��l��v��{��}��u��t��lzx[OO3AA%omTzw_…