[email protected] | f0a54b2 | 2011-07-19 18:40:21 | [diff] [blame] | 1 | // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
[email protected] | b3b2d6e | 2009-12-18 00:19:44 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
tfarina | fd5d2681 | 2015-07-14 16:35:35 | [diff] [blame] | 5 | #ifndef SQL_INIT_STATUS_H_ |
6 | #define SQL_INIT_STATUS_H_ | ||||
[email protected] | b3b2d6e | 2009-12-18 00:19:44 | [diff] [blame] | 7 | |
8 | namespace sql { | ||||
9 | |||||
10 | // Used as the return value for some databases' init functions. | ||||
11 | enum InitStatus { | ||||
12 | INIT_OK, | ||||
13 | |||||
14 | // Some error, usually I/O related opening the file. | ||||
15 | INIT_FAILURE, | ||||
16 | |||||
17 | // The database is from a future version of the app and cannot be read. | ||||
18 | INIT_TOO_NEW, | ||||
afakhry | a592d29c | 2016-08-22 19:06:57 | [diff] [blame] | 19 | |
20 | // The database was deleted and re-opened successfully. | ||||
21 | INIT_OK_WITH_DATA_LOSS, | ||||
[email protected] | b3b2d6e | 2009-12-18 00:19:44 | [diff] [blame] | 22 | }; |
23 | |||||
24 | } // namespace sql | ||||
25 | |||||
tfarina | fd5d2681 | 2015-07-14 16:35:35 | [diff] [blame] | 26 | #endif // SQL_INIT_STATUS_H_ |