/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 …]
|
D | TestHelper_Driver1.java | 18 package org.apache.harmony.sql.tests.java.sql; 20 import java.sql.Connection; 21 import java.sql.Driver; 22 import java.sql.DriverManager; 23 import java.sql.DriverPropertyInfo; 24 import java.sql.SQLException;
|
/external/chromium/chrome/browser/history/ |
D | thumbnail_database.cc | 30 static void FillIconMapping(const sql::Statement& statement, in FillIconMapping() 55 sql::InitStatus ThumbnailDatabase::Init( in Init() 60 sql::InitStatus status = OpenDatabase(&db_, db_name); in Init() 61 if (status != sql::INIT_OK) in Init() 65 sql::Transaction transaction(&db_); in Init() 84 return sql::INIT_FAILURE; in Init() 93 return sql::INIT_TOO_NEW; in Init() 101 return sql::INIT_FAILURE; in Init() 110 return sql::INIT_FAILURE; in Init() 121 return sql::INIT_FAILURE; in Init() [all …]
|
D | url_database.cc | 74 void URLDatabase::FillURLRow(sql::Statement& s, history::URLRow* i) { in FillURLRow() 90 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() 173 sql::StatementID(statement_name), statement_sql)); 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() 249 std::string sql("SELECT "); in InitURLEnumeratorForEverything() local [all …]
|
D | history_database.cc | 38 sql::Connection& db) { in ComputeDatabaseMetrics() 48 sql::Statement url_count(db.GetUniqueStatement("SELECT count(*) FROM urls")); in ComputeDatabaseMetrics() 53 sql::Statement visit_count(db.GetUniqueStatement( in ComputeDatabaseMetrics() 69 sql::InitStatus HistoryDatabase::Init(const FilePath& history_name, in Init() 91 return sql::INIT_FAILURE; in Init() 95 sql::Transaction committer(&db_); in Init() 97 return sql::INIT_FAILURE; in Init() 115 return sql::INIT_FAILURE; in Init() 119 return sql::INIT_FAILURE; in Init() 124 sql::InitStatus version_status = EnsureCurrentVersion(bookmarks_path); in Init() [all …]
|
D | visit_database.cc | 89 void VisitDatabase::FillVisitRow(sql::Statement& statement, VisitRow* visit) { in FillVisitRow() 100 void VisitDatabase::FillVisitVector(sql::Statement& statement, in FillVisitVector() 110 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in AddVisit() 137 sql::Statement statement1(GetDB().GetCachedStatement(SQL_FROM_HERE, in AddVisit() 160 sql::Statement update_chain(GetDB().GetCachedStatement(SQL_FROM_HERE, in DeleteVisit() 169 sql::Statement del(GetDB().GetCachedStatement(SQL_FROM_HERE, in DeleteVisit() 188 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in GetRowForVisit() 213 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in UpdateVisitRow() 233 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in GetVisitsForURL() 252 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in GetAllVisitsInRange() [all …]
|
D | download_database.cc | 36 void BindFilePath(sql::Statement& statement, const FilePath& path, int col) { in BindFilePath() 39 FilePath ColumnFilePath(sql::Statement& statement, int col) { in ColumnFilePath() 46 void BindFilePath(sql::Statement& statement, const FilePath& path, int col) { 49 FilePath ColumnFilePath(sql::Statement& statement, int col) { 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() 169 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in RemoveDownload() [all …]
|
D | top_sites_database.cc | 35 bool does_meta_exist = sql::MetaTable::DoesTableExist(db_.get()); in Init() 88 sql::Statement statement(db_->GetCachedStatement( in GetPageThumbnails() 146 sql::Transaction transaction(db_.get()); in SetPageThumbnail() 162 sql::Statement statement(db_->GetCachedStatement( in UpdatePageThumbnail() 192 sql::Statement statement(db_->GetCachedStatement( in AddPageThumbnail() 222 sql::Transaction transaction(db_.get()); in UpdatePageRank() 240 sql::Statement shift_statement(db_->GetCachedStatement( in UpdatePageRankNoTransaction() 251 sql::Statement shift_statement(db_->GetCachedStatement( in UpdatePageRankNoTransaction() 263 sql::Statement set_statement(db_->GetCachedStatement( in UpdatePageRankNoTransaction() 276 sql::Statement statement(db_->GetCachedStatement( in GetPageThumbnail() [all …]
|
D | archived_database.cc | 45 sql::Transaction transaction(&db_); in Init() 67 if (EnsureCurrentVersion() != sql::INIT_OK) { in Init() 83 sql::Connection& ArchivedDatabase::GetDB() { in GetDB() 89 sql::InitStatus ArchivedDatabase::EnsureCurrentVersion() { in EnsureCurrentVersion() 93 return sql::INIT_TOO_NEW; in EnsureCurrentVersion() 106 return sql::INIT_FAILURE; in EnsureCurrentVersion() 127 return sql::INIT_OK; in EnsureCurrentVersion()
|
D | history_unittest_base.cc | 19 std::string sql; in ExecuteSQLScript() local 20 ASSERT_TRUE(file_util::ReadFileToString(sql_path, &sql)); in ExecuteSQLScript() 29 sql = ReplaceStringPlaceholders(sql, sql_time, NULL); in ExecuteSQLScript() 31 sql::Connection connection; in ExecuteSQLScript() 33 ASSERT_TRUE(connection.Execute(sql.c_str())); in ExecuteSQLScript()
|
D | visitsegment_database.cc | 142 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in GetSegmentNamed() 155 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in UpdateSegmentRepresentationURL() 166 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in GetSegmentRepresentationURL() 179 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in CreateSegment() 196 sql::Statement select(GetDB().GetCachedStatement(SQL_FROM_HERE, in IncreaseSegmentVisitCount() 205 sql::Statement update(GetDB().GetCachedStatement(SQL_FROM_HERE, in IncreaseSegmentVisitCount() 215 sql::Statement insert(GetDB().GetCachedStatement(SQL_FROM_HERE, in IncreaseSegmentVisitCount() 241 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in QuerySegmentUsage() 300 sql::Statement statement2(GetDB().GetCachedStatement(SQL_FROM_HERE, in QuerySegmentUsage() 320 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in DeleteSegmentData() [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 …]
|
D | JDBCConnection.java | 3 import java.sql.*; 7 implements java.sql.Connection, SQLite.BusyHandler { 272 public String nativeSQL(String sql) throws SQLException { in nativeSQL() argument 276 public CallableStatement prepareCall(String sql) throws SQLException { in prepareCall() argument 280 public CallableStatement prepareCall(String sql, int x, int y) in prepareCall() argument 285 public PreparedStatement prepareStatement(String sql) throws SQLException { in prepareStatement() argument 286 JDBCPreparedStatement s = new JDBCPreparedStatement(this, sql); in prepareStatement() 290 public PreparedStatement prepareStatement(String sql, int resultSetType, in prepareStatement() argument 302 JDBCPreparedStatement s = new JDBCPreparedStatement(this, sql); in prepareStatement() 431 public PreparedStatement prepareStatement(String sql, int resultSetType, in prepareStatement() argument [all …]
|
D | JDBCPreparedStatement.java | 3 import java.sql.*; 22 implements java.sql.PreparedStatement { 24 private String sql; field in JDBCPreparedStatement 31 public JDBCPreparedStatement(JDBCConnection conn, String sql) { 36 this.sql = fixup(sql); 39 private String fixup(String sql) { 43 for (int i = 0; i < sql.length(); i++) { 44 char c = sql.charAt(i); 48 if(i + 1 < sql.length()) { 49 nextChar = sql.charAt(i + 1); [all …]
|
/external/chromium/chrome/browser/webdata/ |
D | web_database.cc | 24 void ChangeVersion(sql::MetaTable* meta_table, in ChangeVersion() 36 sql::InitStatus FailedMigrationTo(int version_num) { in FailedMigrationTo() 40 return sql::INIT_FAILURE; in FailedMigrationTo() 77 sql::Connection* WebDatabase::GetSQLConnection() { in GetSQLConnection() 81 sql::InitStatus WebDatabase::Init(const FilePath& db_name) { in Init() 104 return sql::INIT_FAILURE; in Init() 107 sql::Transaction transaction(&db_); in Init() 109 return sql::INIT_FAILURE; in Init() 113 return sql::INIT_FAILURE; in Init() 116 return sql::INIT_TOO_NEW; in Init() [all …]
|
D | web_database_migration_unittest.cc | 31 void AutofillProfile31FromStatement(const sql::Statement& s, in AutofillProfile31FromStatement() 60 void AutofillProfile32FromStatement(const sql::Statement& s, in AutofillProfile32FromStatement() 86 void AutofillProfile33FromStatement(const sql::Statement& s, in AutofillProfile33FromStatement() 103 void CreditCard31FromStatement(const sql::Statement& s, in CreditCard31FromStatement() 130 void CreditCard32FromStatement(const sql::Statement& s, in CreditCard32FromStatement() 188 static int VersionFromConnection(sql::Connection* connection) { in VersionFromConnection() 190 sql::Statement s(connection->GetUniqueStatement( in VersionFromConnection() 221 sql::Connection connection; in LoadDatabase() 231 ASSERT_EQ(sql::INIT_OK, db.Init(GetDatabasePath())); in MigrateVersion28Assertions() 237 sql::Connection connection; in MigrateVersion28Assertions() [all …]
|
D | autofill_table.cc | 61 sql::Statement* s) { in BindAutofillProfileToStatement() 84 AutofillProfile* AutofillProfileFromStatement(const sql::Statement& s) { in AutofillProfileFromStatement() 103 sql::Statement* s) { in BindCreditCardToStatement() 121 CreditCard* CreditCardFromStatement(const sql::Statement& s) { in CreditCardFromStatement() 146 bool AddAutofillProfileNamesToProfile(sql::Connection* db, in AddAutofillProfileNamesToProfile() 148 sql::Statement s(db->GetUniqueStatement( in AddAutofillProfileNamesToProfile() 173 bool AddAutofillProfileEmailsToProfile(sql::Connection* db, in AddAutofillProfileEmailsToProfile() 175 sql::Statement s(db->GetUniqueStatement( in AddAutofillProfileEmailsToProfile() 194 bool AddAutofillProfilePhonesToProfile(sql::Connection* db, in AddAutofillProfilePhonesToProfile() 196 sql::Statement s(db->GetUniqueStatement( in AddAutofillProfilePhonesToProfile() [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/chrome/browser/diagnostics/ |
D | sqlite_diagnostics.cc | 49 sql::Connection db; in ExecuteImpl() 55 sql::Statement s(db.GetUniqueStatement("PRAGMA integrity_check;")); in ExecuteImpl() 109 sql::ErrorDelegate* GetErrorHandlerForCookieDb() { in GetErrorHandlerForCookieDb() 110 return new sql::DiagnosticErrorDelegate<HistogramUniquifier<0> >(); in GetErrorHandlerForCookieDb() 113 sql::ErrorDelegate* GetErrorHandlerForHistoryDb() { in GetErrorHandlerForHistoryDb() 114 return new sql::DiagnosticErrorDelegate<HistogramUniquifier<1> >(); in GetErrorHandlerForHistoryDb() 117 sql::ErrorDelegate* GetErrorHandlerForThumbnailDb() { in GetErrorHandlerForThumbnailDb() 118 return new sql::DiagnosticErrorDelegate<HistogramUniquifier<2> >(); in GetErrorHandlerForThumbnailDb() 121 sql::ErrorDelegate* GetErrorHandlerForTextDb() { in GetErrorHandlerForTextDb() 122 return new sql::DiagnosticErrorDelegate<HistogramUniquifier<3> >(); in GetErrorHandlerForTextDb() [all …]
|
D | sqlite_diagnostics.h | 11 namespace sql { 17 sql::ErrorDelegate* GetErrorHandlerForCookieDb(); 18 sql::ErrorDelegate* GetErrorHandlerForHistoryDb(); 19 sql::ErrorDelegate* GetErrorHandlerForThumbnailDb(); 20 sql::ErrorDelegate* GetErrorHandlerForTextDb(); 21 sql::ErrorDelegate* GetErrorHandlerForWebDb();
|
/external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/ |
D | Impl_PooledConnection.java | 18 package org.apache.harmony.sql.tests.javax.sql; 20 import java.sql.Connection; 21 import java.sql.SQLException; 22 import javax.sql.ConnectionEventListener; 23 import javax.sql.PooledConnection; 24 import javax.sql.StatementEventListener;
|
/external/chromium/app/sql/ |
D | connection.cc | 48 namespace sql { namespace 205 bool Connection::Execute(const char* sql) { in Execute() argument 208 return sqlite3_exec(db_, sql, NULL, NULL, NULL) == SQLITE_OK; in Execute() 211 bool Connection::ExecuteWithTimeout(const char* sql, base::TimeDelta timeout) { in ExecuteWithTimeout() argument 217 return sqlite3_exec(db_, sql, NULL, NULL, NULL) == SQLITE_OK; in ExecuteWithTimeout() 226 const char* sql) { in GetCachedStatement() argument 238 scoped_refptr<StatementRef> statement = GetUniqueStatement(sql); in GetCachedStatement() 245 const char* sql) { in GetUniqueStatement() argument 250 if (sqlite3_prepare_v2(db_, sql, -1, &stmt, NULL) != SQLITE_OK) { in GetUniqueStatement() 273 std::string sql("PRAGMA TABLE_INFO("); in DoesColumnExist() local [all …]
|
D | transaction_unittest.cc | 29 sql::Connection& db() { return db_; } in db() 33 sql::Statement count(db().GetUniqueStatement("SELECT count(*) FROM foo")); in CountFoo() 40 sql::Connection db_; 45 sql::Transaction t(&db()); in TEST_F() 63 sql::Transaction t(&db()); in TEST_F() 75 sql::Transaction t2(&db()); in TEST_F() 93 sql::Transaction outer(&db()); in TEST_F() 99 sql::Transaction inner1(&db()); in TEST_F() 113 sql::Transaction inner2(&db()); in TEST_F() 126 sql::Transaction inner3(&db()); in TEST_F()
|
/external/webkit/Source/WebCore/storage/ |
D | IDBSQLiteBackingStore.cpp | 224 …String sql = invalidRowId ? "INSERT INTO Databases (name, description, version) VALUES (?, '', ?)"… in setIDBDatabaseMetaData() local 225 SQLiteStatement query(m_db, sql); in setIDBDatabaseMetaData() 284 static void doDelete(SQLiteDatabase& db, const char* sql, int64_t id) in doDelete() argument 286 SQLiteStatement deleteQuery(db, sql); in doDelete() 449 …String sql = sqliteRecordIdentifier->isValid() ? "UPDATE ObjectStoreData SET keyString = ?, keyDat… in putObjectStoreRecord() local 451 SQLiteStatement query(m_db, sql); in putObjectStoreRecord() 510 …String sql = String("SELECT id FROM ObjectStoreData WHERE objectStoreId = ? AND ") + whereSyntaxFo… in keyExistsInObjectStore() local 511 SQLiteStatement query(m_db, sql); in keyExistsInObjectStore() 619 String sql = String("SELECT ") in getObjectViaIndex() local 624 SQLiteStatement query(m_db, sql); in getObjectViaIndex() [all …]
|