NitroSQLiteExceptionType
TypeScriptSource files: TypeScript
const NitroSQLiteExceptionType: object
Native error categories exposed by NitroSQLiteError.type.
Compare against these constants when handling a specific failure. The values
are categories, not SQLite's numeric result codes. Import them from
react-native-nitro-sqlite/errors to avoid initializing the native module.
Type Declaration
CouldNotLoadFile
readonly CouldNotLoadFile: "CouldNotLoadFile" = 'CouldNotLoadFile'
A SQL file could not be read or executed.
DatabaseCannotBeDecrypted
readonly DatabaseCannotBeDecrypted: "DatabaseCannotBeDecrypted" = 'DatabaseCannotBeDecrypted'
Invalid encryption key, unreadable encrypted database, or existing plaintext file.
DatabaseCannotBeOpened
readonly DatabaseCannotBeOpened: "DatabaseCannotBeOpened" = 'DatabaseCannotBeOpened'
Open failure, including invalid paths and an already-open default connection.
DatabaseNotOpen
readonly DatabaseNotOpen: "DatabaseNotOpen" = 'DatabaseNotOpen'
Category for a database connection that is not open.
EncryptionNotEnabled
readonly EncryptionNotEnabled: "EncryptionNotEnabled" = 'EncryptionNotEnabled'
An encryption key was supplied to a build without SQLite SEE.
NoBatchCommandsProvided
readonly NoBatchCommandsProvided: "NoBatchCommandsProvided" = 'NoBatchCommandsProvided'
An empty batch was submitted.
SqlExecutionError
readonly SqlExecutionError: "SqlExecutionError" = 'SqlExecutionError'
SQL execution or parameter binding failure, including a missing database file.
UnableToAttachToDatabase
readonly UnableToAttachToDatabase: "UnableToAttachToDatabase" = 'UnableToAttachToDatabase'
Database attachment failure or an unopened native connection.
UnknownError
readonly UnknownError: "UnknownError" = 'UnknownError'
Native failure without a more specific category.