isDatabase

open override fun isDatabase(path: Path): Boolean

Checks if a file is a valid SQLite database Strategy:

  • path must reference a regular file

  • if file exists, check if it is larger than 100 bytes (SQLite header size)

  • then check if a database operation works

Return

true if the path points to a valid SQLite database file

Parameters

path

the path to the database file, must not be null