;;;
;;;Part of: Vicare/SQLite
;;;Contents: SQLite constants
;;;Date: Thu Feb  2, 2012
;;;
;;;Abstract
;;;
;;;	Export an identifier syntax for each SQLite constant.
;;;
;;;Copyright (C) 2012, 2013, 2016 Marco Maggi <marco.maggi-ipsu@poste.it>
;;;
;;;This program is free software:  you can redistribute it and/or modify
;;;it under the terms of the  GNU General Public License as published by
;;;the Free Software Foundation, either version 3 of the License, or (at
;;;your option) any later version.
;;;
;;;This program is  distributed in the hope that it  will be useful, but
;;;WITHOUT  ANY   WARRANTY;  without   even  the  implied   warranty  of
;;;MERCHANTABILITY  or FITNESS FOR  A PARTICULAR  PURPOSE.  See  the GNU
;;;General Public License for more details.
;;;
;;;You should  have received  a copy of  the GNU General  Public License
;;;along with this program.  If not, see <http://www.gnu.org/licenses/>.
;;;


(library (vicare databases sqlite3 constants)
  (export

    ;; version constants
    SQLITE_VERSION			SQLITE_SOURCE_ID
    SQLITE_VERSION_NUMBER

    ;; Result Codes
    SQLITE_OK				SQLITE_ERROR
    SQLITE_INTERNAL			SQLITE_PERM
    SQLITE_ABORT			SQLITE_BUSY
    SQLITE_LOCKED			SQLITE_NOMEM
    SQLITE_READONLY			SQLITE_INTERRUPT
    SQLITE_IOERR			SQLITE_CORRUPT
    SQLITE_NOTFOUND			SQLITE_FULL
    SQLITE_CANTOPEN			SQLITE_PROTOCOL
    SQLITE_EMPTY			SQLITE_SCHEMA
    SQLITE_TOOBIG			SQLITE_CONSTRAINT
    SQLITE_MISMATCH			SQLITE_MISUSE
    SQLITE_NOLFS			SQLITE_AUTH
    SQLITE_FORMAT			SQLITE_RANGE
    SQLITE_NOTADB			SQLITE_ROW
    SQLITE_DONE

    ;; Extended Result Codes
    SQLITE_IOERR_READ			SQLITE_IOERR_SHORT_READ
    SQLITE_IOERR_WRITE			SQLITE_IOERR_FSYNC
    SQLITE_IOERR_DIR_FSYNC		SQLITE_IOERR_TRUNCATE
    SQLITE_IOERR_FSTAT			SQLITE_IOERR_UNLOCK
    SQLITE_IOERR_RDLOCK			SQLITE_IOERR_DELETE
    SQLITE_IOERR_BLOCKED		SQLITE_IOERR_NOMEM
    SQLITE_IOERR_ACCESS			SQLITE_IOERR_CHECKRESERVEDLOCK
    SQLITE_IOERR_LOCK			SQLITE_IOERR_CLOSE
    SQLITE_IOERR_DIR_CLOSE		SQLITE_IOERR_SHMOPEN
    SQLITE_IOERR_SHMSIZE		SQLITE_IOERR_SHMLOCK
    SQLITE_IOERR_SHMMAP			SQLITE_IOERR_SEEK
    SQLITE_LOCKED_SHAREDCACHE		SQLITE_BUSY_RECOVERY
    SQLITE_CANTOPEN_NOTEMPDIR		SQLITE_CANTOPEN_ISDIR
    SQLITE_CORRUPT_VTAB			SQLITE_READONLY_RECOVERY
    SQLITE_READONLY_CANTLOCK		SQLITE_ABORT_ROLLBACK

    ;; Flags For File Open Operations
    SQLITE_OPEN_READONLY		SQLITE_OPEN_READWRITE
    SQLITE_OPEN_CREATE			SQLITE_OPEN_DELETEONCLOSE
    SQLITE_OPEN_EXCLUSIVE		SQLITE_OPEN_AUTOPROXY
    SQLITE_OPEN_URI			SQLITE_OPEN_MEMORY
    SQLITE_OPEN_MAIN_DB			SQLITE_OPEN_TEMP_DB
    SQLITE_OPEN_TRANSIENT_DB		SQLITE_OPEN_MAIN_JOURNAL
    SQLITE_OPEN_TEMP_JOURNAL		SQLITE_OPEN_SUBJOURNAL
    SQLITE_OPEN_MASTER_JOURNAL		SQLITE_OPEN_NOMUTEX
    SQLITE_OPEN_FULLMUTEX		SQLITE_OPEN_SHAREDCACHE
    SQLITE_OPEN_PRIVATECACHE		SQLITE_OPEN_WAL

    ;; Device Characteristics
    SQLITE_IOCAP_ATOMIC			SQLITE_IOCAP_ATOMIC512
    SQLITE_IOCAP_ATOMIC1K		SQLITE_IOCAP_ATOMIC2K
    SQLITE_IOCAP_ATOMIC4K		SQLITE_IOCAP_ATOMIC8K
    SQLITE_IOCAP_ATOMIC16K		SQLITE_IOCAP_ATOMIC32K
    SQLITE_IOCAP_ATOMIC64K		SQLITE_IOCAP_SAFE_APPEND
    SQLITE_IOCAP_SEQUENTIAL		SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN
    SQLITE_IOCAP_POWERSAFE_OVERWRITE

    ;; File Locking Levels
    SQLITE_LOCK_NONE			SQLITE_LOCK_SHARED
    SQLITE_LOCK_RESERVED		SQLITE_LOCK_PENDING
    SQLITE_LOCK_EXCLUSIVE

    ;; Synchronization Type Flags
    SQLITE_SYNC_NORMAL			SQLITE_SYNC_FULL
    SQLITE_SYNC_DATAONLY

    ;; Standard File Control Opcodes
    SQLITE_FCNTL_LOCKSTATE		SQLITE_GET_LOCKPROXYFILE
    SQLITE_SET_LOCKPROXYFILE		SQLITE_LAST_ERRNO
    SQLITE_FCNTL_SIZE_HINT		SQLITE_FCNTL_CHUNK_SIZE
    SQLITE_FCNTL_FILE_POINTER		SQLITE_FCNTL_SYNC_OMITTED
    SQLITE_FCNTL_WIN32_AV_RETRY		SQLITE_FCNTL_PERSIST_WAL
    SQLITE_FCNTL_OVERWRITE		SQLITE_FCNTL_VFSNAME
    SQLITE_FCNTL_POWERSAFE_OVERWRITE	SQLITE_FCNTL_PRAGMA
    SQLITE_FCNTL_JOURNAL_POINTER

    ;; Flags for the xAccess VFS method
    SQLITE_ACCESS_EXISTS		SQLITE_ACCESS_READWRITE
    SQLITE_ACCESS_READ

    ;; Flags for the xShmLock VFS method
    SQLITE_SHM_UNLOCK			SQLITE_SHM_LOCK
    SQLITE_SHM_SHARED			SQLITE_SHM_EXCLUSIVE
    SQLITE_SHM_NLOCK

    ;; Configuration Options
    SQLITE_CONFIG_SINGLETHREAD		SQLITE_CONFIG_MULTITHREAD
    SQLITE_CONFIG_SERIALIZED		SQLITE_CONFIG_MALLOC
    SQLITE_CONFIG_GETMALLOC		SQLITE_CONFIG_SCRATCH
    SQLITE_CONFIG_PAGECACHE		SQLITE_CONFIG_HEAP
    SQLITE_CONFIG_MEMSTATUS		SQLITE_CONFIG_MUTEX
    SQLITE_CONFIG_GETMUTEX		SQLITE_CONFIG_LOOKASIDE
    SQLITE_CONFIG_PCACHE		SQLITE_CONFIG_GETPCACHE
    SQLITE_CONFIG_LOG			SQLITE_CONFIG_URI
    SQLITE_CONFIG_PCACHE2		SQLITE_CONFIG_GETPCACHE2
    SQLITE_CONFIG_PCACHE_HDRSZ

    ;; Database Connection Configuration Options
    SQLITE_DBCONFIG_LOOKASIDE		SQLITE_DBCONFIG_ENABLE_FKEY
    SQLITE_DBCONFIG_ENABLE_TRIGGER

    ;; Authorizer Return Codes
    SQLITE_DENY				SQLITE_IGNORE

    ;; Authorizer Action Codes
    SQLITE_CREATE_INDEX			SQLITE_CREATE_TABLE
    SQLITE_CREATE_TEMP_INDEX		SQLITE_CREATE_TEMP_TABLE
    SQLITE_CREATE_TEMP_TRIGGER		SQLITE_CREATE_TEMP_VIEW
    SQLITE_CREATE_TRIGGER		SQLITE_CREATE_VIEW
    SQLITE_DELETE			SQLITE_DROP_INDEX
    SQLITE_DROP_TABLE			SQLITE_DROP_TEMP_INDEX
    SQLITE_DROP_TEMP_TABLE		SQLITE_DROP_TEMP_TRIGGER
    SQLITE_DROP_TEMP_VIEW		SQLITE_DROP_TRIGGER
    SQLITE_DROP_VIEW			SQLITE_INSERT
    SQLITE_PRAGMA			SQLITE_READ
    SQLITE_SELECT			SQLITE_TRANSACTION
    SQLITE_UPDATE			SQLITE_ATTACH
    SQLITE_DETACH			SQLITE_ALTER_TABLE
    SQLITE_REINDEX			SQLITE_ANALYZE
    SQLITE_CREATE_VTABLE		SQLITE_DROP_VTABLE
    SQLITE_FUNCTION			SQLITE_SAVEPOINT
    SQLITE_COPY

    ;; Run-Time Limit Categories
    SQLITE_LIMIT_LENGTH			SQLITE_LIMIT_SQL_LENGTH
    SQLITE_LIMIT_COLUMN			SQLITE_LIMIT_EXPR_DEPTH
    SQLITE_LIMIT_COMPOUND_SELECT	SQLITE_LIMIT_VDBE_OP
    SQLITE_LIMIT_FUNCTION_ARG		SQLITE_LIMIT_ATTACHED
    SQLITE_LIMIT_LIKE_PATTERN_LENGTH	SQLITE_LIMIT_VARIABLE_NUMBER
    SQLITE_LIMIT_TRIGGER_DEPTH

    ;; Fundamental Datatypes
    SQLITE_INTEGER			SQLITE_FLOAT
    SQLITE_BLOB				SQLITE_NULL
    SQLITE_TEXT				SQLITE3_TEXT

    ;; Text Encodings
    SQLITE_UTF8				SQLITE_UTF16LE
    SQLITE_UTF16BE			SQLITE_UTF16
    SQLITE_ANY				SQLITE_UTF16_ALIGNED

    ;; Constants Defining Special Destructor Behavior
    SQLITE_STATIC			SQLITE_TRANSIENT

    ;; Virtual Table Constraint Operator Codes
    SQLITE_INDEX_CONSTRAINT_EQ		SQLITE_INDEX_CONSTRAINT_GT
    SQLITE_INDEX_CONSTRAINT_LE		SQLITE_INDEX_CONSTRAINT_LT
    SQLITE_INDEX_CONSTRAINT_GE		SQLITE_INDEX_CONSTRAINT_MATCH

    ;; Mutex Types
    SQLITE_MUTEX_FAST			SQLITE_MUTEX_RECURSIVE
    SQLITE_MUTEX_STATIC_MASTER		SQLITE_MUTEX_STATIC_MEM
    SQLITE_MUTEX_STATIC_MEM2		SQLITE_MUTEX_STATIC_OPEN
    SQLITE_MUTEX_STATIC_PRNG		SQLITE_MUTEX_STATIC_LRU
    SQLITE_MUTEX_STATIC_LRU2		SQLITE_MUTEX_STATIC_PMEM

    ;; Testing Interface Operation Codes
    SQLITE_TESTCTRL_FIRST		SQLITE_TESTCTRL_PRNG_SAVE
    SQLITE_TESTCTRL_PRNG_RESTORE	SQLITE_TESTCTRL_PRNG_RESET
    SQLITE_TESTCTRL_BITVEC_TEST		SQLITE_TESTCTRL_FAULT_INSTALL
    SQLITE_TESTCTRL_BENIGN_MALLOC_HOOKS SQLITE_TESTCTRL_PENDING_BYTE
    SQLITE_TESTCTRL_ASSERT		SQLITE_TESTCTRL_ALWAYS
    SQLITE_TESTCTRL_RESERVE		SQLITE_TESTCTRL_OPTIMIZATIONS
    SQLITE_TESTCTRL_ISKEYWORD		SQLITE_TESTCTRL_SCRATCHMALLOC
    SQLITE_TESTCTRL_LOCALTIME_FAULT	SQLITE_TESTCTRL_EXPLAIN_STMT
    SQLITE_TESTCTRL_LAST

    ;; Status Parameters
    SQLITE_STATUS_MEMORY_USED		SQLITE_STATUS_PAGECACHE_USED
    SQLITE_STATUS_PAGECACHE_OVERFLOW	SQLITE_STATUS_SCRATCH_USED
    SQLITE_STATUS_SCRATCH_OVERFLOW	SQLITE_STATUS_MALLOC_SIZE
    SQLITE_STATUS_PARSER_STACK		SQLITE_STATUS_PAGECACHE_SIZE
    SQLITE_STATUS_SCRATCH_SIZE		SQLITE_STATUS_MALLOC_COUNT

    ;; Status Parameters for database connections
    SQLITE_DBSTATUS_LOOKASIDE_USED	SQLITE_DBSTATUS_CACHE_USED
    SQLITE_DBSTATUS_SCHEMA_USED		SQLITE_DBSTATUS_STMT_USED
    SQLITE_DBSTATUS_LOOKASIDE_HIT	SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE
    SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL	SQLITE_DBSTATUS_CACHE_HIT
    SQLITE_DBSTATUS_CACHE_MISS		SQLITE_DBSTATUS_CACHE_WRITE
    SQLITE_DBSTATUS_MAX

    ;; Status Parameters for prepared statements
    SQLITE_STMTSTATUS_FULLSCAN_STEP	SQLITE_STMTSTATUS_SORT
    SQLITE_STMTSTATUS_AUTOINDEX

    ;; Checkpoint operation parameters
    SQLITE_CHECKPOINT_PASSIVE		SQLITE_CHECKPOINT_FULL
    SQLITE_CHECKPOINT_RESTART		SQLITE_CHECKPOINT_TRUNCATE

    ;; Virtual Table Configuration Options
    SQLITE_VTAB_CONSTRAINT_SUPPORT

    ;; Conflict resolution modes
    SQLITE_ROLLBACK			#;SQLITE_IGNORE
    SQLITE_FAIL				#;SQLITE_ABORT
    SQLITE_REPLACE

    )
  (import (only (vicare)
		define let and integer->pointer define-inline-constant))


;;;; constants

;;; version constants
(define SQLITE_VERSION			"@VALUEOF_SQLITE_VERSION@")
(define SQLITE_SOURCE_ID		"@VALUEOF_SQLITE_SOURCE_ID@")
(define-inline-constant SQLITE_VERSION_NUMBER		@VALUEOF_SQLITE_VERSION_NUMBER@)

;;; Result Codes
(define-inline-constant SQLITE_OK		@VALUEOF_SQLITE_OK@)
(define-inline-constant SQLITE_ERROR		@VALUEOF_SQLITE_ERROR@)
(define-inline-constant SQLITE_INTERNAL		@VALUEOF_SQLITE_INTERNAL@)
(define-inline-constant SQLITE_PERM		@VALUEOF_SQLITE_PERM@)
(define-inline-constant SQLITE_ABORT		@VALUEOF_SQLITE_ABORT@)
(define-inline-constant SQLITE_BUSY		@VALUEOF_SQLITE_BUSY@)
(define-inline-constant SQLITE_LOCKED		@VALUEOF_SQLITE_LOCKED@)
(define-inline-constant SQLITE_NOMEM		@VALUEOF_SQLITE_NOMEM@)
(define-inline-constant SQLITE_READONLY		@VALUEOF_SQLITE_READONLY@)
(define-inline-constant SQLITE_INTERRUPT	@VALUEOF_SQLITE_INTERRUPT@)
(define-inline-constant SQLITE_IOERR		@VALUEOF_SQLITE_IOERR@)
(define-inline-constant SQLITE_CORRUPT		@VALUEOF_SQLITE_CORRUPT@)
(define-inline-constant SQLITE_NOTFOUND		@VALUEOF_SQLITE_NOTFOUND@)
(define-inline-constant SQLITE_FULL		@VALUEOF_SQLITE_FULL@)
(define-inline-constant SQLITE_CANTOPEN		@VALUEOF_SQLITE_CANTOPEN@)
(define-inline-constant SQLITE_PROTOCOL		@VALUEOF_SQLITE_PROTOCOL@)
(define-inline-constant SQLITE_EMPTY		@VALUEOF_SQLITE_EMPTY@)
(define-inline-constant SQLITE_SCHEMA		@VALUEOF_SQLITE_SCHEMA@)
(define-inline-constant SQLITE_TOOBIG		@VALUEOF_SQLITE_TOOBIG@)
(define-inline-constant SQLITE_CONSTRAINT	@VALUEOF_SQLITE_CONSTRAINT@)
(define-inline-constant SQLITE_MISMATCH		@VALUEOF_SQLITE_MISMATCH@)
(define-inline-constant SQLITE_MISUSE		@VALUEOF_SQLITE_MISUSE@)
(define-inline-constant SQLITE_NOLFS		@VALUEOF_SQLITE_NOLFS@)
(define-inline-constant SQLITE_AUTH		@VALUEOF_SQLITE_AUTH@)
(define-inline-constant SQLITE_FORMAT		@VALUEOF_SQLITE_FORMAT@)
(define-inline-constant SQLITE_RANGE		@VALUEOF_SQLITE_RANGE@)
(define-inline-constant SQLITE_NOTADB		@VALUEOF_SQLITE_NOTADB@)
(define-inline-constant SQLITE_ROW		@VALUEOF_SQLITE_ROW@)
(define-inline-constant SQLITE_DONE		@VALUEOF_SQLITE_DONE@)

;;; Extended Result Codes
(define-inline-constant SQLITE_IOERR_READ		@VALUEOF_SQLITE_IOERR_READ@)
(define-inline-constant SQLITE_IOERR_SHORT_READ		@VALUEOF_SQLITE_IOERR_SHORT_READ@)
(define-inline-constant SQLITE_IOERR_WRITE		@VALUEOF_SQLITE_IOERR_WRITE@)
(define-inline-constant SQLITE_IOERR_FSYNC		@VALUEOF_SQLITE_IOERR_FSYNC@)
(define-inline-constant SQLITE_IOERR_DIR_FSYNC		@VALUEOF_SQLITE_IOERR_DIR_FSYNC@)
(define-inline-constant SQLITE_IOERR_TRUNCATE		@VALUEOF_SQLITE_IOERR_TRUNCATE@)
(define-inline-constant SQLITE_IOERR_FSTAT		@VALUEOF_SQLITE_IOERR_FSTAT@)
(define-inline-constant SQLITE_IOERR_UNLOCK		@VALUEOF_SQLITE_IOERR_UNLOCK@)
(define-inline-constant SQLITE_IOERR_RDLOCK		@VALUEOF_SQLITE_IOERR_RDLOCK@)
(define-inline-constant SQLITE_IOERR_DELETE		@VALUEOF_SQLITE_IOERR_DELETE@)
(define-inline-constant SQLITE_IOERR_BLOCKED		@VALUEOF_SQLITE_IOERR_BLOCKED@)
(define-inline-constant SQLITE_IOERR_NOMEM		@VALUEOF_SQLITE_IOERR_NOMEM@)
(define-inline-constant SQLITE_IOERR_ACCESS		@VALUEOF_SQLITE_IOERR_ACCESS@)
(define-inline-constant SQLITE_IOERR_CHECKRESERVEDLOCK	@VALUEOF_SQLITE_IOERR_CHECKRESERVEDLOCK@)
(define-inline-constant SQLITE_IOERR_LOCK		@VALUEOF_SQLITE_IOERR_LOCK@)
(define-inline-constant SQLITE_IOERR_CLOSE		@VALUEOF_SQLITE_IOERR_CLOSE@)
(define-inline-constant SQLITE_IOERR_DIR_CLOSE		@VALUEOF_SQLITE_IOERR_DIR_CLOSE@)
(define-inline-constant SQLITE_IOERR_SHMOPEN		@VALUEOF_SQLITE_IOERR_SHMOPEN@)
(define-inline-constant SQLITE_IOERR_SHMSIZE		@VALUEOF_SQLITE_IOERR_SHMSIZE@)
(define-inline-constant SQLITE_IOERR_SHMLOCK		@VALUEOF_SQLITE_IOERR_SHMLOCK@)
(define-inline-constant SQLITE_IOERR_SHMMAP		@VALUEOF_SQLITE_IOERR_SHMMAP@)
(define-inline-constant SQLITE_IOERR_SEEK		@VALUEOF_SQLITE_IOERR_SEEK@)
(define-inline-constant SQLITE_LOCKED_SHAREDCACHE	@VALUEOF_SQLITE_LOCKED_SHAREDCACHE@)
(define-inline-constant SQLITE_BUSY_RECOVERY		@VALUEOF_SQLITE_BUSY_RECOVERY@)
(define-inline-constant SQLITE_CANTOPEN_NOTEMPDIR	@VALUEOF_SQLITE_CANTOPEN_NOTEMPDIR@)
(define-inline-constant SQLITE_CANTOPEN_ISDIR		@VALUEOF_SQLITE_CANTOPEN_ISDIR@)
(define-inline-constant SQLITE_CORRUPT_VTAB		@VALUEOF_SQLITE_CORRUPT_VTAB@)
(define-inline-constant SQLITE_READONLY_RECOVERY	@VALUEOF_SQLITE_READONLY_RECOVERY@)
(define-inline-constant SQLITE_READONLY_CANTLOCK	@VALUEOF_SQLITE_READONLY_CANTLOCK@)
(define-inline-constant SQLITE_ABORT_ROLLBACK		@VALUEOF_SQLITE_ABORT_ROLLBACK@)

;;; Flags For File Open Operations
(define-inline-constant SQLITE_OPEN_READONLY		@VALUEOF_SQLITE_OPEN_READONLY@)
(define-inline-constant SQLITE_OPEN_READWRITE		@VALUEOF_SQLITE_OPEN_READWRITE@)
(define-inline-constant SQLITE_OPEN_CREATE		@VALUEOF_SQLITE_OPEN_CREATE@)
(define-inline-constant SQLITE_OPEN_DELETEONCLOSE	@VALUEOF_SQLITE_OPEN_DELETEONCLOSE@)
(define-inline-constant SQLITE_OPEN_EXCLUSIVE		@VALUEOF_SQLITE_OPEN_EXCLUSIVE@)
(define-inline-constant SQLITE_OPEN_AUTOPROXY		@VALUEOF_SQLITE_OPEN_AUTOPROXY@)
(define-inline-constant SQLITE_OPEN_URI			@VALUEOF_SQLITE_OPEN_URI@)
(define-inline-constant SQLITE_OPEN_MEMORY		@VALUEOF_SQLITE_OPEN_MEMORY@)
(define-inline-constant SQLITE_OPEN_MAIN_DB		@VALUEOF_SQLITE_OPEN_MAIN_DB@)
(define-inline-constant SQLITE_OPEN_TEMP_DB		@VALUEOF_SQLITE_OPEN_TEMP_DB@)
(define-inline-constant SQLITE_OPEN_TRANSIENT_DB	@VALUEOF_SQLITE_OPEN_TRANSIENT_DB@)
(define-inline-constant SQLITE_OPEN_MAIN_JOURNAL	@VALUEOF_SQLITE_OPEN_MAIN_JOURNAL@)
(define-inline-constant SQLITE_OPEN_TEMP_JOURNAL	@VALUEOF_SQLITE_OPEN_TEMP_JOURNAL@)
(define-inline-constant SQLITE_OPEN_SUBJOURNAL		@VALUEOF_SQLITE_OPEN_SUBJOURNAL@)
(define-inline-constant SQLITE_OPEN_MASTER_JOURNAL	@VALUEOF_SQLITE_OPEN_MASTER_JOURNAL@)
(define-inline-constant SQLITE_OPEN_NOMUTEX		@VALUEOF_SQLITE_OPEN_NOMUTEX@)
(define-inline-constant SQLITE_OPEN_FULLMUTEX		@VALUEOF_SQLITE_OPEN_FULLMUTEX@)
(define-inline-constant SQLITE_OPEN_SHAREDCACHE		@VALUEOF_SQLITE_OPEN_SHAREDCACHE@)
(define-inline-constant SQLITE_OPEN_PRIVATECACHE	@VALUEOF_SQLITE_OPEN_PRIVATECACHE@)
(define-inline-constant SQLITE_OPEN_WAL			@VALUEOF_SQLITE_OPEN_WAL@)

;; Device Characteristics
(define-inline-constant SQLITE_IOCAP_ATOMIC		@VALUEOF_SQLITE_IOCAP_ATOMIC@)
(define-inline-constant SQLITE_IOCAP_ATOMIC512		@VALUEOF_SQLITE_IOCAP_ATOMIC512@)
(define-inline-constant SQLITE_IOCAP_ATOMIC1K		@VALUEOF_SQLITE_IOCAP_ATOMIC1K@)
(define-inline-constant SQLITE_IOCAP_ATOMIC2K		@VALUEOF_SQLITE_IOCAP_ATOMIC2K@)
(define-inline-constant SQLITE_IOCAP_ATOMIC4K		@VALUEOF_SQLITE_IOCAP_ATOMIC4K@)
(define-inline-constant SQLITE_IOCAP_ATOMIC8K		@VALUEOF_SQLITE_IOCAP_ATOMIC8K@)
(define-inline-constant SQLITE_IOCAP_ATOMIC16K		@VALUEOF_SQLITE_IOCAP_ATOMIC16K@)
(define-inline-constant SQLITE_IOCAP_ATOMIC32K		@VALUEOF_SQLITE_IOCAP_ATOMIC32K@)
(define-inline-constant SQLITE_IOCAP_ATOMIC64K		@VALUEOF_SQLITE_IOCAP_ATOMIC64K@)
(define-inline-constant SQLITE_IOCAP_SAFE_APPEND	@VALUEOF_SQLITE_IOCAP_SAFE_APPEND@)
(define-inline-constant SQLITE_IOCAP_SEQUENTIAL		@VALUEOF_SQLITE_IOCAP_SEQUENTIAL@)
(define-inline-constant SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN
  @VALUEOF_SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN@)
(define-inline-constant SQLITE_IOCAP_POWERSAFE_OVERWRITE
  @VALUEOF_SQLITE_IOCAP_POWERSAFE_OVERWRITE@)

;; File Locking Levels
(define-inline-constant SQLITE_LOCK_NONE		@VALUEOF_SQLITE_LOCK_NONE@)
(define-inline-constant SQLITE_LOCK_SHARED		@VALUEOF_SQLITE_LOCK_SHARED@)
(define-inline-constant SQLITE_LOCK_RESERVED		@VALUEOF_SQLITE_LOCK_RESERVED@)
(define-inline-constant SQLITE_LOCK_PENDING		@VALUEOF_SQLITE_LOCK_PENDING@)
(define-inline-constant SQLITE_LOCK_EXCLUSIVE		@VALUEOF_SQLITE_LOCK_EXCLUSIVE@)

;; Synchronization Type Flags
(define-inline-constant SQLITE_SYNC_NORMAL		@VALUEOF_SQLITE_SYNC_NORMAL@)
(define-inline-constant SQLITE_SYNC_FULL		@VALUEOF_SQLITE_SYNC_FULL@)
(define-inline-constant SQLITE_SYNC_DATAONLY		@VALUEOF_SQLITE_SYNC_DATAONLY@)

;; Standard File Control Opcodes
(define-inline-constant SQLITE_FCNTL_LOCKSTATE		@VALUEOF_SQLITE_FCNTL_LOCKSTATE@)
(define-inline-constant SQLITE_GET_LOCKPROXYFILE	@VALUEOF_SQLITE_GET_LOCKPROXYFILE@)
(define-inline-constant SQLITE_SET_LOCKPROXYFILE	@VALUEOF_SQLITE_SET_LOCKPROXYFILE@)
(define-inline-constant SQLITE_LAST_ERRNO		@VALUEOF_SQLITE_LAST_ERRNO@)
(define-inline-constant SQLITE_FCNTL_SIZE_HINT		@VALUEOF_SQLITE_FCNTL_SIZE_HINT@)
(define-inline-constant SQLITE_FCNTL_CHUNK_SIZE		@VALUEOF_SQLITE_FCNTL_CHUNK_SIZE@)
(define-inline-constant SQLITE_FCNTL_FILE_POINTER	@VALUEOF_SQLITE_FCNTL_FILE_POINTER@)
(define-inline-constant SQLITE_FCNTL_SYNC_OMITTED	@VALUEOF_SQLITE_FCNTL_SYNC_OMITTED@)
(define-inline-constant SQLITE_FCNTL_WIN32_AV_RETRY	@VALUEOF_SQLITE_FCNTL_WIN32_AV_RETRY@)
(define-inline-constant SQLITE_FCNTL_PERSIST_WAL	@VALUEOF_SQLITE_FCNTL_PERSIST_WAL@)
(define-inline-constant SQLITE_FCNTL_OVERWRITE		@VALUEOF_SQLITE_FCNTL_OVERWRITE@)
(define-inline-constant SQLITE_FCNTL_VFSNAME		@VALUEOF_SQLITE_FCNTL_VFSNAME@)
(define-inline-constant SQLITE_FCNTL_POWERSAFE_OVERWRITE
  @VALUEOF_SQLITE_FCNTL_POWERSAFE_OVERWRITE@)
(define-inline-constant SQLITE_FCNTL_PRAGMA		@VALUEOF_SQLITE_FCNTL_PRAGMA@)
(define-inline-constant SQLITE_FCNTL_JOURNAL_POINTER	@VALUEOF_SQLITE_FCNTL_JOURNAL_POINTER@)

;; Flags for the xAccess VFS method
(define-inline-constant SQLITE_ACCESS_EXISTS		@VALUEOF_SQLITE_ACCESS_EXISTS@)
(define-inline-constant SQLITE_ACCESS_READWRITE		@VALUEOF_SQLITE_ACCESS_READWRITE@)
(define-inline-constant SQLITE_ACCESS_READ		@VALUEOF_SQLITE_ACCESS_READ@)

;; Flags for the xShmLock VFS method
(define-inline-constant SQLITE_SHM_UNLOCK		@VALUEOF_SQLITE_SHM_UNLOCK@)
(define-inline-constant SQLITE_SHM_LOCK			@VALUEOF_SQLITE_SHM_LOCK@)
(define-inline-constant SQLITE_SHM_SHARED		@VALUEOF_SQLITE_SHM_SHARED@)
(define-inline-constant SQLITE_SHM_EXCLUSIVE		@VALUEOF_SQLITE_SHM_EXCLUSIVE@)
(define-inline-constant SQLITE_SHM_NLOCK		@VALUEOF_SQLITE_SHM_NLOCK@)

;; Configuration Options
(define-inline-constant SQLITE_CONFIG_SINGLETHREAD	@VALUEOF_SQLITE_CONFIG_SINGLETHREAD@)
(define-inline-constant SQLITE_CONFIG_MULTITHREAD	@VALUEOF_SQLITE_CONFIG_MULTITHREAD@)
(define-inline-constant SQLITE_CONFIG_SERIALIZED	@VALUEOF_SQLITE_CONFIG_SERIALIZED@)
(define-inline-constant SQLITE_CONFIG_MALLOC		@VALUEOF_SQLITE_CONFIG_MALLOC@)
(define-inline-constant SQLITE_CONFIG_GETMALLOC		@VALUEOF_SQLITE_CONFIG_GETMALLOC@)
(define-inline-constant SQLITE_CONFIG_SCRATCH		@VALUEOF_SQLITE_CONFIG_SCRATCH@)
(define-inline-constant SQLITE_CONFIG_PAGECACHE		@VALUEOF_SQLITE_CONFIG_PAGECACHE@)
(define-inline-constant SQLITE_CONFIG_HEAP		@VALUEOF_SQLITE_CONFIG_HEAP@)
(define-inline-constant SQLITE_CONFIG_MEMSTATUS		@VALUEOF_SQLITE_CONFIG_MEMSTATUS@)
(define-inline-constant SQLITE_CONFIG_MUTEX		@VALUEOF_SQLITE_CONFIG_MUTEX@)
(define-inline-constant SQLITE_CONFIG_GETMUTEX		@VALUEOF_SQLITE_CONFIG_GETMUTEX@)
(define-inline-constant SQLITE_CONFIG_LOOKASIDE		@VALUEOF_SQLITE_CONFIG_LOOKASIDE@)
(define-inline-constant SQLITE_CONFIG_PCACHE		@VALUEOF_SQLITE_CONFIG_PCACHE@)
(define-inline-constant SQLITE_CONFIG_GETPCACHE		@VALUEOF_SQLITE_CONFIG_GETPCACHE@)
(define-inline-constant SQLITE_CONFIG_LOG		@VALUEOF_SQLITE_CONFIG_LOG@)
(define-inline-constant SQLITE_CONFIG_URI		@VALUEOF_SQLITE_CONFIG_URI@)
(define-inline-constant SQLITE_CONFIG_PCACHE2		@VALUEOF_SQLITE_CONFIG_PCACHE2@)
(define-inline-constant SQLITE_CONFIG_GETPCACHE2	@VALUEOF_SQLITE_CONFIG_GETPCACHE2@)
(define-inline-constant SQLITE_CONFIG_PCACHE_HDRSZ	@VALUEOF_SQLITE_CONFIG_PCACHE_HDRSZ@)

;; Database Connection Configuration Options
(define-inline-constant SQLITE_DBCONFIG_LOOKASIDE	@VALUEOF_SQLITE_DBCONFIG_LOOKASIDE@)
(define-inline-constant SQLITE_DBCONFIG_ENABLE_FKEY	@VALUEOF_SQLITE_DBCONFIG_ENABLE_FKEY@)
(define-inline-constant SQLITE_DBCONFIG_ENABLE_TRIGGER
  @VALUEOF_SQLITE_DBCONFIG_ENABLE_TRIGGER@)

;; Authorizer Return Codes
(define-inline-constant SQLITE_DENY		@VALUEOF_SQLITE_DENY@)
(define-inline-constant SQLITE_IGNORE		@VALUEOF_SQLITE_IGNORE@)

;; Authorizer Action Codes
(define-inline-constant SQLITE_CREATE_INDEX		@VALUEOF_SQLITE_CREATE_INDEX@)
(define-inline-constant SQLITE_CREATE_TABLE		@VALUEOF_SQLITE_CREATE_TABLE@)
(define-inline-constant SQLITE_CREATE_TEMP_INDEX	@VALUEOF_SQLITE_CREATE_TEMP_INDEX@)
(define-inline-constant SQLITE_CREATE_TEMP_TABLE	@VALUEOF_SQLITE_CREATE_TEMP_TABLE@)
(define-inline-constant SQLITE_CREATE_TEMP_TRIGGER	@VALUEOF_SQLITE_CREATE_TEMP_TRIGGER@)
(define-inline-constant SQLITE_CREATE_TEMP_VIEW		@VALUEOF_SQLITE_CREATE_TEMP_VIEW@)
(define-inline-constant SQLITE_CREATE_TRIGGER		@VALUEOF_SQLITE_CREATE_TRIGGER@)
(define-inline-constant SQLITE_CREATE_VIEW		@VALUEOF_SQLITE_CREATE_VIEW@)
(define-inline-constant SQLITE_DELETE			@VALUEOF_SQLITE_DELETE@)
(define-inline-constant SQLITE_DROP_INDEX		@VALUEOF_SQLITE_DROP_INDEX@)
(define-inline-constant SQLITE_DROP_TABLE		@VALUEOF_SQLITE_DROP_TABLE@)
(define-inline-constant SQLITE_DROP_TEMP_INDEX		@VALUEOF_SQLITE_DROP_TEMP_INDEX@)
(define-inline-constant SQLITE_DROP_TEMP_TABLE		@VALUEOF_SQLITE_DROP_TEMP_TABLE@)
(define-inline-constant SQLITE_DROP_TEMP_TRIGGER	@VALUEOF_SQLITE_DROP_TEMP_TRIGGER@)
(define-inline-constant SQLITE_DROP_TEMP_VIEW		@VALUEOF_SQLITE_DROP_TEMP_VIEW@)
(define-inline-constant SQLITE_DROP_TRIGGER		@VALUEOF_SQLITE_DROP_TRIGGER@)
(define-inline-constant SQLITE_DROP_VIEW		@VALUEOF_SQLITE_DROP_VIEW@)
(define-inline-constant SQLITE_INSERT			@VALUEOF_SQLITE_INSERT@)
(define-inline-constant SQLITE_PRAGMA			@VALUEOF_SQLITE_PRAGMA@)
(define-inline-constant SQLITE_READ			@VALUEOF_SQLITE_READ@)
(define-inline-constant SQLITE_SELECT			@VALUEOF_SQLITE_SELECT@)
(define-inline-constant SQLITE_TRANSACTION		@VALUEOF_SQLITE_TRANSACTION@)
(define-inline-constant SQLITE_UPDATE			@VALUEOF_SQLITE_UPDATE@)
(define-inline-constant SQLITE_ATTACH			@VALUEOF_SQLITE_ATTACH@)
(define-inline-constant SQLITE_DETACH			@VALUEOF_SQLITE_DETACH@)
(define-inline-constant SQLITE_ALTER_TABLE		@VALUEOF_SQLITE_ALTER_TABLE@)
(define-inline-constant SQLITE_REINDEX			@VALUEOF_SQLITE_REINDEX@)
(define-inline-constant SQLITE_ANALYZE			@VALUEOF_SQLITE_ANALYZE@)
(define-inline-constant SQLITE_CREATE_VTABLE		@VALUEOF_SQLITE_CREATE_VTABLE@)
(define-inline-constant SQLITE_DROP_VTABLE		@VALUEOF_SQLITE_DROP_VTABLE@)
(define-inline-constant SQLITE_FUNCTION			@VALUEOF_SQLITE_FUNCTION@)
(define-inline-constant SQLITE_SAVEPOINT		@VALUEOF_SQLITE_SAVEPOINT@)
(define-inline-constant SQLITE_COPY			@VALUEOF_SQLITE_COPY@)

;; Run-Time Limit Categories
(define-inline-constant SQLITE_LIMIT_LENGTH		@VALUEOF_SQLITE_LIMIT_LENGTH@)
(define-inline-constant SQLITE_LIMIT_SQL_LENGTH		@VALUEOF_SQLITE_LIMIT_SQL_LENGTH@)
(define-inline-constant SQLITE_LIMIT_COLUMN		@VALUEOF_SQLITE_LIMIT_COLUMN@)
(define-inline-constant SQLITE_LIMIT_EXPR_DEPTH		@VALUEOF_SQLITE_LIMIT_EXPR_DEPTH@)
(define-inline-constant SQLITE_LIMIT_COMPOUND_SELECT	@VALUEOF_SQLITE_LIMIT_COMPOUND_SELECT@)
(define-inline-constant SQLITE_LIMIT_VDBE_OP		@VALUEOF_SQLITE_LIMIT_VDBE_OP@)
(define-inline-constant SQLITE_LIMIT_FUNCTION_ARG	@VALUEOF_SQLITE_LIMIT_FUNCTION_ARG@)
(define-inline-constant SQLITE_LIMIT_ATTACHED		@VALUEOF_SQLITE_LIMIT_ATTACHED@)
(define-inline-constant SQLITE_LIMIT_LIKE_PATTERN_LENGTH
  @VALUEOF_SQLITE_LIMIT_LIKE_PATTERN_LENGTH@)
(define-inline-constant SQLITE_LIMIT_VARIABLE_NUMBER	@VALUEOF_SQLITE_LIMIT_VARIABLE_NUMBER@)
(define-inline-constant SQLITE_LIMIT_TRIGGER_DEPTH	@VALUEOF_SQLITE_LIMIT_TRIGGER_DEPTH@)

;; Fundamental Datatypes
(define-inline-constant SQLITE_INTEGER			@VALUEOF_SQLITE_INTEGER@)
(define-inline-constant SQLITE_FLOAT			@VALUEOF_SQLITE_FLOAT@)
(define-inline-constant SQLITE_BLOB			@VALUEOF_SQLITE_BLOB@)
(define-inline-constant SQLITE_NULL			@VALUEOF_SQLITE_NULL@)
(define-inline-constant SQLITE_TEXT			@VALUEOF_SQLITE_TEXT@)
(define-inline-constant SQLITE3_TEXT			@VALUEOF_SQLITE3_TEXT@)

;; Text Encodings
(define-inline-constant SQLITE_UTF8			@VALUEOF_SQLITE_UTF8@)
(define-inline-constant SQLITE_UTF16LE			@VALUEOF_SQLITE_UTF16LE@)
(define-inline-constant SQLITE_UTF16BE			@VALUEOF_SQLITE_UTF16BE@)
(define-inline-constant SQLITE_UTF16			@VALUEOF_SQLITE_UTF16@)
(define-inline-constant SQLITE_ANY			@VALUEOF_SQLITE_ANY@)
(define-inline-constant SQLITE_UTF16_ALIGNED		@VALUEOF_SQLITE_UTF16_ALIGNED@)

;; Constants Defining Special Destructor Behavior
(define-inline-constant SQLITE_STATIC		(let ((V @VALUEOF_SQLITE_STATIC@))
						  (and V (integer->pointer V))))

(define-inline-constant SQLITE_TRANSIENT	(let ((V @VALUEOF_SQLITE_TRANSIENT@))
						  (and V (integer->pointer V))))

;; Virtual Table Constraint Operator Codes
(define-inline-constant SQLITE_INDEX_CONSTRAINT_EQ	@VALUEOF_SQLITE_INDEX_CONSTRAINT_EQ@)
(define-inline-constant SQLITE_INDEX_CONSTRAINT_GT	@VALUEOF_SQLITE_INDEX_CONSTRAINT_GT@)
(define-inline-constant SQLITE_INDEX_CONSTRAINT_LE	@VALUEOF_SQLITE_INDEX_CONSTRAINT_LE@)
(define-inline-constant SQLITE_INDEX_CONSTRAINT_LT	@VALUEOF_SQLITE_INDEX_CONSTRAINT_LT@)
(define-inline-constant SQLITE_INDEX_CONSTRAINT_GE	@VALUEOF_SQLITE_INDEX_CONSTRAINT_GE@)
(define-inline-constant SQLITE_INDEX_CONSTRAINT_MATCH	@VALUEOF_SQLITE_INDEX_CONSTRAINT_MATCH@)

;; Mutex Types
(define-inline-constant SQLITE_MUTEX_FAST		@VALUEOF_SQLITE_MUTEX_FAST@)
(define-inline-constant SQLITE_MUTEX_RECURSIVE		@VALUEOF_SQLITE_MUTEX_RECURSIVE@)
(define-inline-constant SQLITE_MUTEX_STATIC_MASTER	@VALUEOF_SQLITE_MUTEX_STATIC_MASTER@)
(define-inline-constant SQLITE_MUTEX_STATIC_MEM		@VALUEOF_SQLITE_MUTEX_STATIC_MEM@)
(define-inline-constant SQLITE_MUTEX_STATIC_MEM2	@VALUEOF_SQLITE_MUTEX_STATIC_MEM2@)
(define-inline-constant SQLITE_MUTEX_STATIC_OPEN	@VALUEOF_SQLITE_MUTEX_STATIC_OPEN@)
(define-inline-constant SQLITE_MUTEX_STATIC_PRNG	@VALUEOF_SQLITE_MUTEX_STATIC_PRNG@)
(define-inline-constant SQLITE_MUTEX_STATIC_LRU		@VALUEOF_SQLITE_MUTEX_STATIC_LRU@)
(define-inline-constant SQLITE_MUTEX_STATIC_LRU2	@VALUEOF_SQLITE_MUTEX_STATIC_LRU2@)
(define-inline-constant SQLITE_MUTEX_STATIC_PMEM	@VALUEOF_SQLITE_MUTEX_STATIC_PMEM@)

;; Testing Interface Operation Codes
(define-inline-constant SQLITE_TESTCTRL_FIRST		@VALUEOF_SQLITE_TESTCTRL_FIRST@)
(define-inline-constant SQLITE_TESTCTRL_PRNG_SAVE	@VALUEOF_SQLITE_TESTCTRL_PRNG_SAVE@)
(define-inline-constant SQLITE_TESTCTRL_PRNG_RESTORE	@VALUEOF_SQLITE_TESTCTRL_PRNG_RESTORE@)
(define-inline-constant SQLITE_TESTCTRL_PRNG_RESET	@VALUEOF_SQLITE_TESTCTRL_PRNG_RESET@)
(define-inline-constant SQLITE_TESTCTRL_BITVEC_TEST	@VALUEOF_SQLITE_TESTCTRL_BITVEC_TEST@)
(define-inline-constant SQLITE_TESTCTRL_FAULT_INSTALL	@VALUEOF_SQLITE_TESTCTRL_FAULT_INSTALL@)
(define-inline-constant SQLITE_TESTCTRL_BENIGN_MALLOC_HOOKS
  @VALUEOF_SQLITE_TESTCTRL_BENIGN_MALLOC_HOOKS@)
(define-inline-constant SQLITE_TESTCTRL_PENDING_BYTE	@VALUEOF_SQLITE_TESTCTRL_PENDING_BYTE@)
(define-inline-constant SQLITE_TESTCTRL_ASSERT		@VALUEOF_SQLITE_TESTCTRL_ASSERT@)
(define-inline-constant SQLITE_TESTCTRL_ALWAYS		@VALUEOF_SQLITE_TESTCTRL_ALWAYS@)
(define-inline-constant SQLITE_TESTCTRL_RESERVE		@VALUEOF_SQLITE_TESTCTRL_RESERVE@)
(define-inline-constant SQLITE_TESTCTRL_OPTIMIZATIONS	@VALUEOF_SQLITE_TESTCTRL_OPTIMIZATIONS@)
(define-inline-constant SQLITE_TESTCTRL_ISKEYWORD	@VALUEOF_SQLITE_TESTCTRL_ISKEYWORD@)
(define-inline-constant SQLITE_TESTCTRL_SCRATCHMALLOC	@VALUEOF_SQLITE_TESTCTRL_SCRATCHMALLOC@)
(define-inline-constant SQLITE_TESTCTRL_LOCALTIME_FAULT
  @VALUEOF_SQLITE_TESTCTRL_LOCALTIME_FAULT@)
(define-inline-constant SQLITE_TESTCTRL_EXPLAIN_STMT	@VALUEOF_SQLITE_TESTCTRL_EXPLAIN_STMT@)
(define-inline-constant SQLITE_TESTCTRL_LAST		@VALUEOF_SQLITE_TESTCTRL_LAST@)

;; Status Parameters
(define-inline-constant SQLITE_STATUS_MEMORY_USED	@VALUEOF_SQLITE_STATUS_MEMORY_USED@)
(define-inline-constant SQLITE_STATUS_PAGECACHE_USED	@VALUEOF_SQLITE_STATUS_PAGECACHE_USED@)
(define-inline-constant SQLITE_STATUS_PAGECACHE_OVERFLOW
  @VALUEOF_SQLITE_STATUS_PAGECACHE_OVERFLOW@)
(define-inline-constant SQLITE_STATUS_SCRATCH_USED	@VALUEOF_SQLITE_STATUS_SCRATCH_USED@)
(define-inline-constant SQLITE_STATUS_SCRATCH_OVERFLOW	@VALUEOF_SQLITE_STATUS_SCRATCH_OVERFLOW@)
(define-inline-constant SQLITE_STATUS_MALLOC_SIZE	@VALUEOF_SQLITE_STATUS_MALLOC_SIZE@)
(define-inline-constant SQLITE_STATUS_PARSER_STACK	@VALUEOF_SQLITE_STATUS_PARSER_STACK@)
(define-inline-constant SQLITE_STATUS_PAGECACHE_SIZE	@VALUEOF_SQLITE_STATUS_PAGECACHE_SIZE@)
(define-inline-constant SQLITE_STATUS_SCRATCH_SIZE	@VALUEOF_SQLITE_STATUS_SCRATCH_SIZE@)
(define-inline-constant SQLITE_STATUS_MALLOC_COUNT	@VALUEOF_SQLITE_STATUS_MALLOC_COUNT@)

;; Status Parameters for database connections
(define-inline-constant SQLITE_DBSTATUS_LOOKASIDE_USED	@VALUEOF_SQLITE_DBSTATUS_LOOKASIDE_USED@)
(define-inline-constant SQLITE_DBSTATUS_CACHE_USED	@VALUEOF_SQLITE_DBSTATUS_CACHE_USED@)
(define-inline-constant SQLITE_DBSTATUS_SCHEMA_USED	@VALUEOF_SQLITE_DBSTATUS_SCHEMA_USED@)
(define-inline-constant SQLITE_DBSTATUS_STMT_USED	@VALUEOF_SQLITE_DBSTATUS_STMT_USED@)
(define-inline-constant SQLITE_DBSTATUS_LOOKASIDE_HIT	@VALUEOF_SQLITE_DBSTATUS_LOOKASIDE_HIT@)
(define-inline-constant SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE
  @VALUEOF_SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE@)
(define-inline-constant SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL
  @VALUEOF_SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL@)
(define-inline-constant SQLITE_DBSTATUS_CACHE_HIT	@VALUEOF_SQLITE_DBSTATUS_CACHE_HIT@)
(define-inline-constant SQLITE_DBSTATUS_CACHE_MISS	@VALUEOF_SQLITE_DBSTATUS_CACHE_MISS@)
(define-inline-constant SQLITE_DBSTATUS_CACHE_WRITE	@VALUEOF_SQLITE_DBSTATUS_CACHE_WRITE@)
(define-inline-constant SQLITE_DBSTATUS_MAX		@VALUEOF_SQLITE_DBSTATUS_MAX@)

;; Status Parameters for prepared statements
(define-inline-constant SQLITE_STMTSTATUS_FULLSCAN_STEP
  @VALUEOF_SQLITE_STMTSTATUS_FULLSCAN_STEP@)
(define-inline-constant SQLITE_STMTSTATUS_SORT		@VALUEOF_SQLITE_STMTSTATUS_SORT@)
(define-inline-constant SQLITE_STMTSTATUS_AUTOINDEX	@VALUEOF_SQLITE_STMTSTATUS_AUTOINDEX@)

;; Checkpoint operation parameters
(define-inline-constant SQLITE_CHECKPOINT_PASSIVE	@VALUEOF_SQLITE_CHECKPOINT_PASSIVE@)
(define-inline-constant SQLITE_CHECKPOINT_FULL		@VALUEOF_SQLITE_CHECKPOINT_FULL@)
(define-inline-constant SQLITE_CHECKPOINT_RESTART	@VALUEOF_SQLITE_CHECKPOINT_RESTART@)
(define-inline-constant SQLITE_CHECKPOINT_TRUNCATE	@VALUEOF_SQLITE_CHECKPOINT_TRUNCATE@)

;; Virtual Table Configuration Options
(define-inline-constant SQLITE_VTAB_CONSTRAINT_SUPPORT
  @VALUEOF_SQLITE_VTAB_CONSTRAINT_SUPPORT@)

;; Conflict resolution modes
(define-inline-constant SQLITE_ROLLBACK			@VALUEOF_SQLITE_ROLLBACK@)
;;;(define-inline-constant SQLITE_IGNORE		@VALUEOF_SQLITE_IGNORE@)
(define-inline-constant SQLITE_FAIL			@VALUEOF_SQLITE_FAIL@)
;;;(define-inline-constant SQLITE_ABORT			@VALUEOF_SQLITE_ABORT@)
(define-inline-constant SQLITE_REPLACE			@VALUEOF_SQLITE_REPLACE@)



;;;; done

)

;;; end of file
;; Local Variables:
;; mode: scheme
;; End:
