2023-07-31 13:43:38 +00:00
|
|
|
# Nimbus
|
2024-02-23 09:17:24 +00:00
|
|
|
# Copyright (c) 2023-2024 Status Research & Development GmbH
|
2023-07-31 13:43:38 +00:00
|
|
|
# Licensed under either of
|
|
|
|
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0)
|
|
|
|
# * MIT license ([LICENSE-MIT](LICENSE-MIT) or
|
|
|
|
# http://opensource.org/licenses/MIT)
|
|
|
|
# at your option. This file may not be copied, modified, or distributed except
|
|
|
|
# according to those terms.
|
|
|
|
|
|
|
|
## Core database replacement wrapper object
|
|
|
|
## ========================================
|
|
|
|
##
|
2023-08-04 11:10:09 +00:00
|
|
|
## See `core_db/README.md` for implementation details
|
|
|
|
##
|
2024-05-30 09:03:54 +00:00
|
|
|
## This module provides a memory database only. For providing a persistent
|
2023-08-07 17:45:23 +00:00
|
|
|
## constructor, import `db/code_db/persistent` though avoiding to
|
2023-08-04 11:10:09 +00:00
|
|
|
## unnecessarily link to the persistent backend library (e.g. `rocksdb`)
|
|
|
|
## when a memory only database is used.
|
2023-07-31 13:43:38 +00:00
|
|
|
##
|
|
|
|
{.push raises: [].}
|
|
|
|
|
|
|
|
import
|
2023-08-04 11:10:09 +00:00
|
|
|
./core_db/memory_only
|
2023-07-31 13:43:38 +00:00
|
|
|
export
|
2023-08-04 11:10:09 +00:00
|
|
|
memory_only
|
2023-07-31 13:43:38 +00:00
|
|
|
|
2024-05-30 09:03:54 +00:00
|
|
|
# Default database backend selection.
|
2024-05-20 10:17:51 +00:00
|
|
|
const DefaultDbMemory* = AristoDbMemory
|
|
|
|
const DefaultDbPersistent* = AristoDbRocks
|
2024-02-23 09:17:24 +00:00
|
|
|
|
2023-07-31 13:43:38 +00:00
|
|
|
# End
|