Move comments above constants

This commit is contained in:
Tom Richards 2018-10-05 10:25:58 -04:00
parent b834c6ebe8
commit c99cd7836d

View file

@ -7,37 +7,68 @@ lib LibSQLite3
type SQLite3Backup = Void* type SQLite3Backup = Void*
enum Code enum Code
OKAY = 0 # Successful result # Successful result
ERROR = 1 # Generic error OKAY = 0
INTERNAL = 2 # Internal logic error in SQLite # Generic error
PERM = 3 # Access permission denied ERROR = 1
ABORT = 4 # Callback routine requested an abort # Internal logic error in SQLite
BUSY = 5 # The database file is locked INTERNAL = 2
LOCKED = 6 # A table in the database is locked # Access permission denied
NOMEM = 7 # A malloc() failed PERM = 3
READONLY = 8 # Attempt to write a readonly database # Callback routine requested an abort
INTERRUPT = 9 # Operation terminated by sqlite3_interrupt() ABORT = 4
IOERR = 10 # Some kind of disk I/O error occurred # The database file is locked
CORRUPT = 11 # The database disk image is malformed BUSY = 5
NOTFOUND = 12 # Unknown opcode in sqlite3_file_control() # A table in the database is locked
FULL = 13 # Insertion failed because database is full LOCKED = 6
CANTOPEN = 14 # Unable to open the database file # A malloc() failed
PROTOCOL = 15 # Database lock protocol error NOMEM = 7
EMPTY = 16 # Internal use only # Attempt to write a readonly database
SCHEMA = 17 # The database schema changed READONLY = 8
TOOBIG = 18 # String or BLOB exceeds size limit # Operation terminated by sqlite3_interrupt()
CONSTRAINT = 19 # Abort due to constraint violation INTERRUPT = 9
MISMATCH = 20 # Data type mismatch # Some kind of disk I/O error occurred
MISUSE = 21 # Library used incorrectly IOERR = 10
NOLFS = 22 # Uses OS features not supported on host # The database disk image is malformed
AUTH = 23 # Authorization denied CORRUPT = 11
FORMAT = 24 # Not used # Unknown opcode in sqlite3_file_control()
RANGE = 25 # 2nd parameter to sqlite3_bind out of range NOTFOUND = 12
NOTADB = 26 # File opened that is not a database file # Insertion failed because database is full
NOTICE = 27 # Notifications from sqlite3_log() FULL = 13
WARNING = 28 # Warnings from sqlite3_log() # Unable to open the database file
ROW = 100 # sqlite3_step() has another row ready CANTOPEN = 14
DONE = 101 # sqlite3_step() has finished executing # Database lock protocol error
PROTOCOL = 15
# Internal use only
EMPTY = 16
# The database schema changed
SCHEMA = 17
# String or BLOB exceeds size limit
TOOBIG = 18
# Abort due to constraint violation
CONSTRAINT = 19
# Data type mismatch
MISMATCH = 20
# Library used incorrectly
MISUSE = 21
# Uses OS features not supported on host
NOLFS = 22
# Authorization denied
AUTH = 23
# Not used
FORMAT = 24
# 2nd parameter to sqlite3_bind out of range
RANGE = 25
# File opened that is not a database file
NOTADB = 26
# Notifications from sqlite3_log()
NOTICE = 27
# Warnings from sqlite3_log()
WARNING = 28
# sqlite3_step() has another row ready
ROW = 100
# sqlite3_step() has finished executing
DONE = 101
end end
alias Callback = (Void*, Int32, UInt8**, UInt8**) -> Int32 alias Callback = (Void*, Int32, UInt8**, UInt8**) -> Int32