Skip to content

Commit

Permalink
Use the unified DBOptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yata committed May 30, 2014
1 parent 89c50b9 commit 1f8e0fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions new-interface/db.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class DB {
// - 作業領域が確保できない.
// - ディスクの空き容量が足りない.
virtual bool save(const char *path,
const DBSaveOptions &options,
const DBOptions &options,
Error *error) const = 0;
};

Expand All @@ -137,7 +137,7 @@ class DB {
// - 指定された名前のファイルがデータベースのファイルではない.
// - データベースを構成するファイルが存在しない.
std::unique_ptr<DB> open_db(const char *path,
const OpenDBOptions &options,
const DBOptions &options,
Error *error);

// データベースを削除する.
Expand All @@ -152,7 +152,7 @@ std::unique_ptr<DB> open_db(const char *path,
// - 一部のファイルが欠けていても強制的に残りを削除するオプションは欲しい.
// - データベースを開かずにパスのみから推論して削除したいケースもありうる.
// - ファイルの削除に失敗する.
bool drop_db(const char *path, const DropDBOptions &options, Error *error);
bool drop_db(const char *path, const DBOptions &options, Error *error);

} // namespace grnxx

Expand Down

0 comments on commit 1f8e0fa

Please sign in to comment.