Module: SQLite3::Constants::ErrorCode
Relationships & Source Files | |
Defined in: | lib/sqlite3/constants.rb |
Overview
CAPI3REF: Result Codes
Many SQLite functions return an integer result code from the set shown here in order to indicate success or failure.
New error codes may be added in future versions of SQLite.
Constant Summary
-
ABORT =
Callback routine requested an abort
4
-
AUTH =
Authorization denied
23
-
BUSY =
The database file is locked
5
-
CANTOPEN =
Unable to open the database file
14
-
CONSTRAINT =
Abort due to constraint violation
19
-
CORRUPT =
The database disk image is malformed
11
-
DONE =
sqlite_step() has finished executing
101
-
EMPTY =
(Internal Only)
::SQLite3::Database
table is empty16
-
ERROR =
SQL error or missing database
1
-
FORMAT =
Not used
24
-
FULL =
Insertion failed because database is full
13
-
INTERNAL =
An internal logic error in SQLite
2
-
INTERRUPT =
Operation terminated by sqlite_interrupt()
9
-
IOERR =
Some kind of disk I/O error occurred
10
-
LOCKED =
A table in the database is locked
6
-
MISMATCH =
Data type mismatch
20
-
MISUSE =
Library used incorrectly
21
-
NOLFS =
Uses OS features not supported on host
22
-
NOMEM =
A malloc() failed
7
-
NOTADB =
File opened that is not a database file
26
-
NOTFOUND =
(Internal Only) Table or record not found
12
-
NOTICE =
Notifications from sqlite3_log()
27
-
OK =
Successful result
0
-
PERM =
Access permission denied
3
-
PROTOCOL =
::SQLite3::Database
lock protocol error15
-
RANGE =
2nd parameter to sqlite3_bind out of range
25
-
READONLY =
Attempt to write a readonly database
8
-
ROW =
sqlite_step() has another row ready
100
-
SCHEMA =
The database schema changed
17
-
TOOBIG =
Too much data for one row of a table
18
-
WARNING =
Warnings from sqlite3_log()
28