nim-ladybug/tests/database/t_creates_with_default_config.nim

20 lines
327 B
Nim
Raw 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 kuzu
const DATABASE_PATH = Path( "tmp/testdb" )
2025-07-13 13:10:33 -07:00
DATABASE_PATH.removeFile()
var db = newKuzuDatabase( $DATABASE_PATH )
assert db.path == $DATABASE_PATH
assert db.config == kuzuConfig()
assert db.config.read_only == false
2025-07-13 13:10:33 -07:00
DATABASE_PATH.removeFile()