OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_COMMON_SQLITEUTILS_H_ | 5 #ifndef CHROME_COMMON_SQLITE_UTILS_H_ |
6 #define CHROME_COMMON_SQLITEUTILS_H_ | 6 #define CHROME_COMMON_SQLITE_UTILS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #if defined(USE_SYSTEM_SQLITE) | 11 #if defined(USE_SYSTEM_SQLITE) |
12 #include <sqlite3.h> | 12 #include <sqlite3.h> |
13 #else | 13 #else |
14 #include "third_party/sqlite/preprocessed/sqlite3.h" | 14 #include "third_party/sqlite/preprocessed/sqlite3.h" |
15 #endif | 15 #endif |
16 | 16 |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 // Test whether a table has one or more rows. Returns true if the table | 407 // Test whether a table has one or more rows. Returns true if the table |
408 // has one or more rows and false if the table is empty or doesn't exist. | 408 // has one or more rows and false if the table is empty or doesn't exist. |
409 bool DoesSqliteTableHaveRow(sqlite3* db, const char* table_name); | 409 bool DoesSqliteTableHaveRow(sqlite3* db, const char* table_name); |
410 | 410 |
411 #if defined(USE_SYSTEM_SQLITE) | 411 #if defined(USE_SYSTEM_SQLITE) |
412 // This function is a local change to sqlite3 which doesn't exist when one is | 412 // This function is a local change to sqlite3 which doesn't exist when one is |
413 // using the system sqlite library. Thus, we stub it out here. | 413 // using the system sqlite library. Thus, we stub it out here. |
414 int sqlite3Preload(sqlite3* db); | 414 int sqlite3Preload(sqlite3* db); |
415 #endif | 415 #endif |
416 | 416 |
417 #endif // CHROME_COMMON_SQLITEUTILS_H_ | 417 #endif // CHROME_COMMON_SQLITE_UTILS_H_ |
OLD | NEW |