Index: sql/connection.h |
=================================================================== |
--- sql/connection.h (revision 113546) |
+++ sql/connection.h (working copy) |
@@ -248,6 +248,9 @@ |
// Returns true if the given table exists. |
bool DoesTableExist(const char* table_name) const; |
+ // Returns true if the given index exists. |
+ bool DoesIndexExist(const char* index_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) const; |
@@ -283,6 +286,9 @@ |
// sqlite3_open. The string can also be sqlite's special ":memory:" string. |
bool OpenInternal(const std::string& file_name); |
+ // Internal helper for DoesTableExist and DoesIndexExist. |
+ bool DoesTableOrIndexExist(const char* name, const char* type) const; |
+ |
// A StatementRef is a refcounted wrapper around a sqlite statement pointer. |
// Refcounting allows us to give these statements out to sql::Statement |
// objects while also optionally maintaining a cache of compiled statements |