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 APP_SQL_STATEMENT_H_ | 5 #ifndef SQL_STATEMENT_H_ |
6 #define APP_SQL_STATEMENT_H_ | 6 #define SQL_STATEMENT_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 "app/sql/connection.h" | |
13 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
14 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
15 #include "base/string16.h" | 14 #include "base/string16.h" |
| 15 #include "sql/connection.h" |
16 | 16 |
17 namespace sql { | 17 namespace sql { |
18 | 18 |
19 // Possible return values from ColumnType in a statement. These should match | 19 // Possible return values from ColumnType in a statement. These should match |
20 // the values in sqlite3.h. | 20 // the values in sqlite3.h. |
21 enum ColType { | 21 enum ColType { |
22 COLUMN_TYPE_INTEGER = 1, | 22 COLUMN_TYPE_INTEGER = 1, |
23 COLUMN_TYPE_FLOAT = 2, | 23 COLUMN_TYPE_FLOAT = 2, |
24 COLUMN_TYPE_TEXT = 3, | 24 COLUMN_TYPE_TEXT = 3, |
25 COLUMN_TYPE_BLOB = 4, | 25 COLUMN_TYPE_BLOB = 4, |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 scoped_refptr<Connection::StatementRef> ref_; | 157 scoped_refptr<Connection::StatementRef> ref_; |
158 | 158 |
159 // See Succeeded() for what this holds. | 159 // See Succeeded() for what this holds. |
160 bool succeeded_; | 160 bool succeeded_; |
161 | 161 |
162 DISALLOW_COPY_AND_ASSIGN(Statement); | 162 DISALLOW_COPY_AND_ASSIGN(Statement); |
163 }; | 163 }; |
164 | 164 |
165 } // namespace sql | 165 } // namespace sql |
166 | 166 |
167 #endif // APP_SQL_STATEMENT_H_ | 167 #endif // SQL_STATEMENT_H_ |
OLD | NEW |