Companion
Functions
Link copied to clipboard
Link copied to clipboard
If the database already exists it is deleted
Link copied to clipboard
Link copied to clipboard
Deletes a DuckDb database Strategy:
Link copied to clipboard
Link copied to clipboard
fun importFromLoadableParquetFiles(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 containing the parquet files.
Link copied to clipboard
Checks if a file is a valid DuckDb database Strategy:
A convenience method for those that use File instead of Path. Calls isEmbeddedDerbyDatabase(file.toPath())
Link copied to clipboard
The database file must already exist at the path
The database file must already exist within the KSLDatabase.dbDir directory It is opened for reading and writing.