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_SQLITEUTILS_H_ |
6 #define CHROME_COMMON_SQLITEUTILS_H_ | 6 #define CHROME_COMMON_SQLITEUTILS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 const char* table_name, | 366 const char* table_name, |
367 const char* column_name, | 367 const char* column_name, |
368 const char* column_type) { | 368 const char* column_type) { |
369 return DoesSqliteColumnExist(db, NULL, table_name, column_name, column_type); | 369 return DoesSqliteColumnExist(db, NULL, table_name, column_name, column_type); |
370 } | 370 } |
371 | 371 |
372 // Test whether a table has one or more rows. Returns true if the table | 372 // Test whether a table has one or more rows. Returns true if the table |
373 // has one or more rows and false if the table is empty or doesn't exist. | 373 // has one or more rows and false if the table is empty or doesn't exist. |
374 bool DoesSqliteTableHaveRow(sqlite3* db, const char* table_name); | 374 bool DoesSqliteTableHaveRow(sqlite3* db, const char* table_name); |
375 | 375 |
| 376 #if defined(USE_SYSTEM_SQLITE) |
| 377 // This function is a local change to sqlite3 which doesn't exist when one is |
| 378 // using the system sqlite library. Thus, we stub it out here. |
| 379 int sqlite3Preload(sqlite3* db); |
| 380 #endif |
| 381 |
376 #endif // CHROME_COMMON_SQLITEUTILS_H_ | 382 #endif // CHROME_COMMON_SQLITEUTILS_H_ |
OLD | NEW |