0
Files
src/sql/init_status.h
Avi Drissman 69b874fee0 Update copyright headers in sql/, storage/
The methodology used to generate this CL is documented in
https://crbug.com/1098010#c95.

No-Try: true
Bug: 1098010
Change-Id: I68bb81a4dcae37f944f4d8cd39d82ed540364615
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3899461
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Mark Mentovai <mark@chromium.org>
Auto-Submit: Avi Drissman <avi@chromium.org>
Owners-Override: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1047607}
2022-09-15 19:11:14 +00:00

27 lines
612 B
C++

// Copyright 2011 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SQL_INIT_STATUS_H_
#define SQL_INIT_STATUS_H_
namespace sql {
// Used as the return value for some databases' init functions.
enum InitStatus {
INIT_OK,
// Some error, usually I/O related opening the file.
INIT_FAILURE,
// The database is from a future version of the app and cannot be read.
INIT_TOO_NEW,
// The database was deleted and re-opened successfully.
INIT_OK_WITH_DATA_LOSS,
};
} // namespace sql
#endif // SQL_INIT_STATUS_H_