Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: sql/meta_table.h

Issue 8506027: build sql as a component - this will help ensure there is only one copy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: don't export DiagnosticErrorDelegate Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sql/diagnostic_error_delegate.h ('k') | sql/sql.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 SQL_META_TABLE_H_ 5 #ifndef SQL_META_TABLE_H_
6 #define SQL_META_TABLE_H_ 6 #define SQL_META_TABLE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "sql/sql_export.h"
12 13
13 namespace sql { 14 namespace sql {
14 15
15 class Connection; 16 class Connection;
16 class Statement; 17 class Statement;
17 18
18 class MetaTable { 19 class SQL_EXPORT MetaTable {
19 public: 20 public:
20 MetaTable(); 21 MetaTable();
21 ~MetaTable(); 22 ~MetaTable();
22 23
23 // Returns true if the 'meta' table exists. 24 // Returns true if the 'meta' table exists.
24 static bool DoesTableExist(Connection* db); 25 static bool DoesTableExist(Connection* db);
25 26
26 // Initializes the MetaTableHelper, creating the meta table if necessary. For 27 // Initializes the MetaTableHelper, creating the meta table if necessary. For
27 // new tables, it will initialize the version number to |version| and the 28 // new tables, it will initialize the version number to |version| and the
28 // compatible version number to |compatible_version|. 29 // compatible version number to |compatible_version|.
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 bool PrepareGetStatement(Statement* statement, const char* key); 75 bool PrepareGetStatement(Statement* statement, const char* key);
75 76
76 Connection* db_; 77 Connection* db_;
77 78
78 DISALLOW_COPY_AND_ASSIGN(MetaTable); 79 DISALLOW_COPY_AND_ASSIGN(MetaTable);
79 }; 80 };
80 81
81 } // namespace sql 82 } // namespace sql
82 83
83 #endif // SQL_META_TABLE_H_ 84 #endif // SQL_META_TABLE_H_
OLDNEW
« no previous file with comments | « sql/diagnostic_error_delegate.h ('k') | sql/sql.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698