Module: SQLite3::Constants::ErrorCode
- 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 collapse
- OK =
Successful result
0
- ERROR =
SQL error or missing database
1
- INTERNAL =
An internal logic error in SQLite
2
- PERM =
Access permission denied
3
- ABORT =
Callback routine requested an abort
4
- BUSY =
The database file is locked
5
- LOCKED =
A table in the database is locked
6
- NOMEM =
A malloc() failed
7
- READONLY =
Attempt to write a readonly database
8
- INTERRUPT =
Operation terminated by sqlite_interrupt()
9
- IOERR =
Some kind of disk I/O error occurred
10
- CORRUPT =
The database disk image is malformed
11
- NOTFOUND =
(Internal Only) Table or record not found
12
- FULL =
Insertion failed because database is full
13
- CANTOPEN =
Unable to open the database file
14
- PROTOCOL =
Database lock protocol error
15
- EMPTY =
(Internal Only) Database table is empty
16
- SCHEMA =
The database schema changed
17
- TOOBIG =
Too much data for one row of a table
18
- CONSTRAINT =
Abort due to constraint violation
19
- MISMATCH =
Data type mismatch
20
- MISUSE =
Library used incorrectly
21
- NOLFS =
Uses OS features not supported on host
22
- AUTH =
Authorization denied
23
- FORMAT =
Not used
24
- RANGE =
2nd parameter to sqlite3_bind out of range
25
- NOTADB =
File opened that is not a database file
26
- NOTICE =
Notifications from sqlite3_log()
27
- WARNING =
Warnings from sqlite3_log()
28
- ROW =
sqlite_step() has another row ready
100
- DONE =
sqlite_step() has finished executing
101