summaryrefslogtreecommitdiffstats
path: root/sql/connection.h
diff options
context:
space:
mode:
authorshess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-16 11:09:58 +0000
committershess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-16 11:09:58 +0000
commit92cd00a38e3897077f365d222941eb97ebb9eac2 (patch)
treeff6933ca87707336026038fc23de64fed07c0bd5 /sql/connection.h
parent9aadaa40cb4e67be82c18d832083c1ad699b753f (diff)
downloadchromium_src-92cd00a38e3897077f365d222941eb97ebb9eac2.zip
chromium_src-92cd00a38e3897077f365d222941eb97ebb9eac2.tar.gz
chromium_src-92cd00a38e3897077f365d222941eb97ebb9eac2.tar.bz2
Refactor clearing thumbnail history.
Previously, ThumbnailDatabase exposed much internals knowledge. Push most of that down into the class and remove the schema hacks which are no longer necessary. BUG=272519 TEST=Unit tests. Review URL: https://chromiumcodereview.appspot.com/22898003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@217993 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sql/connection.h')
-rw-r--r--sql/connection.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/connection.h b/sql/connection.h
index 24f06de..7938606 100644
--- a/sql/connection.h
+++ b/sql/connection.h
@@ -389,6 +389,11 @@ class SQL_EXPORT Connection {
// last sqlite operation.
const char* GetErrorMessage() const;
+ // Return a reproducible representation of the schema equivalent to
+ // running the following statement at a sqlite3 command-line:
+ // SELECT type, name, tbl_name, sql FROM sqlite_master ORDER BY 1, 2, 3, 4;
+ std::string GetSchema() const;
+
private:
// For recovery module.
friend class Recovery;