OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_SQLITE_UTILS_H_ | 5 #ifndef CHROME_BROWSER_SYNC_UTIL_SQLITE_UTILS_H_ |
6 #define CHROME_COMMON_SQLITE_UTILS_H_ | 6 #define CHROME_BROWSER_SYNC_UTIL_SQLITE_UTILS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/string16.h" | 14 #include "base/string16.h" |
15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
16 #include "third_party/sqlite/sqlite3.h" | 16 #include "third_party/sqlite/sqlite3.h" |
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 const char* column_type) { | 390 const char* column_type) { |
391 return DoesSqliteColumnExist(db, NULL, table_name, column_name, column_type); | 391 return DoesSqliteColumnExist(db, NULL, table_name, column_name, column_type); |
392 } | 392 } |
393 | 393 |
394 // Test whether a table has one or more rows. Returns true if the table | 394 // Test whether a table has one or more rows. Returns true if the table |
395 // has one or more rows and false if the table is empty or doesn't exist. | 395 // has one or more rows and false if the table is empty or doesn't exist. |
396 bool DoesSqliteTableHaveRow(sqlite3* db, const char* table_name); | 396 bool DoesSqliteTableHaveRow(sqlite3* db, const char* table_name); |
397 | 397 |
398 } // namespace sqlite_utils | 398 } // namespace sqlite_utils |
399 | 399 |
400 #endif // CHROME_COMMON_SQLITE_UTILS_H_ | 400 #endif // CHROME_BROWSER_SYNC_UTIL_SQLITE_UTILS_H_ |
OLD | NEW |