importFromLoadableCSV

fun importFromLoadableCSV(exportedDbDir: Path, dbName: String, dbDirectory: Path = KSL.dbDir, deleteIfExists: Boolean = true): DuckDb

Facilitates the creation of a database backed by DuckDb. The database will be loaded based on the load scripts found in the exported database directory

Return

a DuckDb configured database

Parameters

exportedDbDir

the directory holding the import data and scripts

dbName

the name of the database

dbDirectory

the directory containing the database. By default, KSL.dbDir.

deleteIfExists

If true, an existing database in the supplied directory with the same name will be deleted and an empty database will be constructed.