Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1419)

Unified Diff: app/sql/connection.h

Issue 201099: Convert the sqlite cookie database and web database to use the new sqlite... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | app/sql/connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/sql/connection.h
===================================================================
--- app/sql/connection.h (revision 26110)
+++ app/sql/connection.h (working copy)
@@ -197,15 +197,20 @@
// Info querying -------------------------------------------------------------
// Returns true if the given table exists.
- bool DoesTableExist( const char* table_name);
+ bool DoesTableExist( const char* table_name) const;
// Returns true if a column with the given name exists in the given table.
- bool DoesColumnExist(const char* table_name, const char* column_name);
+ bool DoesColumnExist(const char* table_name, const char* column_name) const;
// Returns sqlite's internal ID for the last inserted row. Valid only
// immediately after an insert.
int64 GetLastInsertRowId() const;
+ // Returns sqlite's count of the number of rows modified by the last
+ // statement executed. Will be 0 if no statement has executed or the database
+ // is closed.
+ int GetLastChangeCount() const;
+
// Errors --------------------------------------------------------------------
// Returns the error code associated with the last sqlite operation.
« no previous file with comments | « no previous file | app/sql/connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698