You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
474 B
C

/*
* Copyright 2022, The Cozo Project Authors. Licensed under MIT/Apache-2.0/BSD-3-Clause.
*/
#ifndef COZOROCKS_OPTS_H
#define COZOROCKS_OPTS_H
#include "common.h"
inline void set_w_opts_sync(WriteOptions& opts, bool val) {
opts.sync = val;
}
inline void set_w_opts_disable_wal(WriteOptions& opts, bool val) {
opts.disableWAL = val;
}
inline void set_w_opts_no_slowdown(WriteOptions& opts, bool val) {
opts.no_slowdown = val;
}
#endif //COZOROCKS_OPTS_H