init_status.h 638 B

1234567891011121314151617181920212223242526
  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
  3. // found in the LICENSE file.
  4. #ifndef SQL_INIT_STATUS_H_
  5. #define SQL_INIT_STATUS_H_
  6. namespace sql {
  7. // Used as the return value for some databases' init functions.
  8. enum InitStatus {
  9. INIT_OK,
  10. // Some error, usually I/O related opening the file.
  11. INIT_FAILURE,
  12. // The database is from a future version of the app and cannot be read.
  13. INIT_TOO_NEW,
  14. // The database was deleted and re-opened successfully.
  15. INIT_OK_WITH_DATA_LOSS,
  16. };
  17. } // namespace sql
  18. #endif // SQL_INIT_STATUS_H_