/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | SQLiteQueryBuilderTest.java | 25 String sql = SQLiteQueryBuilder.buildQueryString( in testDistinct() local 30 assertThat(sql, equalTo("SELECT DISTINCT id, name FROM table_name")); in testDistinct() 36 String sql = SQLiteQueryBuilder.buildQueryString( in testSelectColumn() local 41 assertThat(sql, equalTo("SELECT id FROM table_name")); in testSelectColumn() 46 String sql = SQLiteQueryBuilder.buildQueryString( in testSelectColumns() local 51 assertThat(sql, equalTo("SELECT id, name FROM table_name")); in testSelectColumns() 56 String sql = SQLiteQueryBuilder.buildQueryString( in testSelectAllColumns() local 60 assertThat(sql, equalTo("SELECT * FROM table_name")); in testSelectAllColumns() 65 String sql = SQLiteQueryBuilder.buildQueryString( in testWhereClause() local 70 …assertThat(sql, equalTo("SELECT person, department, division FROM table_name WHERE (id = 2 AND nam… in testWhereClause() [all …]
|
/external/chromium_org/chrome/browser/history/android/ |
D | android_cache_database.cc | 22 sql::InitStatus AndroidCacheDatabase::InitAndroidCacheDatabase( in InitAndroidCacheDatabase() 25 return sql::INIT_FAILURE; in InitAndroidCacheDatabase() 28 return sql::INIT_FAILURE; in InitAndroidCacheDatabase() 31 return sql::INIT_FAILURE; in InitAndroidCacheDatabase() 34 return sql::INIT_FAILURE; in InitAndroidCacheDatabase() 36 return sql::INIT_OK; in InitAndroidCacheDatabase() 42 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in AddBookmarkCacheRow() 59 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in ClearAllBookmarkCache() 84 std::string sql("UPDATE android_cache_db.bookmark_cache " in MarkURLsAsBookmarked() local 86 sql.append(oss.str()); in MarkURLsAsBookmarked() [all …]
|
D | android_urls_database.cc | 20 std::string sql; in CreateAndroidURLsTable() local 21 sql.append("CREATE TABLE "); in CreateAndroidURLsTable() 22 sql.append(name); in CreateAndroidURLsTable() 23 sql.append("(" in CreateAndroidURLsTable() 28 if (!GetDB().Execute(sql.c_str())) { in CreateAndroidURLsTable() 55 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in AddAndroidURLRow() 69 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in GetAndroidURLRow() 89 std::string sql; in DeleteAndroidURLRows() local 90 sql.append("DELETE FROM android_urls "); in DeleteAndroidURLRows() 103 sql.append(" WHERE url_id in ( "); in DeleteAndroidURLRows() [all …]
|
/external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/ |
D | TestHelper_Connection1.java | 18 package org.apache.harmony.sql.tests.java.sql; 20 import java.sql.Array; 21 import java.sql.Blob; 22 import java.sql.CallableStatement; 23 import java.sql.Clob; 24 import java.sql.Connection; 25 import java.sql.DatabaseMetaData; 26 import java.sql.NClob; 27 import java.sql.PreparedStatement; 28 import java.sql.SQLClientInfoException; [all …]
|
/external/chromium_org/components/enhanced_bookmarks/ |
D | persistent_image_store.cc | 16 bool InitTables(sql::Connection& db) { in InitTables() 30 bool InitIndices(sql::Connection& db) { in InitIndices() 38 sql::InitStatus OpenDatabaseImpl(sql::Connection& db, in OpenDatabaseImpl() 51 return sql::INIT_FAILURE; in OpenDatabaseImpl() 54 sql::Transaction transaction(&db); in OpenDatabaseImpl() 56 return sql::INIT_FAILURE; in OpenDatabaseImpl() 61 return sql::INIT_FAILURE; in OpenDatabaseImpl() 66 return sql::INIT_FAILURE; in OpenDatabaseImpl() 68 return sql::INIT_OK; in OpenDatabaseImpl() 81 if (OpenDatabase() != sql::INIT_OK) in HasKey() [all …]
|
/external/chromium_org/sql/ |
D | recovery_unittest.cc | 28 std::string ExecuteWithResults(sql::Connection* db, in ExecuteWithResults() 29 const char* sql, in ExecuteWithResults() argument 32 sql::Statement s(db->GetUniqueStatement(sql)); in ExecuteWithResults() 40 if (s.ColumnType(i) == sql::COLUMN_TYPE_NULL) { in ExecuteWithResults() 42 } else if (s.ColumnType(i) == sql::COLUMN_TYPE_BLOB) { in ExecuteWithResults() 58 std::string GetSchema(sql::Connection* db) { in GetSchema() 77 sql::Connection& db() { return db_; } in db() 90 sql::Connection db_; 103 scoped_ptr<sql::Recovery> recovery = sql::Recovery::Begin(&db(), db_path()); in TEST_F() 118 scoped_ptr<sql::Recovery> recovery = sql::Recovery::Begin(&db(), db_path()); in TEST_F() [all …]
|
D | meta_table_unittest.cc | 26 sql::Connection& db() { return db_; } in db() 30 sql::Connection db_; 34 EXPECT_FALSE(sql::MetaTable::DoesTableExist(&db())); in TEST_F() 37 sql::MetaTable meta_table; in TEST_F() 41 EXPECT_TRUE(sql::MetaTable::DoesTableExist(&db())); in TEST_F() 50 sql::MetaTable meta_table; in TEST_F() 57 sql::MetaTable::RazeIfDeprecated(&db(), kDeprecatedVersion); in TEST_F() 66 sql::MetaTable meta_table; in TEST_F() 70 sql::MetaTable::RazeIfDeprecated(&db(), kDeprecatedVersion); in TEST_F() 75 sql::MetaTable::RazeIfDeprecated(&db(), kDeprecatedVersion); in TEST_F() [all …]
|
D | connection_unittest.cc | 23 int SqliteMasterCount(sql::Connection* db) { in SqliteMasterCount() 25 sql::Statement s(db->GetUniqueStatement(kMasterCount)); in SqliteMasterCount() 53 void IgnoreErrorCallback(int error, sql::Statement* stmt) { in IgnoreErrorCallback() 56 void ErrorCallbackSetHelper(sql::Connection* db, in ErrorCallbackSetHelper() 59 int error, sql::Statement* stmt) { in ErrorCallbackSetHelper() 66 void ErrorCallbackResetHelper(sql::Connection* db, in ErrorCallbackResetHelper() 69 int error, sql::Statement* stmt) { in ErrorCallbackResetHelper() 103 sql::Connection& db() { return db_; } in db() 107 void RazeErrorCallback(int expected_error, int error, sql::Statement* stmt) { in RazeErrorCallback() 113 sql::Connection db_; [all …]
|
/external/chromium_org/sql/test/ |
D | test_helpers.cc | 17 size_t CountSQLItemsOfType(sql::Connection* db, const char* type) { in CountSQLItemsOfType() 19 sql::Statement s(db->GetUniqueStatement(kTypeSQL)); in CountSQLItemsOfType() 26 bool GetPageSize(sql::Connection* db, int* page_size) { in GetPageSize() 27 sql::Statement s(db->GetUniqueStatement("PRAGMA page_size")); in GetPageSize() 35 bool GetRootPage(sql::Connection* db, const char* name, int* page_number) { in GetRootPage() 37 sql::Statement s(db->GetUniqueStatement(kPageSql)); in GetRootPage() 66 namespace sql { namespace 115 sql::Connection db; in CorruptTableOrIndex() 176 size_t CountSQLTables(sql::Connection* db) { in CountSQLTables() 180 size_t CountSQLIndices(sql::Connection* db) { in CountSQLIndices() [all …]
|
/external/chromium_org/components/webdata/common/ |
D | web_database_migration_unittest.cc | 41 void AutofillProfile31FromStatement(const sql::Statement& s, in AutofillProfile31FromStatement() 71 void AutofillProfile33FromStatement(const sql::Statement& s, in AutofillProfile33FromStatement() 90 void CreditCard31FromStatement(const sql::Statement& s, in CreditCard31FromStatement() 118 void CreditCard32FromStatement(const sql::Statement& s, in CreditCard32FromStatement() 139 void CheckHasBackupData(sql::MetaTable* meta_table) { in CheckHasBackupData() 147 void CheckNoBackupData(const sql::Connection& connection, in CheckNoBackupData() 148 sql::MetaTable* meta_table) { in CheckNoBackupData() 198 ASSERT_EQ(sql::INIT_OK, db.Init(GetDatabasePath())); in DoMigration() 229 static int VersionFromConnection(sql::Connection* connection) { in VersionFromConnection() 231 sql::Statement s(connection->GetUniqueStatement( in VersionFromConnection() [all …]
|
D | web_database.cc | 25 void ChangeVersion(sql::MetaTable* meta_table, in ChangeVersion() 37 sql::InitStatus FailedMigrationTo(int version_num) { in FailedMigrationTo() 41 return sql::INIT_FAILURE; in FailedMigrationTo() 67 sql::Connection* WebDatabase::GetSQLConnection() { in GetSQLConnection() 71 sql::InitStatus WebDatabase::Init(const base::FilePath& db_name) { in Init() 88 return sql::INIT_FAILURE; in Init() 91 sql::Transaction transaction(&db_); in Init() 93 return sql::INIT_FAILURE; in Init() 97 return sql::INIT_FAILURE; in Init() 100 return sql::INIT_TOO_NEW; in Init() [all …]
|
/external/chromium_org/chrome/browser/history/ |
D | history_database.cc | 42 sql::InitStatus HistoryDatabase::Init(const base::FilePath& history_name) { in Init() 65 return sql::INIT_FAILURE; in Init() 69 sql::Transaction committer(&db_); in Init() 71 return sql::INIT_FAILURE; in Init() 85 return sql::INIT_FAILURE; in Init() 89 return sql::INIT_FAILURE; in Init() 97 sql::InitStatus version_status = EnsureCurrentVersion(); in Init() 98 if (version_status != sql::INIT_OK) in Init() 101 return committer.Commit() ? sql::INIT_OK : sql::INIT_FAILURE; in Init() 113 sql::Statement url_count(db_.GetUniqueStatement("SELECT count(*) FROM urls")); in ComputeDatabaseMetrics() [all …]
|
D | thumbnail_database.cc | 91 void FillIconMapping(const sql::Statement& statement, in FillIconMapping() 127 void ReportCorrupt(sql::Connection* db, size_t startup_kb) { in ReportCorrupt() 164 void ReportError(sql::Connection* db, int error) { in ReportError() 182 sql::Statement statement(db->GetUniqueStatement(kVersionSql)); in ReportError() 209 sql::Statement statement(db->GetUniqueStatement(kSchemaSql)); in ReportError() 229 void GenerateDiagnostics(sql::Connection* db, in GenerateDiagnostics() 281 bool InitTables(sql::Connection* db) { in InitTables() 322 bool InitIndices(sql::Connection* db) { in InitIndices() 393 void RecoverDatabaseOrRaze(sql::Connection* db, const base::FilePath& db_path) { in RecoverDatabaseOrRaze() 409 scoped_ptr<sql::Recovery> recovery = sql::Recovery::Begin(db, db_path); in RecoverDatabaseOrRaze() [all …]
|
D | top_sites_database.cc | 64 bool InitTables(sql::Connection* db) { in InitTables() 148 void FixThumbnailsTable(sql::Connection* db) { in FixThumbnailsTable() 174 sql::Statement select_statement(db->GetUniqueStatement(kByRankSql)); in FixThumbnailsTable() 178 sql::Statement update_statement(db->GetUniqueStatement(kAdjustRankSql)); in FixThumbnailsTable() 200 void RecoverDatabaseOrRaze(sql::Connection* db, const base::FilePath& db_path) { in RecoverDatabaseOrRaze() 213 scoped_ptr<sql::Recovery> recovery = sql::Recovery::Begin(db, db_path); in RecoverDatabaseOrRaze() 226 sql::Recovery::Rollback(recovery.Pass()); in RecoverDatabaseOrRaze() 235 sql::Recovery::Unrecoverable(recovery.Pass()); in RecoverDatabaseOrRaze() 245 sql::Recovery::Rollback(recovery.Pass()); in RecoverDatabaseOrRaze() 250 sql::MetaTable recover_meta_table; in RecoverDatabaseOrRaze() [all …]
|
/external/javasqlite/src/main/java/SQLite/JDBC2z/ |
D | JDBCResultSetMetaData.java | 3 import java.sql.*; 5 public class JDBCResultSetMetaData implements java.sql.ResultSetMetaData { 13 public String getCatalogName(int column) throws java.sql.SQLException { in getCatalogName() 17 public String getColumnClassName(int column) throws java.sql.SQLException { in getColumnClassName() 44 public int getColumnCount() throws java.sql.SQLException { in getColumnCount() 51 public int getColumnDisplaySize(int column) throws java.sql.SQLException { in getColumnDisplaySize() 55 public String getColumnLabel(int column) throws java.sql.SQLException { in getColumnLabel() 67 public String getColumnName(int column) throws java.sql.SQLException { in getColumnName() 85 public int getColumnType(int column) throws java.sql.SQLException { in getColumnType() 98 public String getColumnTypeName(int column) throws java.sql.SQLException { in getColumnTypeName() [all …]
|
D | JDBCStatement.java | 3 import java.sql.*; 6 public class JDBCStatement implements java.sql.Statement { 85 ResultSet executeQuery(String sql, String args[], boolean updonly) in executeQuery() argument 106 conn.db.exec(sql, null); in executeQuery() 108 tr = conn.db.get_table(sql, maxrows); in executeQuery() 112 conn.db.exec(sql, null, args); in executeQuery() 114 tr = conn.db.get_table(sql, maxrows, args); in executeQuery() 154 public ResultSet executeQuery(String sql) throws SQLException { in executeQuery() argument 155 return executeQuery(sql, null, false); in executeQuery() 158 public boolean execute(String sql) throws SQLException { in execute() argument [all …]
|
/external/chromium_org/third_party/sqlite/src/test/ |
D | speed2.test | 25 proc tracesql {sql} { 26 puts $::sqlout $sql\; 84 set sql {} 87 append sql "INSERT INTO t1 VALUES($i,$r,'[number_name $r]');\n" 90 speed_trial speed2-insert1 50000 row $sql 95 set sql {} 98 append sql "INSERT INTO t2 VALUES($i,$r,'[number_name $r]');\n" 101 speed_trial speed2-insert2 50000 row $sql 109 set sql {} 113 append sql "SELECT count(*), avg(b) FROM t1 WHERE b>=$lwr AND b<$upr;" [all …]
|
D | index2.test | 22 set sql {CREATE TABLE t1(} 24 append sql "c$i," 26 append sql "c1000);" 27 execsql $sql 30 set sql {INSERT INTO t1 VALUES(} 32 append sql $i, 34 append sql {1000);} 35 execsql $sql 43 set sql {INSERT INTO t1 VALUES(} 45 append sql [expr {$j*10000+$i}], [all …]
|
D | mallocK.test | 20 set sql {SELECT * FROM t1, t2 WHERE (a=1 OR a=2)} 22 append sql " AND b=y" 23 do_malloc_test mallocK-1.$x -sqlbody $sql -sqlprep { 29 set sql {SELECT * FROM t1 WHERE a GLOB 'xyz*' AND (a=1 OR a=2)} 31 append sql " AND b!=$x" 32 do_malloc_test mallocK-2.$x -sqlbody $sql -sqlprep { 37 set sql {SELECT * FROM t1 WHERE a BETWEEN 5 AND 10} 39 append sql " AND b=$x" 40 do_malloc_test mallocK-3.$x -sqlbody $sql -sqlprep { 45 set sql {SELECT * FROM t1 WHERE b=0} [all …]
|
D | lock_common.tcl | 47 proc sql1 {sql} { db eval $sql } 48 proc sql2 {sql} { code2 [list db2 eval $sql] } 49 proc sql3 {sql} { code3 [list db3 eval $sql] } 51 proc csql1 {sql} { list [catch { sql1 $sql } msg] $msg } 52 proc csql2 {sql} { list [catch { sql2 $sql } msg] $msg } 53 proc csql3 {sql} { list [catch { sql3 $sql } msg] $msg }
|
/external/chromium_org/components/history/core/browser/ |
D | url_database.cc | 63 void URLDatabase::FillURLRow(sql::Statement& s, history::URLRow* i) { in FillURLRow() 79 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in GetURLRow() 91 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in GetAllTypedUrls() 103 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in GetRowForURL() 118 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in UpdateURLRow() 153 sql::Statement statement(GetDB().GetCachedStatement( in AddURLInternal() 154 sql::StatementID(statement_name), statement_sql)); in AddURLInternal() 183 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in InsertOrUpdateURLRowByID() 200 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in DeleteURLRow() 239 std::string sql("SELECT "); in InitURLEnumeratorForEverything() local [all …]
|
/external/chromium_org/content/browser/appcache/ |
D | appcache_database.cc | 159 bool CreateTable(sql::Connection* db, const TableInfo& info) { in CreateTable() 160 std::string sql("CREATE TABLE "); in CreateTable() local 161 sql += info.table_name; in CreateTable() 162 sql += info.columns; in CreateTable() 163 return db->Execute(sql.c_str()); in CreateTable() 166 bool CreateIndex(sql::Connection* db, const IndexInfo& info) { in CreateIndex() 167 std::string sql; in CreateIndex() local 169 sql += "CREATE UNIQUE INDEX "; in CreateIndex() 171 sql += "CREATE INDEX "; in CreateIndex() 172 sql += info.index_name; in CreateIndex() [all …]
|
/external/javasqlite/src/main/java/SQLite/ |
D | Database.java | 175 public void exec(String sql, SQLite.Callback cb) throws SQLite.Exception { in exec() argument 177 _exec(sql, cb); in exec() 181 private native void _exec(String sql, SQLite.Callback cb) in _exec() argument 207 public void exec(String sql, SQLite.Callback cb, in exec() argument 210 _exec(sql, cb, args); in exec() 214 private native void _exec(String sql, SQLite.Callback cb, String args[]) in _exec() argument 293 public TableResult get_table(String sql, int maxrows) in get_table() argument 298 exec(sql, ret); in get_table() 307 Vm vm = compile(sql); in get_table() 332 public TableResult get_table(String sql) throws SQLite.Exception { in get_table() argument [all …]
|
/external/chromium_org/storage/browser/quota/ |
D | quota_database.cc | 153 sql::Statement statement(db_->GetCachedStatement(SQL_FROM_HERE, kSql)); in GetHostQuota() 174 sql::Statement statement(db_->GetCachedStatement(SQL_FROM_HERE, kSql)); in SetHostQuota() 191 sql::Statement statement; in SetOriginLastAccessTime() 225 sql::Statement statement; in SetOriginLastModifiedTime() 262 sql::Statement statement(db_->GetCachedStatement(SQL_FROM_HERE, kSql)); in RegisterInitialOriginInfo() 283 sql::Statement statement(db_->GetCachedStatement(SQL_FROM_HERE, kSql)); in DeleteHostQuota() 303 sql::Statement statement(db_->GetCachedStatement(SQL_FROM_HERE, kSql)); in DeleteOriginInfo() 341 sql::Statement statement(db_->GetCachedStatement(SQL_FROM_HERE, kSql)); in GetLRUOrigin() 368 sql::Statement statement(db_->GetCachedStatement(SQL_FROM_HERE, kSql)); in GetOriginsModifiedSince() 422 sql::Statement statement(db_->GetCachedStatement(SQL_FROM_HERE, kSql)); in FindOriginUsedCount() [all …]
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowSQLiteDatabase.java | 14 import java.sql.Connection; 15 import java.sql.PreparedStatement; 16 import java.sql.ResultSet; 17 import java.sql.SQLException; 18 import java.sql.Statement; 94 …PreparedStatement insert = connection.prepareStatement(sqlInsertString.sql, Statement.RETURN_GENER… in insertWithOnConflict() 123 String sql = SQLiteQueryBuilder.buildQueryString(distinct, table, in query() local 129 resultSet = statement.executeQuery(sql); in query() 135 shadowOf(cursor).setResultSet(resultSet,sql); in query() 158 PreparedStatement statement = connection.prepareStatement(sqlUpdateString.sql); in update() [all …]
|