isDatabase

abstract fun isDatabase(path: Path): Boolean

Checks if a file is an embedded database

Return

true if the path points to a valid SQLite database file

Parameters

path

the path to the database file, must not be null


open fun isDatabase(file: File): Boolean

A convenience method for those that use File instead of Path. Calls isEmbeddedDerbyDatabase(file.toPath())

Return

true if it could be an embedded derby database

Parameters

file

the file to check, must not be null