Home
last modified time | relevance | path

Searched refs:GetDB (Results 1 – 23 of 23) sorted by relevance

/external/chromium/chrome/browser/history/
Dvisitsegment_database.cc45 if (!GetDB().DoesTableExist("segments")) { in InitSegmentTables()
46 if (!GetDB().Execute("CREATE TABLE segments (" in InitSegmentTables()
55 if (!GetDB().Execute("CREATE INDEX segments_name ON segments(name)")) { in InitSegmentTables()
63 GetDB().Execute("CREATE INDEX segments_url_id ON segments(url_id)"); in InitSegmentTables()
66 if (!GetDB().DoesTableExist("segment_usage")) { in InitSegmentTables()
67 if (!GetDB().Execute("CREATE TABLE segment_usage (" in InitSegmentTables()
75 if (!GetDB().Execute( in InitSegmentTables()
84 GetDB().Execute("CREATE INDEX segments_usage_seg_id " in InitSegmentTables()
94 if (!GetDB().DoesTableExist("presentation")) { in InitSegmentTables()
95 if (!GetDB().Execute("CREATE TABLE presentation(" in InitSegmentTables()
[all …]
Durl_database.cc90 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in GetURLRow()
104 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in GetAllTypedUrls()
118 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in GetRowForURL()
135 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in UpdateURLRow()
172 sql::Statement statement(GetDB().GetCachedStatement( in AddURLInternal()
175 NOTREACHED() << GetDB().GetErrorMessage(); in AddURLInternal()
191 return GetDB().GetLastInsertRowId(); in AddURLInternal()
195 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in DeleteURLRow()
208 sql::Statement del_keyword_visit(GetDB().GetCachedStatement(SQL_FROM_HERE, in DeleteURLRow()
229 if (!GetDB().Execute("DROP TABLE urls")) { in CommitTemporaryURLTable()
[all …]
Dvisit_database.cc32 if (!GetDB().DoesTableExist("visits")) { in InitVisitTable()
33 if (!GetDB().Execute("CREATE TABLE visits(" in InitVisitTable()
43 } else if (!GetDB().DoesColumnExist("visits", "is_indexed")) { in InitVisitTable()
50 if (!GetDB().Execute("ALTER TABLE visits ADD COLUMN is_indexed BOOLEAN")) in InitVisitTable()
59 if (!GetDB().DoesTableExist("visit_source")) { in InitVisitTable()
60 if (!GetDB().Execute("CREATE TABLE visit_source(" in InitVisitTable()
67 GetDB().Execute("CREATE INDEX visits_url_index ON visits (url)"); in InitVisitTable()
71 GetDB().Execute("CREATE INDEX visits_from_index ON visits (from_visit)"); in InitVisitTable()
76 GetDB().Execute("CREATE INDEX visits_time_index ON visits (visit_time)"); in InitVisitTable()
82 GetDB().Execute("DROP TABLE visit_source"); in DropVisitTable()
[all …]
Ddownload_database.cc64 if (!GetDB().DoesTableExist("downloads")) { in InitDownloadTable()
65 if (!GetDB().Execute( in InitDownloadTable()
80 return GetDB().Execute("DROP TABLE downloads"); in DropDownloadTable()
87 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in QueryDownloads()
113 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in UpdateDownload()
128 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in UpdateDownloadPath()
139 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in CleanUpInProgressEntries()
149 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in CreateDownload()
164 return GetDB().GetLastInsertRowId(); in CreateDownload()
169 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in RemoveDownload()
[all …]
Din_memory_database.cc27 NOTREACHED() << "Cannot open databse " << GetDB().GetErrorMessage(); in InitDB()
71 sql::Statement attach(GetDB().GetUniqueStatement("ATTACH ? AS history")); in InitFromDisk()
82 NOTREACHED() << GetDB().GetErrorMessage(); in InitFromDisk()
142 sql::Connection& InMemoryDatabase::GetDB() { in GetDB() function in history::InMemoryDatabase
Dstarred_url_database.cc92 if (!GetDB().DoesTableExist("starred")) in MigrateBookmarksToFile()
100 if (!GetDB().Execute("DROP TABLE starred")) { in MigrateBookmarksToFile()
115 sql::Statement s(GetDB().GetUniqueStatement(sql.c_str())); in GetAllStarredEntries()
158 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in UpdateStarredEntryRow()
176 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in AdjustStarredVisualOrder()
197 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in CreateStarredEntryRow()
228 return GetDB().GetLastInsertRowId(); in CreateStarredEntryRow()
233 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in DeleteStarredEntryRow()
244 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in GetStarredEntry()
305 sql::Statement max_folder_id_statement(GetDB().GetUniqueStatement( in GetMaxFolderID()
[all …]
Dtext_database_manager.cc337 TextDatabase* db = GetDB(db_ident, false); in DeletePageData()
340 db = GetDB(db_ident, true); in DeletePageData()
402 TextDatabase* db = GetDB(*i, false); in OptimizeChangedDatabases()
405 db = GetDB(*i, true); in OptimizeChangedDatabases()
462 TextDatabase* cur_db = GetDB(*i, false); in GetTextMatches()
491 TextDatabase* TextDatabaseManager::GetDB(TextDatabase::DBIdent id, in GetDB() function in history::TextDatabaseManager
531 return GetDB(TimeToID(time), create_if_necessary); in GetDBForTime()
Din_memory_database.h36 virtual sql::Connection& GetDB();
Darchived_database.h44 virtual sql::Connection& GetDB();
Ddownload_database.h56 virtual sql::Connection& GetDB() = 0;
Dvisitsegment_database.h74 virtual sql::Connection& GetDB() = 0;
Dhistory_database.h150 virtual sql::Connection& GetDB();
Darchived_database.cc83 sql::Connection& ArchivedDatabase::GetDB() { in GetDB() function in history::ArchivedDatabase
Durl_database_unittest.cc44 virtual sql::Connection& GetDB() { in GetDB() function in history::URLDatabaseTest
238 sql::Statement statement(GetDB().GetCachedStatement( in TEST_F()
Dvisit_database.h154 virtual sql::Connection& GetDB() = 0;
Dstarred_url_database.h46 virtual sql::Connection& GetDB() = 0;
Durl_database.h273 virtual sql::Connection& GetDB() = 0;
Dtext_database_manager.h230 TextDatabase* GetDB(TextDatabase::DBIdent id, bool for_writing);
Dhistory_database.cc242 sql::Connection& HistoryDatabase::GetDB() { in GetDB() function in history::HistoryDatabase
Dstarred_url_database_unittest.cc93 virtual sql::Connection& GetDB() { in GetDB() function in history::StarredURLDatabaseTest
Dvisit_database_unittest.cc62 virtual sql::Connection& GetDB() { in GetDB() function in history::VisitDatabaseTest
Din_memory_url_index_unittest.cc59 sql::Connection& db(GetDB()); in SetUp()
170 sql::Statement statement(GetDB().GetUniqueStatement("SELECT * FROM urls;")); in TEST_F()
Dtext_database_manager_unittest.cc56 virtual sql::Connection& GetDB() { return db_; } in GetDB() function in history::__anonae80ec510111::InMemDB