isDatabase

open override fun isDatabase(path: Path): Boolean

Checks if a file is a valid DuckDb database Strategy:

  • path must reference a regular file

  • if file exists

  • then check if a database operation works

Return

true if the path points to a valid DuckDb database file

Parameters

path

the path to the database file, must not be null