SealiteError

Why Sealite refused a database: SealiteException.error, or Sealite.errorOf on any exception (Room may wrap it).

New values may be added in minor releases: keep an else branch when matching.

Entries

Link copied to clipboard

The key (or the SealiteConfig) does not open the file. An encrypted database is indistinguishable from random bytes, so a damaged file also reports this: never treat it as corruption to recover from by deleting the database.

Link copied to clipboard

The file is a plain, unencrypted SQLite database; see Sealite.encryptPlaintext.

Link copied to clipboard

SQLCipher reports the connection as not keyed (PRAGMA cipher_status is not 1).

Link copied to clipboard

The linked SQLite has no encryption: a build or packaging error, never a user error.

Link copied to clipboard

Sealite.rekey failed before the new key was committed: the file still opens with the old key (SQLite's journal rolls the partial write back).

Link copied to clipboard

Sealite.rekey committed the new key but could not finish or verify it (checkpoint, reopen or quick_check failed). The file most likely opens with the new key: keep both keys and find out with Sealite.check.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.