blob: 6eced73b6bc0770e412f527aae420854f86d8074 [file] [log] [blame]
[email protected]f0a54b22011-07-19 18:40:211// Copyright (c) 2011 The Chromium Authors. All rights reserved.
[email protected]b3b2d6e2009-12-18 00:19:442// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
tfarinafd5d26812015-07-14 16:35:355#ifndef SQL_INIT_STATUS_H_
6#define SQL_INIT_STATUS_H_
[email protected]b3b2d6e2009-12-18 00:19:447
8namespace sql {
9
10// Used as the return value for some databases' init functions.
11enum 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,
afakhrya592d29c2016-08-22 19:06:5719
20 // The database was deleted and re-opened successfully.
21 INIT_OK_WITH_DATA_LOSS,
[email protected]b3b2d6e2009-12-18 00:19:4422};
23
24} // namespace sql
25
tfarinafd5d26812015-07-14 16:35:3526#endif // SQL_INIT_STATUS_H_