Chromium Code Reviews| Index: sql/connection.h |
| =================================================================== |
| --- sql/connection.h (revision 113279) |
| +++ sql/connection.h (working copy) |
| @@ -248,6 +248,9 @@ |
| // Returns true if the given table exists. |
| bool DoesTableExist(const char* table_name) const; |
| + // Return 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. |
|
jennb
2011/12/07 21:55:08
Does this return true if both Table and Index exis
michaeln
2011/12/08 01:39:00
The caller indicates which object type to look for
|
| + 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 |