FileName

interface FileName(source)

Exposes the filename APIs.

Properties

Link copied to clipboard
abstract val content: String

Filename content.

Link copied to clipboard
abstract val databaseFileName: String?

Name of the database file.

Link copied to clipboard
abstract val journalFileName: String?

Name of the rollback journal file.

Link copied to clipboard
abstract val walFileName: String?

Name of the WAL file.

Functions

Link copied to clipboard
abstract fun getKey(index: Int): String?

Returns the name (not the value) of the index-th query parameter for this filename or null if index is less than zero or greater than the number of query parameters minus 1. The index value is zero-based so index should be 0 to obtain the name of the first query parameter, 1 for the second parameter, and so forth.

Link copied to clipboard
abstract fun geValue(parameter: String): String?

Returns the value of the query parameter if it exists or null if P does not appear as a query parameter of this filename. If parameter exists and has no explicit value, then an empty string is returned.

abstract fun geValue(parameter: String, default: Boolean): Boolean

Returns true if the value of query parameter is one of "yes", "true", or "on" in any case or if the value begins with a non-zero number.

abstract fun geValue(parameter: String, default: Long): Long

Converts the value of parameter into a 64-bit signed integer and returns that integer, or default if parameter does not exist. If the value of parameter is something other than an integer, then zero is returned.

Link copied to clipboard

Lists all the keys of this FileName.