39 unsigned int flags = MDB_CREATE;
40 if constexpr (std::is_integral<K>::value)
41 flags |= MDB_INTEGERKEY;
46 if constexpr (std::is_scalar<V>::value)
47 flags |= MDB_DUPFIXED;
50 std::is_same<V, uint32_t>::value ||
51 std::is_same<V, int32_t>::value ||
52 std::is_same<V, uint64_t>::value ||
53 std::is_same<V, int64_t>::value
55 flags |= MDB_INTEGERDUP;
58 return _mdbOpen(transaction, flags);
int makeStorage(MDB_txn *transaction, bool duplicates=false)
A functiion to actually open MDB_dbi storage.
Definition storagecommon.hpp:38
static std::string toString(const T &value)
A method to cast a value (which can be a value or a key) to string.
Definition storagecommon.hpp:71