nim-ladybug/tests/database/t_can_create_with_custom_config.nim

18 lines
334 B
Nim
Raw Permalink Normal View History

# vim: set et sta sw=4 ts=4 :
import
2025-07-13 13:10:33 -07:00
std/files,
std/paths
import lbug
const DATABASE_PATH = Path( "tmp/testdb" )
2025-07-13 13:10:33 -07:00
DATABASE_PATH.removeFile()
var db = newLbugDatabase( $DATABASE_PATH, lbugConfig( auto_checkpoint=false ) )
assert db.path == "tmp/testdb"
assert db.config.auto_checkpoint == false
2025-07-13 13:10:33 -07:00
DATABASE_PATH.removeFile()