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 SQL_INIT_STATUS_H_ | 5 #ifndef SQL_INIT_STATUS_H_ |
6 #define SQL_INIT_STATUS_H_ | 6 #define SQL_INIT_STATUS_H_ |
7 | 7 |
8 namespace sql { | 8 namespace sql { |
9 | 9 |
10 // Used as the return value for some databases' init functions. | 10 // Used as the return value for some databases' init functions. |
11 enum InitStatus { | 11 enum InitStatus { |
12 INIT_OK, | 12 INIT_OK, |
13 | 13 |
14 // A catastrophic error occurred while opening the database, but the database | |
15 // was recovered and initialized successfully but data loss might have | |
16 // happened. | |
17 INIT_OK_WITH_DATA_LOSS, | |
18 | |
Scott Hess - ex-Googler
2016/08/18 21:51:38
Any reason this isn't at the end of the list?
Als
afakhry
2016/08/19 18:01:57
No, no reason. I put up there to be close to INIT_
| |
14 // Some error, usually I/O related opening the file. | 19 // Some error, usually I/O related opening the file. |
15 INIT_FAILURE, | 20 INIT_FAILURE, |
16 | 21 |
17 // The database is from a future version of the app and cannot be read. | 22 // The database is from a future version of the app and cannot be read. |
18 INIT_TOO_NEW, | 23 INIT_TOO_NEW, |
19 }; | 24 }; |
20 | 25 |
21 } // namespace sql | 26 } // namespace sql |
22 | 27 |
23 #endif // SQL_INIT_STATUS_H_ | 28 #endif // SQL_INIT_STATUS_H_ |
OLD | NEW |