| Index: chrome/common/sqlite_utils.h
|
| ===================================================================
|
| --- chrome/common/sqlite_utils.h (revision 8772)
|
| +++ chrome/common/sqlite_utils.h (working copy)
|
| @@ -13,6 +13,7 @@
|
| #include "third_party/sqlite/preprocessed/sqlite3.h"
|
|
|
| // forward declarations of classes defined here
|
| +class FilePath;
|
| class SQLTransaction;
|
| class SQLNestedTransaction;
|
| class SQLNestedTransactionSite;
|
| @@ -311,6 +312,13 @@
|
| DISALLOW_COPY_AND_ASSIGN(SQLStatement);
|
| };
|
|
|
| +// TODO(estade): wrap the following static functions in a namespace.
|
| +
|
| +// Opens the DB in the file pointed to by |filepath|.
|
| +// See http://www.sqlite.org/capi3ref.html#sqlite3_open for an explanation
|
| +// of the return value.
|
| +int OpenSqliteDb(const FilePath& filepath, sqlite3** database);
|
| +
|
| // Returns true if there is a table with the given name in the database.
|
| // For the version where a database name is specified, it may be NULL or the
|
| // empty string if no database name is necessary.
|
| @@ -321,7 +329,6 @@
|
| return DoesSqliteTableExist(db, NULL, table_name);
|
| }
|
|
|
| -
|
| // Test whether a table has a column matching the provided name and type.
|
| // Returns true if the column exist and false otherwise. There are two
|
| // versions, one that takes a database name, the other that doesn't. The
|
|
|