module Bindings.Sqlite3 where
import Foreign.Ptr (Ptr,FunPtr,plusPtr)
import Foreign.Ptr (wordPtrToPtr,castPtrToFunPtr)
import Foreign.Storable
import Foreign.C.Types
import Foreign.C.String (CString,CStringLen,CWString,CWStringLen)
import Foreign.Marshal.Alloc (alloca)
import Foreign.Marshal.Array (peekArray,pokeArray)
import Data.Int
import Data.Word
c'SQLITE_SHM_NLOCK = 8
c'SQLITE_SHM_NLOCK :: (Num a) => a
c'SQLITE_VTAB_CONSTRAINT_SUPPORT = 1
c'SQLITE_VTAB_CONSTRAINT_SUPPORT :: (Num a) => a
data C'sqlite3_backup = C'sqlite3_backup
data C'sqlite3_context = C'sqlite3_context
foreign import ccall "&sqlite3_data_directory" p'sqlite3_data_directory
:: Ptr (Ptr CChar)
data C'sqlite3_file = C'sqlite3_file{
c'sqlite3_file'pMethods :: Ptr C'sqlite3_io_methods
} deriving (Eq,Show)
p'sqlite3_file'pMethods p = plusPtr p 0
p'sqlite3_file'pMethods :: Ptr (C'sqlite3_file) -> Ptr (Ptr C'sqlite3_io_methods)
instance Storable C'sqlite3_file where
sizeOf _ = 4
alignment _ = 4
peek p = do
v0 <- peekByteOff p 0
return $ C'sqlite3_file v0
poke p (C'sqlite3_file v0) = do
pokeByteOff p 0 v0
return ()
data C'sqlite3_index_info = C'sqlite3_index_info{
c'sqlite3_index_info'nConstraint :: CInt,
c'sqlite3_index_info'aConstraint :: Ptr C'sqlite3_index_constraint,
c'sqlite3_index_info'nOrderBy :: CInt,
c'sqlite3_index_info'aOrderBy :: Ptr C'sqlite3_index_orderby,
c'sqlite3_index_info'aConstraintUsage :: Ptr C'sqlite3_index_constraint_usage,
c'sqlite3_index_info'idxNum :: CInt,
c'sqlite3_index_info'idxStr :: CString,
c'sqlite3_index_info'needToFreeIdxStr :: CInt,
c'sqlite3_index_info'orderByConsumed :: CInt,
c'sqlite3_index_info'estimatedCost :: CDouble
} deriving (Eq,Show)
p'sqlite3_index_info'nConstraint p = plusPtr p 0
p'sqlite3_index_info'nConstraint :: Ptr (C'sqlite3_index_info) -> Ptr (CInt)
p'sqlite3_index_info'aConstraint p = plusPtr p 4
p'sqlite3_index_info'aConstraint :: Ptr (C'sqlite3_index_info) -> Ptr (Ptr C'sqlite3_index_constraint)
p'sqlite3_index_info'nOrderBy p = plusPtr p 8
p'sqlite3_index_info'nOrderBy :: Ptr (C'sqlite3_index_info) -> Ptr (CInt)
p'sqlite3_index_info'aOrderBy p = plusPtr p 12
p'sqlite3_index_info'aOrderBy :: Ptr (C'sqlite3_index_info) -> Ptr (Ptr C'sqlite3_index_orderby)
p'sqlite3_index_info'aConstraintUsage p = plusPtr p 16
p'sqlite3_index_info'aConstraintUsage :: Ptr (C'sqlite3_index_info) -> Ptr (Ptr C'sqlite3_index_constraint_usage)
p'sqlite3_index_info'idxNum p = plusPtr p 20
p'sqlite3_index_info'idxNum :: Ptr (C'sqlite3_index_info) -> Ptr (CInt)
p'sqlite3_index_info'idxStr p = plusPtr p 24
p'sqlite3_index_info'idxStr :: Ptr (C'sqlite3_index_info) -> Ptr (CString)
p'sqlite3_index_info'needToFreeIdxStr p = plusPtr p 28
p'sqlite3_index_info'needToFreeIdxStr :: Ptr (C'sqlite3_index_info) -> Ptr (CInt)
p'sqlite3_index_info'orderByConsumed p = plusPtr p 32
p'sqlite3_index_info'orderByConsumed :: Ptr (C'sqlite3_index_info) -> Ptr (CInt)
p'sqlite3_index_info'estimatedCost p = plusPtr p 36
p'sqlite3_index_info'estimatedCost :: Ptr (C'sqlite3_index_info) -> Ptr (CDouble)
instance Storable C'sqlite3_index_info where
sizeOf _ = 44
alignment _ = 4
peek p = do
v0 <- peekByteOff p 0
v1 <- peekByteOff p 4
v2 <- peekByteOff p 8
v3 <- peekByteOff p 12
v4 <- peekByteOff p 16
v5 <- peekByteOff p 20
v6 <- peekByteOff p 24
v7 <- peekByteOff p 28
v8 <- peekByteOff p 32
v9 <- peekByteOff p 36
return $ C'sqlite3_index_info v0 v1 v2 v3 v4 v5 v6 v7 v8 v9
poke p (C'sqlite3_index_info v0 v1 v2 v3 v4 v5 v6 v7 v8 v9) = do
pokeByteOff p 0 v0
pokeByteOff p 4 v1
pokeByteOff p 8 v2
pokeByteOff p 12 v3
pokeByteOff p 16 v4
pokeByteOff p 20 v5
pokeByteOff p 24 v6
pokeByteOff p 28 v7
pokeByteOff p 32 v8
pokeByteOff p 36 v9
return ()
data C'sqlite3_index_constraint = C'sqlite3_index_constraint{
c'sqlite3_index_constraint'iColumn :: CInt,
c'sqlite3_index_constraint'op :: CUChar,
c'sqlite3_index_constraint'usable :: CUChar
} deriving (Eq,Show)
p'sqlite3_index_constraint'iColumn p = plusPtr p 0
p'sqlite3_index_constraint'iColumn :: Ptr (C'sqlite3_index_constraint) -> Ptr (CInt)
p'sqlite3_index_constraint'op p = plusPtr p 4
p'sqlite3_index_constraint'op :: Ptr (C'sqlite3_index_constraint) -> Ptr (CUChar)
p'sqlite3_index_constraint'usable p = plusPtr p 5
p'sqlite3_index_constraint'usable :: Ptr (C'sqlite3_index_constraint) -> Ptr (CUChar)
instance Storable C'sqlite3_index_constraint where
sizeOf _ = 12
alignment _ = 4
peek p = do
v0 <- peekByteOff p 0
v1 <- peekByteOff p 4
v2 <- peekByteOff p 5
return $ C'sqlite3_index_constraint v0 v1 v2
poke p (C'sqlite3_index_constraint v0 v1 v2) = do
pokeByteOff p 0 v0
pokeByteOff p 4 v1
pokeByteOff p 5 v2
return ()
data C'sqlite3_index_orderby = C'sqlite3_index_orderby{
c'sqlite3_index_orderby'iColumn :: CInt,
c'sqlite3_index_orderby'desc :: CUChar
} deriving (Eq,Show)
p'sqlite3_index_orderby'iColumn p = plusPtr p 0
p'sqlite3_index_orderby'iColumn :: Ptr (C'sqlite3_index_orderby) -> Ptr (CInt)
p'sqlite3_index_orderby'desc p = plusPtr p 4
p'sqlite3_index_orderby'desc :: Ptr (C'sqlite3_index_orderby) -> Ptr (CUChar)
instance Storable C'sqlite3_index_orderby where
sizeOf _ = 8
alignment _ = 4
peek p = do
v0 <- peekByteOff p 0
v1 <- peekByteOff p 4
return $ C'sqlite3_index_orderby v0 v1
poke p (C'sqlite3_index_orderby v0 v1) = do
pokeByteOff p 0 v0
pokeByteOff p 4 v1
return ()
data C'sqlite3_index_constraint_usage = C'sqlite3_index_constraint_usage{
c'sqlite3_index_constraint_usage'argvIndex :: CInt,
c'sqlite3_index_constraint_usage'omit :: CUChar
} deriving (Eq,Show)
p'sqlite3_index_constraint_usage'argvIndex p = plusPtr p 0
p'sqlite3_index_constraint_usage'argvIndex :: Ptr (C'sqlite3_index_constraint_usage) -> Ptr (CInt)
p'sqlite3_index_constraint_usage'omit p = plusPtr p 4
p'sqlite3_index_constraint_usage'omit :: Ptr (C'sqlite3_index_constraint_usage) -> Ptr (CUChar)
instance Storable C'sqlite3_index_constraint_usage where
sizeOf _ = 8
alignment _ = 4
peek p = do
v0 <- peekByteOff p 0
v1 <- peekByteOff p 4
return $ C'sqlite3_index_constraint_usage v0 v1
poke p (C'sqlite3_index_constraint_usage v0 v1) = do
pokeByteOff p 0 v0
pokeByteOff p 4 v1
return ()
data C'sqlite3_io_methods = C'sqlite3_io_methods{
c'sqlite3_io_methods'iVersion :: CInt,
c'sqlite3_io_methods'xClose :: FunPtr (Ptr C'sqlite3_file -> IO CInt),
c'sqlite3_io_methods'xRead :: FunPtr (Ptr C'sqlite3_file -> Ptr () -> CInt -> C'sqlite3_int64 -> IO CInt),
c'sqlite3_io_methods'xWrite :: FunPtr (Ptr C'sqlite3_file -> Ptr () -> CInt -> C'sqlite3_int64 -> IO ()),
c'sqlite3_io_methods'xTruncate :: FunPtr (Ptr C'sqlite3_file -> C'sqlite3_int64 -> IO CInt),
c'sqlite3_io_methods'xSync :: FunPtr (Ptr C'sqlite3_file -> CInt -> IO CInt),
c'sqlite3_io_methods'xFileSize :: FunPtr (Ptr C'sqlite3_file -> Ptr C'sqlite3_int64 -> IO CInt),
c'sqlite3_io_methods'xLock :: FunPtr (Ptr C'sqlite3_file -> CInt -> IO CInt),
c'sqlite3_io_methods'xUnlock :: FunPtr (Ptr C'sqlite3_file -> CInt -> IO CInt),
c'sqlite3_io_methods'xCheckReservedLock :: FunPtr (Ptr C'sqlite3_file -> Ptr CInt -> IO CInt),
c'sqlite3_io_methods'xFileControl :: FunPtr (Ptr C'sqlite3_file -> CInt -> Ptr () -> IO CInt),
c'sqlite3_io_methods'xSectorSize :: FunPtr (Ptr C'sqlite3_file -> IO CInt),
c'sqlite3_io_methods'xDeviceCharacteristics :: FunPtr (Ptr C'sqlite3_file -> IO CInt),
c'sqlite3_io_methods'xShmMap :: FunPtr (Ptr C'sqlite3_file -> CInt -> CInt -> CInt -> Ptr (Ptr ()) -> IO CInt),
c'sqlite3_io_methods'xShmLock :: FunPtr (Ptr C'sqlite3_file -> CInt -> CInt -> CInt -> IO CInt),
c'sqlite3_io_methods'xShmBarrier :: FunPtr (Ptr C'sqlite3_file -> IO ()),
c'sqlite3_io_methods'xShmUnmap :: FunPtr (Ptr C'sqlite3_file -> CInt -> IO CInt),
c'sqlite3_io_methods'xFetch :: FunPtr (Ptr C'sqlite3_file -> C'sqlite3_int64 -> CInt -> Ptr (Ptr ()) -> IO CInt),
c'sqlite3_io_methods'xUnfetch :: FunPtr (Ptr C'sqlite3_file -> C'sqlite3_int64 -> Ptr () -> IO CInt)
} deriving (Eq,Show)
p'sqlite3_io_methods'iVersion p = plusPtr p 0
p'sqlite3_io_methods'iVersion :: Ptr (C'sqlite3_io_methods) -> Ptr (CInt)
p'sqlite3_io_methods'xClose p = plusPtr p 4
p'sqlite3_io_methods'xClose :: Ptr (C'sqlite3_io_methods) -> Ptr (FunPtr (Ptr C'sqlite3_file -> IO CInt))
p'sqlite3_io_methods'xRead p = plusPtr p 8
p'sqlite3_io_methods'xRead :: Ptr (C'sqlite3_io_methods) -> Ptr (FunPtr (Ptr C'sqlite3_file -> Ptr () -> CInt -> C'sqlite3_int64 -> IO CInt))
p'sqlite3_io_methods'xWrite p = plusPtr p 12
p'sqlite3_io_methods'xWrite :: Ptr (C'sqlite3_io_methods) -> Ptr (FunPtr (Ptr C'sqlite3_file -> Ptr () -> CInt -> C'sqlite3_int64 -> IO ()))
p'sqlite3_io_methods'xTruncate p = plusPtr p 16
p'sqlite3_io_methods'xTruncate :: Ptr (C'sqlite3_io_methods) -> Ptr (FunPtr (Ptr C'sqlite3_file -> C'sqlite3_int64 -> IO CInt))
p'sqlite3_io_methods'xSync p = plusPtr p 20
p'sqlite3_io_methods'xSync :: Ptr (C'sqlite3_io_methods) -> Ptr (FunPtr (Ptr C'sqlite3_file -> CInt -> IO CInt))
p'sqlite3_io_methods'xFileSize p = plusPtr p 24
p'sqlite3_io_methods'xFileSize :: Ptr (C'sqlite3_io_methods) -> Ptr (FunPtr (Ptr C'sqlite3_file -> Ptr C'sqlite3_int64 -> IO CInt))
p'sqlite3_io_methods'xLock p = plusPtr p 28
p'sqlite3_io_methods'xLock :: Ptr (C'sqlite3_io_methods) -> Ptr (FunPtr (Ptr C'sqlite3_file -> CInt -> IO CInt))
p'sqlite3_io_methods'xUnlock p = plusPtr p 32
p'sqlite3_io_methods'xUnlock :: Ptr (C'sqlite3_io_methods) -> Ptr (FunPtr (Ptr C'sqlite3_file -> CInt -> IO CInt))
p'sqlite3_io_methods'xCheckReservedLock p = plusPtr p 36
p'sqlite3_io_methods'xCheckReservedLock :: Ptr (C'sqlite3_io_methods) -> Ptr (FunPtr (Ptr C'sqlite3_file -> Ptr CInt -> IO CInt))
p'sqlite3_io_methods'xFileControl p = plusPtr p 40
p'sqlite3_io_methods'xFileControl :: Ptr (C'sqlite3_io_methods) -> Ptr (FunPtr (Ptr C'sqlite3_file -> CInt -> Ptr () -> IO CInt))
p'sqlite3_io_methods'xSectorSize p = plusPtr p 44
p'sqlite3_io_methods'xSectorSize :: Ptr (C'sqlite3_io_methods) -> Ptr (FunPtr (Ptr C'sqlite3_file -> IO CInt))
p'sqlite3_io_methods'xDeviceCharacteristics p = plusPtr p 48
p'sqlite3_io_methods'xDeviceCharacteristics :: Ptr (C'sqlite3_io_methods) -> Ptr (FunPtr (Ptr C'sqlite3_file -> IO CInt))
p'sqlite3_io_methods'xShmMap p = plusPtr p 52
p'sqlite3_io_methods'xShmMap :: Ptr (C'sqlite3_io_methods) -> Ptr (FunPtr (Ptr C'sqlite3_file -> CInt -> CInt -> CInt -> Ptr (Ptr ()) -> IO CInt))
p'sqlite3_io_methods'xShmLock p = plusPtr p 56
p'sqlite3_io_methods'xShmLock :: Ptr (C'sqlite3_io_methods) -> Ptr (FunPtr (Ptr C'sqlite3_file -> CInt -> CInt -> CInt -> IO CInt))
p'sqlite3_io_methods'xShmBarrier p = plusPtr p 60
p'sqlite3_io_methods'xShmBarrier :: Ptr (C'sqlite3_io_methods) -> Ptr (FunPtr (Ptr C'sqlite3_file -> IO ()))
p'sqlite3_io_methods'xShmUnmap p = plusPtr p 64
p'sqlite3_io_methods'xShmUnmap :: Ptr (C'sqlite3_io_methods) -> Ptr (FunPtr (Ptr C'sqlite3_file -> CInt -> IO CInt))
p'sqlite3_io_methods'xFetch p = plusPtr p 68
p'sqlite3_io_methods'xFetch :: Ptr (C'sqlite3_io_methods) -> Ptr (FunPtr (Ptr C'sqlite3_file -> C'sqlite3_int64 -> CInt -> Ptr (Ptr ()) -> IO CInt))
p'sqlite3_io_methods'xUnfetch p = plusPtr p 72
p'sqlite3_io_methods'xUnfetch :: Ptr (C'sqlite3_io_methods) -> Ptr (FunPtr (Ptr C'sqlite3_file -> C'sqlite3_int64 -> Ptr () -> IO CInt))
instance Storable C'sqlite3_io_methods where
sizeOf _ = 76
alignment _ = 4
peek p = do
v0 <- peekByteOff p 0
v1 <- peekByteOff p 4
v2 <- peekByteOff p 8
v3 <- peekByteOff p 12
v4 <- peekByteOff p 16
v5 <- peekByteOff p 20
v6 <- peekByteOff p 24
v7 <- peekByteOff p 28
v8 <- peekByteOff p 32
v9 <- peekByteOff p 36
v10 <- peekByteOff p 40
v11 <- peekByteOff p 44
v12 <- peekByteOff p 48
v13 <- peekByteOff p 52
v14 <- peekByteOff p 56
v15 <- peekByteOff p 60
v16 <- peekByteOff p 64
v17 <- peekByteOff p 68
v18 <- peekByteOff p 72
return $ C'sqlite3_io_methods v0 v1 v2 v3 v4 v5 v6 v7 v8 v9 v10 v11 v12 v13 v14 v15 v16 v17 v18
poke p (C'sqlite3_io_methods v0 v1 v2 v3 v4 v5 v6 v7 v8 v9 v10 v11 v12 v13 v14 v15 v16 v17 v18) = do
pokeByteOff p 0 v0
pokeByteOff p 4 v1
pokeByteOff p 8 v2
pokeByteOff p 12 v3
pokeByteOff p 16 v4
pokeByteOff p 20 v5
pokeByteOff p 24 v6
pokeByteOff p 28 v7
pokeByteOff p 32 v8
pokeByteOff p 36 v9
pokeByteOff p 40 v10
pokeByteOff p 44 v11
pokeByteOff p 48 v12
pokeByteOff p 52 v13
pokeByteOff p 56 v14
pokeByteOff p 60 v15
pokeByteOff p 64 v16
pokeByteOff p 68 v17
pokeByteOff p 72 v18
return ()
data C'sqlite3_mem_methods = C'sqlite3_mem_methods{
c'sqlite3_mem_methods'xMalloc :: FunPtr (CInt -> IO (Ptr ())),
c'sqlite3_mem_methods'xFree :: FunPtr (Ptr () -> IO ()),
c'sqlite3_mem_methods'xRealloc :: FunPtr (Ptr () -> CInt -> IO (Ptr ())),
c'sqlite3_mem_methods'xSize :: FunPtr (Ptr () -> IO CInt),
c'sqlite3_mem_methods'xRoundup :: FunPtr (CInt -> IO CInt),
c'sqlite3_mem_methods'xInit :: FunPtr (Ptr () -> IO CInt),
c'sqlite3_mem_methods'xShutdown :: FunPtr (Ptr () -> IO ()),
c'sqlite3_mem_methods'pAppData :: Ptr ()
} deriving (Eq,Show)
p'sqlite3_mem_methods'xMalloc p = plusPtr p 0
p'sqlite3_mem_methods'xMalloc :: Ptr (C'sqlite3_mem_methods) -> Ptr (FunPtr (CInt -> IO (Ptr ())))
p'sqlite3_mem_methods'xFree p = plusPtr p 4
p'sqlite3_mem_methods'xFree :: Ptr (C'sqlite3_mem_methods) -> Ptr (FunPtr (Ptr () -> IO ()))
p'sqlite3_mem_methods'xRealloc p = plusPtr p 8
p'sqlite3_mem_methods'xRealloc :: Ptr (C'sqlite3_mem_methods) -> Ptr (FunPtr (Ptr () -> CInt -> IO (Ptr ())))
p'sqlite3_mem_methods'xSize p = plusPtr p 12
p'sqlite3_mem_methods'xSize :: Ptr (C'sqlite3_mem_methods) -> Ptr (FunPtr (Ptr () -> IO CInt))
p'sqlite3_mem_methods'xRoundup p = plusPtr p 16
p'sqlite3_mem_methods'xRoundup :: Ptr (C'sqlite3_mem_methods) -> Ptr (FunPtr (CInt -> IO CInt))
p'sqlite3_mem_methods'xInit p = plusPtr p 20
p'sqlite3_mem_methods'xInit :: Ptr (C'sqlite3_mem_methods) -> Ptr (FunPtr (Ptr () -> IO CInt))
p'sqlite3_mem_methods'xShutdown p = plusPtr p 24
p'sqlite3_mem_methods'xShutdown :: Ptr (C'sqlite3_mem_methods) -> Ptr (FunPtr (Ptr () -> IO ()))
p'sqlite3_mem_methods'pAppData p = plusPtr p 28
p'sqlite3_mem_methods'pAppData :: Ptr (C'sqlite3_mem_methods) -> Ptr (Ptr ())
instance Storable C'sqlite3_mem_methods where
sizeOf _ = 32
alignment _ = 4
peek p = do
v0 <- peekByteOff p 0
v1 <- peekByteOff p 4
v2 <- peekByteOff p 8
v3 <- peekByteOff p 12
v4 <- peekByteOff p 16
v5 <- peekByteOff p 20
v6 <- peekByteOff p 24
v7 <- peekByteOff p 28
return $ C'sqlite3_mem_methods v0 v1 v2 v3 v4 v5 v6 v7
poke p (C'sqlite3_mem_methods v0 v1 v2 v3 v4 v5 v6 v7) = do
pokeByteOff p 0 v0
pokeByteOff p 4 v1
pokeByteOff p 8 v2
pokeByteOff p 12 v3
pokeByteOff p 16 v4
pokeByteOff p 20 v5
pokeByteOff p 24 v6
pokeByteOff p 28 v7
return ()
data C'sqlite3_mutex = C'sqlite3_mutex
data C'sqlite3_mutex_methods = C'sqlite3_mutex_methods{
c'sqlite3_mutex_methods'xMutexInit :: FunPtr (IO CInt),
c'sqlite3_mutex_methods'xMutexEnd :: FunPtr (IO CInt),
c'sqlite3_mutex_methods'xMutexAlloc :: FunPtr (CInt -> IO (Ptr C'sqlite3_mutex)),
c'sqlite3_mutex_methods'xMutexFree :: FunPtr (Ptr C'sqlite3_mutex -> IO ()),
c'sqlite3_mutex_methods'xMutexEnter :: FunPtr (Ptr C'sqlite3_mutex -> IO ()),
c'sqlite3_mutex_methods'xMutexTry :: FunPtr (Ptr C'sqlite3_mutex -> IO CInt),
c'sqlite3_mutex_methods'xMutexLeave :: FunPtr (Ptr C'sqlite3_mutex -> IO ()),
c'sqlite3_mutex_methods'xMutexHeld :: FunPtr (Ptr C'sqlite3_mutex -> IO CInt),
c'sqlite3_mutex_methods'xMutexNotheld :: FunPtr (Ptr C'sqlite3_mutex -> IO CInt)
} deriving (Eq,Show)
p'sqlite3_mutex_methods'xMutexInit p = plusPtr p 0
p'sqlite3_mutex_methods'xMutexInit :: Ptr (C'sqlite3_mutex_methods) -> Ptr (FunPtr (IO CInt))
p'sqlite3_mutex_methods'xMutexEnd p = plusPtr p 4
p'sqlite3_mutex_methods'xMutexEnd :: Ptr (C'sqlite3_mutex_methods) -> Ptr (FunPtr (IO CInt))
p'sqlite3_mutex_methods'xMutexAlloc p = plusPtr p 8
p'sqlite3_mutex_methods'xMutexAlloc :: Ptr (C'sqlite3_mutex_methods) -> Ptr (FunPtr (CInt -> IO (Ptr C'sqlite3_mutex)))
p'sqlite3_mutex_methods'xMutexFree p = plusPtr p 12
p'sqlite3_mutex_methods'xMutexFree :: Ptr (C'sqlite3_mutex_methods) -> Ptr (FunPtr (Ptr C'sqlite3_mutex -> IO ()))
p'sqlite3_mutex_methods'xMutexEnter p = plusPtr p 16
p'sqlite3_mutex_methods'xMutexEnter :: Ptr (C'sqlite3_mutex_methods) -> Ptr (FunPtr (Ptr C'sqlite3_mutex -> IO ()))
p'sqlite3_mutex_methods'xMutexTry p = plusPtr p 20
p'sqlite3_mutex_methods'xMutexTry :: Ptr (C'sqlite3_mutex_methods) -> Ptr (FunPtr (Ptr C'sqlite3_mutex -> IO CInt))
p'sqlite3_mutex_methods'xMutexLeave p = plusPtr p 24
p'sqlite3_mutex_methods'xMutexLeave :: Ptr (C'sqlite3_mutex_methods) -> Ptr (FunPtr (Ptr C'sqlite3_mutex -> IO ()))
p'sqlite3_mutex_methods'xMutexHeld p = plusPtr p 28
p'sqlite3_mutex_methods'xMutexHeld :: Ptr (C'sqlite3_mutex_methods) -> Ptr (FunPtr (Ptr C'sqlite3_mutex -> IO CInt))
p'sqlite3_mutex_methods'xMutexNotheld p = plusPtr p 32
p'sqlite3_mutex_methods'xMutexNotheld :: Ptr (C'sqlite3_mutex_methods) -> Ptr (FunPtr (Ptr C'sqlite3_mutex -> IO CInt))
instance Storable C'sqlite3_mutex_methods where
sizeOf _ = 36
alignment _ = 4
peek p = do
v0 <- peekByteOff p 0
v1 <- peekByteOff p 4
v2 <- peekByteOff p 8
v3 <- peekByteOff p 12
v4 <- peekByteOff p 16
v5 <- peekByteOff p 20
v6 <- peekByteOff p 24
v7 <- peekByteOff p 28
v8 <- peekByteOff p 32
return $ C'sqlite3_mutex_methods v0 v1 v2 v3 v4 v5 v6 v7 v8
poke p (C'sqlite3_mutex_methods v0 v1 v2 v3 v4 v5 v6 v7 v8) = do
pokeByteOff p 0 v0
pokeByteOff p 4 v1
pokeByteOff p 8 v2
pokeByteOff p 12 v3
pokeByteOff p 16 v4
pokeByteOff p 20 v5
pokeByteOff p 24 v6
pokeByteOff p 28 v7
pokeByteOff p 32 v8
return ()
data C'sqlite3_pcache = C'sqlite3_pcache
data C'sqlite3_pcache_page = C'sqlite3_pcache_page{
c'sqlite3_pcache_page'pBuf :: Ptr (),
c'sqlite3_pcache_page'pExtra :: Ptr ()
} deriving (Eq,Show)
p'sqlite3_pcache_page'pBuf p = plusPtr p 0
p'sqlite3_pcache_page'pBuf :: Ptr (C'sqlite3_pcache_page) -> Ptr (Ptr ())
p'sqlite3_pcache_page'pExtra p = plusPtr p 4
p'sqlite3_pcache_page'pExtra :: Ptr (C'sqlite3_pcache_page) -> Ptr (Ptr ())
instance Storable C'sqlite3_pcache_page where
sizeOf _ = 8
alignment _ = 4
peek p = do
v0 <- peekByteOff p 0
v1 <- peekByteOff p 4
return $ C'sqlite3_pcache_page v0 v1
poke p (C'sqlite3_pcache_page v0 v1) = do
pokeByteOff p 0 v0
pokeByteOff p 4 v1
return ()
foreign import ccall "&sqlite3_temp_directory" p'sqlite3_temp_directory
:: Ptr (CString)
type C'sqlite3_syscall_ptr = FunPtr (IO ())
foreign import ccall "wrapper" mk'sqlite3_syscall_ptr
:: (IO ()) -> IO C'sqlite3_syscall_ptr
foreign import ccall "dynamic" mK'sqlite3_syscall_ptr
:: C'sqlite3_syscall_ptr -> (IO ())
data C'sqlite3_vfs = C'sqlite3_vfs{
c'sqlite3_vfs'iVersion :: CInt,
c'sqlite3_vfs'szOsFile :: CInt,
c'sqlite3_vfs'mxPathname :: CInt,
c'sqlite3_vfs'pNext :: Ptr C'sqlite3_vfs,
c'sqlite3_vfs'zName :: CString,
c'sqlite3_vfs'pAppData :: Ptr (),
c'sqlite3_vfs'xOpen :: FunPtr (Ptr C'sqlite3_vfs -> CString -> Ptr C'sqlite3_file -> CInt -> Ptr CInt -> IO CInt),
c'sqlite3_vfs'xDelete :: FunPtr (Ptr C'sqlite3_vfs -> CString -> CInt -> IO CInt),
c'sqlite3_vfs'xAccess :: FunPtr (Ptr C'sqlite3_vfs -> CString -> CInt -> Ptr CInt -> IO CInt),
c'sqlite3_vfs'xFullPathname :: FunPtr (Ptr C'sqlite3_vfs -> CString -> CInt -> CString -> IO CInt),
c'sqlite3_vfs'xDlOpen :: FunPtr (Ptr C'sqlite3_vfs -> CString -> IO (Ptr ())),
c'sqlite3_vfs'xDlError :: FunPtr (Ptr C'sqlite3_vfs -> CInt -> CString -> IO ()),
c'sqlite3_vfs'xDlSym :: FunPtr (Ptr C'sqlite3_vfs -> Ptr () -> CString -> IO (FunPtr (IO ()))),
c'sqlite3_vfs'xDlClose :: FunPtr (Ptr C'sqlite3_vfs -> Ptr () -> IO ()),
c'sqlite3_vfs'xRandomness :: FunPtr (Ptr C'sqlite3_vfs -> CInt -> CString -> IO CInt),
c'sqlite3_vfs'xSleep :: FunPtr (Ptr C'sqlite3_vfs -> CInt -> IO CInt),
c'sqlite3_vfs'xCurrentTime :: FunPtr (Ptr C'sqlite3_vfs -> Ptr CDouble -> IO CInt),
c'sqlite3_vfs'xGetLastError :: FunPtr (Ptr C'sqlite3_vfs -> CInt -> CString -> IO CInt),
c'sqlite3_vfs'xCurrentTimeInt64 :: FunPtr (Ptr C'sqlite3_vfs -> Ptr C'sqlite3_int64 -> IO CInt),
c'sqlite3_vfs'xSetSystemCall :: FunPtr (Ptr C'sqlite3_vfs -> CString -> C'sqlite3_syscall_ptr -> IO CInt),
c'sqlite3_vfs'xGetSystemCall :: FunPtr (Ptr C'sqlite3_vfs -> CString -> IO C'sqlite3_syscall_ptr),
c'sqlite3_vfs'xNextSystemCall :: FunPtr (Ptr C'sqlite3_vfs -> CString -> IO CString)
} deriving (Eq,Show)
p'sqlite3_vfs'iVersion p = plusPtr p 0
p'sqlite3_vfs'iVersion :: Ptr (C'sqlite3_vfs) -> Ptr (CInt)
p'sqlite3_vfs'szOsFile p = plusPtr p 4
p'sqlite3_vfs'szOsFile :: Ptr (C'sqlite3_vfs) -> Ptr (CInt)
p'sqlite3_vfs'mxPathname p = plusPtr p 8
p'sqlite3_vfs'mxPathname :: Ptr (C'sqlite3_vfs) -> Ptr (CInt)
p'sqlite3_vfs'pNext p = plusPtr p 12
p'sqlite3_vfs'pNext :: Ptr (C'sqlite3_vfs) -> Ptr (Ptr C'sqlite3_vfs)
p'sqlite3_vfs'zName p = plusPtr p 16
p'sqlite3_vfs'zName :: Ptr (C'sqlite3_vfs) -> Ptr (CString)
p'sqlite3_vfs'pAppData p = plusPtr p 20
p'sqlite3_vfs'pAppData :: Ptr (C'sqlite3_vfs) -> Ptr (Ptr ())
p'sqlite3_vfs'xOpen p = plusPtr p 24
p'sqlite3_vfs'xOpen :: Ptr (C'sqlite3_vfs) -> Ptr (FunPtr (Ptr C'sqlite3_vfs -> CString -> Ptr C'sqlite3_file -> CInt -> Ptr CInt -> IO CInt))
p'sqlite3_vfs'xDelete p = plusPtr p 28
p'sqlite3_vfs'xDelete :: Ptr (C'sqlite3_vfs) -> Ptr (FunPtr (Ptr C'sqlite3_vfs -> CString -> CInt -> IO CInt))
p'sqlite3_vfs'xAccess p = plusPtr p 32
p'sqlite3_vfs'xAccess :: Ptr (C'sqlite3_vfs) -> Ptr (FunPtr (Ptr C'sqlite3_vfs -> CString -> CInt -> Ptr CInt -> IO CInt))
p'sqlite3_vfs'xFullPathname p = plusPtr p 36
p'sqlite3_vfs'xFullPathname :: Ptr (C'sqlite3_vfs) -> Ptr (FunPtr (Ptr C'sqlite3_vfs -> CString -> CInt -> CString -> IO CInt))
p'sqlite3_vfs'xDlOpen p = plusPtr p 40
p'sqlite3_vfs'xDlOpen :: Ptr (C'sqlite3_vfs) -> Ptr (FunPtr (Ptr C'sqlite3_vfs -> CString -> IO (Ptr ())))
p'sqlite3_vfs'xDlError p = plusPtr p 44
p'sqlite3_vfs'xDlError :: Ptr (C'sqlite3_vfs) -> Ptr (FunPtr (Ptr C'sqlite3_vfs -> CInt -> CString -> IO ()))
p'sqlite3_vfs'xDlSym p = plusPtr p 48
p'sqlite3_vfs'xDlSym :: Ptr (C'sqlite3_vfs) -> Ptr (FunPtr (Ptr C'sqlite3_vfs -> Ptr () -> CString -> IO (FunPtr (IO ()))))
p'sqlite3_vfs'xDlClose p = plusPtr p 52
p'sqlite3_vfs'xDlClose :: Ptr (C'sqlite3_vfs) -> Ptr (FunPtr (Ptr C'sqlite3_vfs -> Ptr () -> IO ()))
p'sqlite3_vfs'xRandomness p = plusPtr p 56
p'sqlite3_vfs'xRandomness :: Ptr (C'sqlite3_vfs) -> Ptr (FunPtr (Ptr C'sqlite3_vfs -> CInt -> CString -> IO CInt))
p'sqlite3_vfs'xSleep p = plusPtr p 60
p'sqlite3_vfs'xSleep :: Ptr (C'sqlite3_vfs) -> Ptr (FunPtr (Ptr C'sqlite3_vfs -> CInt -> IO CInt))
p'sqlite3_vfs'xCurrentTime p = plusPtr p 64
p'sqlite3_vfs'xCurrentTime :: Ptr (C'sqlite3_vfs) -> Ptr (FunPtr (Ptr C'sqlite3_vfs -> Ptr CDouble -> IO CInt))
p'sqlite3_vfs'xGetLastError p = plusPtr p 68
p'sqlite3_vfs'xGetLastError :: Ptr (C'sqlite3_vfs) -> Ptr (FunPtr (Ptr C'sqlite3_vfs -> CInt -> CString -> IO CInt))
p'sqlite3_vfs'xCurrentTimeInt64 p = plusPtr p 72
p'sqlite3_vfs'xCurrentTimeInt64 :: Ptr (C'sqlite3_vfs) -> Ptr (FunPtr (Ptr C'sqlite3_vfs -> Ptr C'sqlite3_int64 -> IO CInt))
p'sqlite3_vfs'xSetSystemCall p = plusPtr p 76
p'sqlite3_vfs'xSetSystemCall :: Ptr (C'sqlite3_vfs) -> Ptr (FunPtr (Ptr C'sqlite3_vfs -> CString -> C'sqlite3_syscall_ptr -> IO CInt))
p'sqlite3_vfs'xGetSystemCall p = plusPtr p 80
p'sqlite3_vfs'xGetSystemCall :: Ptr (C'sqlite3_vfs) -> Ptr (FunPtr (Ptr C'sqlite3_vfs -> CString -> IO C'sqlite3_syscall_ptr))
p'sqlite3_vfs'xNextSystemCall p = plusPtr p 84
p'sqlite3_vfs'xNextSystemCall :: Ptr (C'sqlite3_vfs) -> Ptr (FunPtr (Ptr C'sqlite3_vfs -> CString -> IO CString))
instance Storable C'sqlite3_vfs where
sizeOf _ = 88
alignment _ = 4
peek p = do
v0 <- peekByteOff p 0
v1 <- peekByteOff p 4
v2 <- peekByteOff p 8
v3 <- peekByteOff p 12
v4 <- peekByteOff p 16
v5 <- peekByteOff p 20
v6 <- peekByteOff p 24
v7 <- peekByteOff p 28
v8 <- peekByteOff p 32
v9 <- peekByteOff p 36
v10 <- peekByteOff p 40
v11 <- peekByteOff p 44
v12 <- peekByteOff p 48
v13 <- peekByteOff p 52
v14 <- peekByteOff p 56
v15 <- peekByteOff p 60
v16 <- peekByteOff p 64
v17 <- peekByteOff p 68
v18 <- peekByteOff p 72
v19 <- peekByteOff p 76
v20 <- peekByteOff p 80
v21 <- peekByteOff p 84
return $ C'sqlite3_vfs v0 v1 v2 v3 v4 v5 v6 v7 v8 v9 v10 v11 v12 v13 v14 v15 v16 v17 v18 v19 v20 v21
poke p (C'sqlite3_vfs v0 v1 v2 v3 v4 v5 v6 v7 v8 v9 v10 v11 v12 v13 v14 v15 v16 v17 v18 v19 v20 v21) = do
pokeByteOff p 0 v0
pokeByteOff p 4 v1
pokeByteOff p 8 v2
pokeByteOff p 12 v3
pokeByteOff p 16 v4
pokeByteOff p 20 v5
pokeByteOff p 24 v6
pokeByteOff p 28 v7
pokeByteOff p 32 v8
pokeByteOff p 36 v9
pokeByteOff p 40 v10
pokeByteOff p 44 v11
pokeByteOff p 48 v12
pokeByteOff p 52 v13
pokeByteOff p 56 v14
pokeByteOff p 60 v15
pokeByteOff p 64 v16
pokeByteOff p 68 v17
pokeByteOff p 72 v18
pokeByteOff p 76 v19
pokeByteOff p 80 v20
pokeByteOff p 84 v21
return ()
data C'sqlite3_vtab = C'sqlite3_vtab{
c'sqlite3_vtab'pModule :: Ptr C'sqlite3_module,
c'sqlite3_vtab'zErrMsg :: CString
} deriving (Eq,Show)
p'sqlite3_vtab'pModule p = plusPtr p 0
p'sqlite3_vtab'pModule :: Ptr (C'sqlite3_vtab) -> Ptr (Ptr C'sqlite3_module)
p'sqlite3_vtab'zErrMsg p = plusPtr p 8
p'sqlite3_vtab'zErrMsg :: Ptr (C'sqlite3_vtab) -> Ptr (CString)
instance Storable C'sqlite3_vtab where
sizeOf _ = 12
alignment _ = 4
peek p = do
v0 <- peekByteOff p 0
v1 <- peekByteOff p 8
return $ C'sqlite3_vtab v0 v1
poke p (C'sqlite3_vtab v0 v1) = do
pokeByteOff p 0 v0
pokeByteOff p 8 v1
return ()
foreign import ccall "sqlite3_aggregate_context" c'sqlite3_aggregate_context
:: Ptr C'sqlite3_context -> CInt -> IO (Ptr ())
foreign import ccall "&sqlite3_aggregate_context" p'sqlite3_aggregate_context
:: FunPtr (Ptr C'sqlite3_context -> CInt -> IO (Ptr ()))
foreign import ccall "sqlite3_auto_extension" c'sqlite3_auto_extension
:: FunPtr (IO ()) -> IO CInt
foreign import ccall "&sqlite3_auto_extension" p'sqlite3_auto_extension
:: FunPtr (FunPtr (IO ()) -> IO CInt)
foreign import ccall "sqlite3_bind_parameter_count" c'sqlite3_bind_parameter_count
:: Ptr C'sqlite3_stmt -> IO CInt
foreign import ccall "&sqlite3_bind_parameter_count" p'sqlite3_bind_parameter_count
:: FunPtr (Ptr C'sqlite3_stmt -> IO CInt)
foreign import ccall "sqlite3_bind_parameter_index" c'sqlite3_bind_parameter_index
:: Ptr C'sqlite3_stmt -> CString -> IO CInt
foreign import ccall "&sqlite3_bind_parameter_index" p'sqlite3_bind_parameter_index
:: FunPtr (Ptr C'sqlite3_stmt -> CString -> IO CInt)
foreign import ccall "sqlite3_bind_parameter_name" c'sqlite3_bind_parameter_name
:: Ptr C'sqlite3_stmt -> CInt -> IO CString
foreign import ccall "&sqlite3_bind_parameter_name" p'sqlite3_bind_parameter_name
:: FunPtr (Ptr C'sqlite3_stmt -> CInt -> IO CString)
foreign import ccall "sqlite3_blob_bytes" c'sqlite3_blob_bytes
:: Ptr C'sqlite3_blob -> IO CInt
foreign import ccall "&sqlite3_blob_bytes" p'sqlite3_blob_bytes
:: FunPtr (Ptr C'sqlite3_blob -> IO CInt)
foreign import ccall "sqlite3_blob_close" c'sqlite3_blob_close
:: Ptr C'sqlite3_blob -> IO CInt
foreign import ccall "&sqlite3_blob_close" p'sqlite3_blob_close
:: FunPtr (Ptr C'sqlite3_blob -> IO CInt)
foreign import ccall "sqlite3_blob_open" c'sqlite3_blob_open
:: Ptr C'sqlite3 -> CString -> CString -> CString -> C'sqlite3_int64 -> CInt -> Ptr (Ptr C'sqlite3_blob) -> IO CInt
foreign import ccall "&sqlite3_blob_open" p'sqlite3_blob_open
:: FunPtr (Ptr C'sqlite3 -> CString -> CString -> CString -> C'sqlite3_int64 -> CInt -> Ptr (Ptr C'sqlite3_blob) -> IO CInt)
foreign import ccall "sqlite3_blob_read" c'sqlite3_blob_read
:: Ptr C'sqlite3_blob -> Ptr () -> CInt -> CInt -> IO CInt
foreign import ccall "&sqlite3_blob_read" p'sqlite3_blob_read
:: FunPtr (Ptr C'sqlite3_blob -> Ptr () -> CInt -> CInt -> IO CInt)
foreign import ccall "sqlite3_blob_reopen" c'sqlite3_blob_reopen
:: Ptr C'sqlite3_blob -> C'sqlite3_int64 -> IO CInt
foreign import ccall "&sqlite3_blob_reopen" p'sqlite3_blob_reopen
:: FunPtr (Ptr C'sqlite3_blob -> C'sqlite3_int64 -> IO CInt)
foreign import ccall "sqlite3_blob_write" c'sqlite3_blob_write
:: Ptr C'sqlite3_blob -> Ptr () -> CInt -> CInt -> IO CInt
foreign import ccall "&sqlite3_blob_write" p'sqlite3_blob_write
:: FunPtr (Ptr C'sqlite3_blob -> Ptr () -> CInt -> CInt -> IO CInt)
foreign import ccall "sqlite3_busy_handler" c'sqlite3_busy_handler
:: Ptr C'sqlite3 -> FunPtr (Ptr () -> CInt -> IO CInt) -> Ptr () -> IO CInt
foreign import ccall "&sqlite3_busy_handler" p'sqlite3_busy_handler
:: FunPtr (Ptr C'sqlite3 -> FunPtr (Ptr () -> CInt -> IO CInt) -> Ptr () -> IO CInt)
foreign import ccall "sqlite3_busy_timeout" c'sqlite3_busy_timeout
:: Ptr C'sqlite3 -> CInt -> IO CInt
foreign import ccall "&sqlite3_busy_timeout" p'sqlite3_busy_timeout
:: FunPtr (Ptr C'sqlite3 -> CInt -> IO CInt)
foreign import ccall "sqlite3_changes" c'sqlite3_changes
:: Ptr C'sqlite3 -> IO CInt
foreign import ccall "&sqlite3_changes" p'sqlite3_changes
:: FunPtr (Ptr C'sqlite3 -> IO CInt)
foreign import ccall "sqlite3_clear_bindings" c'sqlite3_clear_bindings
:: Ptr C'sqlite3_stmt -> IO CInt
foreign import ccall "&sqlite3_clear_bindings" p'sqlite3_clear_bindings
:: FunPtr (Ptr C'sqlite3_stmt -> IO CInt)
foreign import ccall "sqlite3_column_count" c'sqlite3_column_count
:: Ptr C'sqlite3_stmt -> IO CInt
foreign import ccall "&sqlite3_column_count" p'sqlite3_column_count
:: FunPtr (Ptr C'sqlite3_stmt -> IO CInt)
foreign import ccall "sqlite3_context_db_handle" c'sqlite3_context_db_handle
:: Ptr C'sqlite3_context -> IO (Ptr C'sqlite3)
foreign import ccall "&sqlite3_context_db_handle" p'sqlite3_context_db_handle
:: FunPtr (Ptr C'sqlite3_context -> IO (Ptr C'sqlite3))
foreign import ccall "sqlite3_data_count" c'sqlite3_data_count
:: Ptr C'sqlite3_stmt -> IO CInt
foreign import ccall "&sqlite3_data_count" p'sqlite3_data_count
:: FunPtr (Ptr C'sqlite3_stmt -> IO CInt)
foreign import ccall "sqlite3_db_filename" c'sqlite3_db_filename
:: Ptr C'sqlite3 -> CString -> IO CString
foreign import ccall "&sqlite3_db_filename" p'sqlite3_db_filename
:: FunPtr (Ptr C'sqlite3 -> CString -> IO CString)
foreign import ccall "sqlite3_db_handle" c'sqlite3_db_handle
:: Ptr C'sqlite3_stmt -> IO (Ptr C'sqlite3)
foreign import ccall "&sqlite3_db_handle" p'sqlite3_db_handle
:: FunPtr (Ptr C'sqlite3_stmt -> IO (Ptr C'sqlite3))
foreign import ccall "sqlite3_db_mutex" c'sqlite3_db_mutex
:: Ptr C'sqlite3 -> IO (Ptr C'sqlite3_mutex)
foreign import ccall "&sqlite3_db_mutex" p'sqlite3_db_mutex
:: FunPtr (Ptr C'sqlite3 -> IO (Ptr C'sqlite3_mutex))
foreign import ccall "sqlite3_db_readonly" c'sqlite3_db_readonly
:: Ptr C'sqlite3 -> CString -> IO CInt
foreign import ccall "&sqlite3_db_readonly" p'sqlite3_db_readonly
:: FunPtr (Ptr C'sqlite3 -> CString -> IO CInt)
foreign import ccall "sqlite3_db_release_memory" c'sqlite3_db_release_memory
:: Ptr C'sqlite3 -> IO CInt
foreign import ccall "&sqlite3_db_release_memory" p'sqlite3_db_release_memory
:: FunPtr (Ptr C'sqlite3 -> IO CInt)
foreign import ccall "sqlite3_db_status" c'sqlite3_db_status
:: Ptr C'sqlite3 -> CInt -> Ptr CInt -> Ptr CInt -> CInt -> IO CInt
foreign import ccall "&sqlite3_db_status" p'sqlite3_db_status
:: FunPtr (Ptr C'sqlite3 -> CInt -> Ptr CInt -> Ptr CInt -> CInt -> IO CInt)
foreign import ccall "sqlite3_declare_vtab" c'sqlite3_declare_vtab
:: Ptr C'sqlite3 -> CString -> IO CInt
foreign import ccall "&sqlite3_declare_vtab" p'sqlite3_declare_vtab
:: FunPtr (Ptr C'sqlite3 -> CString -> IO CInt)
foreign import ccall "sqlite3_enable_load_extension" c'sqlite3_enable_load_extension
:: Ptr C'sqlite3 -> CInt -> IO CInt
foreign import ccall "&sqlite3_enable_load_extension" p'sqlite3_enable_load_extension
:: FunPtr (Ptr C'sqlite3 -> CInt -> IO CInt)
foreign import ccall "sqlite3_enable_shared_cache" c'sqlite3_enable_shared_cache
:: CInt -> IO CInt
foreign import ccall "&sqlite3_enable_shared_cache" p'sqlite3_enable_shared_cache
:: FunPtr (CInt -> IO CInt)
foreign import ccall "sqlite3_exec" c'sqlite3_exec
:: Ptr C'sqlite3 -> CString -> FunPtr (Ptr () -> CInt -> Ptr CString -> Ptr CString -> IO CInt) -> Ptr () -> Ptr CString -> IO CInt
foreign import ccall "&sqlite3_exec" p'sqlite3_exec
:: FunPtr (Ptr C'sqlite3 -> CString -> FunPtr (Ptr () -> CInt -> Ptr CString -> Ptr CString -> IO CInt) -> Ptr () -> Ptr CString -> IO CInt)
foreign import ccall "sqlite3_extended_result_codes" c'sqlite3_extended_result_codes
:: Ptr C'sqlite3 -> CInt -> IO CInt
foreign import ccall "&sqlite3_extended_result_codes" p'sqlite3_extended_result_codes
:: FunPtr (Ptr C'sqlite3 -> CInt -> IO CInt)
foreign import ccall "sqlite3_file_control" c'sqlite3_file_control
:: Ptr C'sqlite3 -> CString -> CInt -> Ptr () -> IO CInt
foreign import ccall "&sqlite3_file_control" p'sqlite3_file_control
:: FunPtr (Ptr C'sqlite3 -> CString -> CInt -> Ptr () -> IO CInt)
foreign import ccall "sqlite3_finalize" c'sqlite3_finalize
:: Ptr C'sqlite3_stmt -> IO CInt
foreign import ccall "&sqlite3_finalize" p'sqlite3_finalize
:: FunPtr (Ptr C'sqlite3_stmt -> IO CInt)
foreign import ccall "sqlite3_interrupt" c'sqlite3_interrupt
:: Ptr C'sqlite3 -> IO ()
foreign import ccall "&sqlite3_interrupt" p'sqlite3_interrupt
:: FunPtr (Ptr C'sqlite3 -> IO ())
foreign import ccall "sqlite3_last_insert_rowid" c'sqlite3_last_insert_rowid
:: Ptr C'sqlite3 -> IO C'sqlite3_int64
foreign import ccall "&sqlite3_last_insert_rowid" p'sqlite3_last_insert_rowid
:: FunPtr (Ptr C'sqlite3 -> IO C'sqlite3_int64)
foreign import ccall "sqlite3_limit" c'sqlite3_limit
:: Ptr C'sqlite3 -> CInt -> CInt -> IO CInt
foreign import ccall "&sqlite3_limit" p'sqlite3_limit
:: FunPtr (Ptr C'sqlite3 -> CInt -> CInt -> IO CInt)
foreign import ccall "sqlite3_load_extension" c'sqlite3_load_extension
:: Ptr C'sqlite3 -> CString -> CString -> Ptr CString -> IO CInt
foreign import ccall "&sqlite3_load_extension" p'sqlite3_load_extension
:: FunPtr (Ptr C'sqlite3 -> CString -> CString -> Ptr CString -> IO CInt)
foreign import ccall "sqlite3_next_stmt" c'sqlite3_next_stmt
:: Ptr C'sqlite3 -> Ptr C'sqlite3_stmt -> IO (Ptr C'sqlite3_stmt)
foreign import ccall "&sqlite3_next_stmt" p'sqlite3_next_stmt
:: FunPtr (Ptr C'sqlite3 -> Ptr C'sqlite3_stmt -> IO (Ptr C'sqlite3_stmt))
foreign import ccall "sqlite3_overload_function" c'sqlite3_overload_function
:: Ptr C'sqlite3 -> CString -> CInt -> IO CInt
foreign import ccall "&sqlite3_overload_function" p'sqlite3_overload_function
:: FunPtr (Ptr C'sqlite3 -> CString -> CInt -> IO CInt)
foreign import ccall "sqlite3_progress_handler" c'sqlite3_progress_handler
:: Ptr C'sqlite3 -> CInt -> FunPtr (Ptr () -> IO CInt) -> Ptr () -> IO ()
foreign import ccall "&sqlite3_progress_handler" p'sqlite3_progress_handler
:: FunPtr (Ptr C'sqlite3 -> CInt -> FunPtr (Ptr () -> IO CInt) -> Ptr () -> IO ())
foreign import ccall "sqlite3_randomness" c'sqlite3_randomness
:: CInt -> Ptr () -> IO ()
foreign import ccall "&sqlite3_randomness" p'sqlite3_randomness
:: FunPtr (CInt -> Ptr () -> IO ())
foreign import ccall "sqlite3_release_memory" c'sqlite3_release_memory
:: CInt -> IO CInt
foreign import ccall "&sqlite3_release_memory" p'sqlite3_release_memory
:: FunPtr (CInt -> IO CInt)
foreign import ccall "sqlite3_reset" c'sqlite3_reset
:: Ptr C'sqlite3_stmt -> IO CInt
foreign import ccall "&sqlite3_reset" p'sqlite3_reset
:: FunPtr (Ptr C'sqlite3_stmt -> IO CInt)
foreign import ccall "sqlite3_reset_auto_extension" c'sqlite3_reset_auto_extension
:: IO ()
foreign import ccall "&sqlite3_reset_auto_extension" p'sqlite3_reset_auto_extension
:: FunPtr (IO ())
foreign import ccall "sqlite3_set_authorizer" c'sqlite3_set_authorizer
:: Ptr C'sqlite3 -> FunPtr (Ptr () -> CInt -> CString -> CString -> CString -> CString -> IO CInt) -> Ptr () -> IO CInt
foreign import ccall "&sqlite3_set_authorizer" p'sqlite3_set_authorizer
:: FunPtr (Ptr C'sqlite3 -> FunPtr (Ptr () -> CInt -> CString -> CString -> CString -> CString -> IO CInt) -> Ptr () -> IO CInt)
foreign import ccall "sqlite3_sleep" c'sqlite3_sleep
:: CInt -> IO CInt
foreign import ccall "&sqlite3_sleep" p'sqlite3_sleep
:: FunPtr (CInt -> IO CInt)
foreign import ccall "sqlite3_soft_heap_limit64" c'sqlite3_soft_heap_limit64
:: C'sqlite3_int64 -> IO C'sqlite3_int64
foreign import ccall "&sqlite3_soft_heap_limit64" p'sqlite3_soft_heap_limit64
:: FunPtr (C'sqlite3_int64 -> IO C'sqlite3_int64)
foreign import ccall "sqlite3_sql" c'sqlite3_sql
:: Ptr C'sqlite3_stmt -> IO CString
foreign import ccall "&sqlite3_sql" p'sqlite3_sql
:: FunPtr (Ptr C'sqlite3_stmt -> IO CString)
foreign import ccall "sqlite3_status" c'sqlite3_status
:: CInt -> Ptr CInt -> Ptr CInt -> CInt -> IO CInt
foreign import ccall "&sqlite3_status" p'sqlite3_status
:: FunPtr (CInt -> Ptr CInt -> Ptr CInt -> CInt -> IO CInt)
foreign import ccall "sqlite3_step" c'sqlite3_step
:: Ptr C'sqlite3_stmt -> IO CInt
foreign import ccall "&sqlite3_step" p'sqlite3_step
:: FunPtr (Ptr C'sqlite3_stmt -> IO CInt)
foreign import ccall "sqlite3_stmt_busy" c'sqlite3_stmt_busy
:: Ptr C'sqlite3_stmt -> IO CInt
foreign import ccall "&sqlite3_stmt_busy" p'sqlite3_stmt_busy
:: FunPtr (Ptr C'sqlite3_stmt -> IO CInt)
foreign import ccall "sqlite3_stmt_readonly" c'sqlite3_stmt_readonly
:: Ptr C'sqlite3_stmt -> IO CInt
foreign import ccall "&sqlite3_stmt_readonly" p'sqlite3_stmt_readonly
:: FunPtr (Ptr C'sqlite3_stmt -> IO CInt)
foreign import ccall "sqlite3_stmt_status" c'sqlite3_stmt_status
:: Ptr C'sqlite3_stmt -> CInt -> CInt -> IO CInt
foreign import ccall "&sqlite3_stmt_status" p'sqlite3_stmt_status
:: FunPtr (Ptr C'sqlite3_stmt -> CInt -> CInt -> IO CInt)
foreign import ccall "sqlite3_strglob" c'sqlite3_strglob
:: CString -> CString -> IO CInt
foreign import ccall "&sqlite3_strglob" p'sqlite3_strglob
:: FunPtr (CString -> CString -> IO CInt)
foreign import ccall "sqlite3_table_column_metadata" c'sqlite3_table_column_metadata
:: Ptr C'sqlite3 -> CString -> CString -> CString -> Ptr CString -> Ptr CString -> Ptr CInt -> Ptr CInt -> Ptr CInt -> IO CInt
foreign import ccall "&sqlite3_table_column_metadata" p'sqlite3_table_column_metadata
:: FunPtr (Ptr C'sqlite3 -> CString -> CString -> CString -> Ptr CString -> Ptr CString -> Ptr CInt -> Ptr CInt -> Ptr CInt -> IO CInt)
foreign import ccall "sqlite3_threadsafe" c'sqlite3_threadsafe
:: IO CInt
foreign import ccall "&sqlite3_threadsafe" p'sqlite3_threadsafe
:: FunPtr (IO CInt)
foreign import ccall "sqlite3_total_changes" c'sqlite3_total_changes
:: Ptr C'sqlite3 -> IO CInt
foreign import ccall "&sqlite3_total_changes" p'sqlite3_total_changes
:: FunPtr (Ptr C'sqlite3 -> IO CInt)
foreign import ccall "sqlite3_unlock_notify" c'sqlite3_unlock_notify
:: Ptr C'sqlite3 -> FunPtr (Ptr (Ptr ()) -> CInt -> IO ()) -> Ptr () -> IO CInt
foreign import ccall "&sqlite3_unlock_notify" p'sqlite3_unlock_notify
:: FunPtr (Ptr C'sqlite3 -> FunPtr (Ptr (Ptr ()) -> CInt -> IO ()) -> Ptr () -> IO CInt)
foreign import ccall "sqlite3_update_hook" c'sqlite3_update_hook
:: Ptr C'sqlite3 -> FunPtr (Ptr () -> CInt -> CString -> CString -> C'sqlite3_int64 -> IO ()) -> Ptr () -> IO (Ptr ())
foreign import ccall "&sqlite3_update_hook" p'sqlite3_update_hook
:: FunPtr (Ptr C'sqlite3 -> FunPtr (Ptr () -> CInt -> CString -> CString -> C'sqlite3_int64 -> IO ()) -> Ptr () -> IO (Ptr ()))
foreign import ccall "sqlite3_user_data" c'sqlite3_user_data
:: Ptr C'sqlite3_context -> IO (Ptr ())
foreign import ccall "&sqlite3_user_data" p'sqlite3_user_data
:: FunPtr (Ptr C'sqlite3_context -> IO (Ptr ()))
foreign import ccall "sqlite3_vtab_on_conflict" c'sqlite3_vtab_on_conflict
:: Ptr C'sqlite3 -> IO CInt
foreign import ccall "&sqlite3_vtab_on_conflict" p'sqlite3_vtab_on_conflict
:: FunPtr (Ptr C'sqlite3 -> IO CInt)
foreign import ccall "sqlite3_wal_autocheckpoint" c'sqlite3_wal_autocheckpoint
:: Ptr C'sqlite3 -> CInt -> IO CInt
foreign import ccall "&sqlite3_wal_autocheckpoint" p'sqlite3_wal_autocheckpoint
:: FunPtr (Ptr C'sqlite3 -> CInt -> IO CInt)
foreign import ccall "sqlite3_wal_checkpoint" c'sqlite3_wal_checkpoint
:: Ptr C'sqlite3 -> CString -> IO CInt
foreign import ccall "&sqlite3_wal_checkpoint" p'sqlite3_wal_checkpoint
:: FunPtr (Ptr C'sqlite3 -> CString -> IO CInt)
foreign import ccall "sqlite3_wal_checkpoint_v2" c'sqlite3_wal_checkpoint_v2
:: Ptr C'sqlite3 -> CString -> CInt -> Ptr CInt -> Ptr CInt -> IO CInt
foreign import ccall "&sqlite3_wal_checkpoint_v2" p'sqlite3_wal_checkpoint_v2
:: FunPtr (Ptr C'sqlite3 -> CString -> CInt -> Ptr CInt -> Ptr CInt -> IO CInt)
foreign import ccall "sqlite3_wal_hook" c'sqlite3_wal_hook
:: Ptr C'sqlite3 -> FunPtr (Ptr () -> Ptr C'sqlite3 -> CString -> CInt -> IO CInt) -> Ptr () -> IO (Ptr ())
foreign import ccall "&sqlite3_wal_hook" p'sqlite3_wal_hook
:: FunPtr (Ptr C'sqlite3 -> FunPtr (Ptr () -> Ptr C'sqlite3 -> CString -> CInt -> IO CInt) -> Ptr () -> IO (Ptr ()))
c'SQLITE_OK = 0
c'SQLITE_OK :: (Num a) => a
c'SQLITE_ERROR = 1
c'SQLITE_ERROR :: (Num a) => a
c'SQLITE_INTERNAL = 2
c'SQLITE_INTERNAL :: (Num a) => a
c'SQLITE_PERM = 3
c'SQLITE_PERM :: (Num a) => a
c'SQLITE_ABORT = 4
c'SQLITE_ABORT :: (Num a) => a
c'SQLITE_BUSY = 5
c'SQLITE_BUSY :: (Num a) => a
c'SQLITE_LOCKED = 6
c'SQLITE_LOCKED :: (Num a) => a
c'SQLITE_NOMEM = 7
c'SQLITE_NOMEM :: (Num a) => a
c'SQLITE_READONLY = 8
c'SQLITE_READONLY :: (Num a) => a
c'SQLITE_INTERRUPT = 9
c'SQLITE_INTERRUPT :: (Num a) => a
c'SQLITE_IOERR = 10
c'SQLITE_IOERR :: (Num a) => a
c'SQLITE_CORRUPT = 11
c'SQLITE_CORRUPT :: (Num a) => a
c'SQLITE_NOTFOUND = 12
c'SQLITE_NOTFOUND :: (Num a) => a
c'SQLITE_FULL = 13
c'SQLITE_FULL :: (Num a) => a
c'SQLITE_CANTOPEN = 14
c'SQLITE_CANTOPEN :: (Num a) => a
c'SQLITE_PROTOCOL = 15
c'SQLITE_PROTOCOL :: (Num a) => a
c'SQLITE_EMPTY = 16
c'SQLITE_EMPTY :: (Num a) => a
c'SQLITE_SCHEMA = 17
c'SQLITE_SCHEMA :: (Num a) => a
c'SQLITE_TOOBIG = 18
c'SQLITE_TOOBIG :: (Num a) => a
c'SQLITE_CONSTRAINT = 19
c'SQLITE_CONSTRAINT :: (Num a) => a
c'SQLITE_MISMATCH = 20
c'SQLITE_MISMATCH :: (Num a) => a
c'SQLITE_MISUSE = 21
c'SQLITE_MISUSE :: (Num a) => a
c'SQLITE_NOLFS = 22
c'SQLITE_NOLFS :: (Num a) => a
c'SQLITE_AUTH = 23
c'SQLITE_AUTH :: (Num a) => a
c'SQLITE_FORMAT = 24
c'SQLITE_FORMAT :: (Num a) => a
c'SQLITE_RANGE = 25
c'SQLITE_RANGE :: (Num a) => a
c'SQLITE_NOTADB = 26
c'SQLITE_NOTADB :: (Num a) => a
c'SQLITE_NOTICE = 27
c'SQLITE_NOTICE :: (Num a) => a
c'SQLITE_WARNING = 28
c'SQLITE_WARNING :: (Num a) => a
c'SQLITE_ROW = 100
c'SQLITE_ROW :: (Num a) => a
c'SQLITE_DONE = 101
c'SQLITE_DONE :: (Num a) => a
c'SQLITE_IOERR_READ = 266
c'SQLITE_IOERR_READ :: (Num a) => a
c'SQLITE_IOERR_SHORT_READ = 522
c'SQLITE_IOERR_SHORT_READ :: (Num a) => a
c'SQLITE_IOERR_WRITE = 778
c'SQLITE_IOERR_WRITE :: (Num a) => a
c'SQLITE_IOERR_FSYNC = 1034
c'SQLITE_IOERR_FSYNC :: (Num a) => a
c'SQLITE_IOERR_DIR_FSYNC = 1290
c'SQLITE_IOERR_DIR_FSYNC :: (Num a) => a
c'SQLITE_IOERR_TRUNCATE = 1546
c'SQLITE_IOERR_TRUNCATE :: (Num a) => a
c'SQLITE_IOERR_FSTAT = 1802
c'SQLITE_IOERR_FSTAT :: (Num a) => a
c'SQLITE_IOERR_UNLOCK = 2058
c'SQLITE_IOERR_UNLOCK :: (Num a) => a
c'SQLITE_IOERR_RDLOCK = 2314
c'SQLITE_IOERR_RDLOCK :: (Num a) => a
c'SQLITE_IOERR_DELETE = 2570
c'SQLITE_IOERR_DELETE :: (Num a) => a
c'SQLITE_IOERR_BLOCKED = 2826
c'SQLITE_IOERR_BLOCKED :: (Num a) => a
c'SQLITE_IOERR_NOMEM = 3082
c'SQLITE_IOERR_NOMEM :: (Num a) => a
c'SQLITE_IOERR_ACCESS = 3338
c'SQLITE_IOERR_ACCESS :: (Num a) => a
c'SQLITE_IOERR_CHECKRESERVEDLOCK = 3594
c'SQLITE_IOERR_CHECKRESERVEDLOCK :: (Num a) => a
c'SQLITE_IOERR_LOCK = 3850
c'SQLITE_IOERR_LOCK :: (Num a) => a
c'SQLITE_IOERR_CLOSE = 4106
c'SQLITE_IOERR_CLOSE :: (Num a) => a
c'SQLITE_IOERR_DIR_CLOSE = 4362
c'SQLITE_IOERR_DIR_CLOSE :: (Num a) => a
c'SQLITE_IOERR_SHMOPEN = 4618
c'SQLITE_IOERR_SHMOPEN :: (Num a) => a
c'SQLITE_IOERR_SHMSIZE = 4874
c'SQLITE_IOERR_SHMSIZE :: (Num a) => a
c'SQLITE_IOERR_SHMLOCK = 5130
c'SQLITE_IOERR_SHMLOCK :: (Num a) => a
c'SQLITE_IOERR_SHMMAP = 5386
c'SQLITE_IOERR_SHMMAP :: (Num a) => a
c'SQLITE_IOERR_SEEK = 5642
c'SQLITE_IOERR_SEEK :: (Num a) => a
c'SQLITE_IOERR_DELETE_NOENT = 5898
c'SQLITE_IOERR_DELETE_NOENT :: (Num a) => a
c'SQLITE_IOERR_MMAP = 6154
c'SQLITE_IOERR_MMAP :: (Num a) => a
c'SQLITE_LOCKED_SHAREDCACHE = 262
c'SQLITE_LOCKED_SHAREDCACHE :: (Num a) => a
c'SQLITE_BUSY_RECOVERY = 261
c'SQLITE_BUSY_RECOVERY :: (Num a) => a
c'SQLITE_CANTOPEN_NOTEMPDIR = 270
c'SQLITE_CANTOPEN_NOTEMPDIR :: (Num a) => a
c'SQLITE_CANTOPEN_ISDIR = 526
c'SQLITE_CANTOPEN_ISDIR :: (Num a) => a
c'SQLITE_CANTOPEN_FULLPATH = 782
c'SQLITE_CANTOPEN_FULLPATH :: (Num a) => a
c'SQLITE_CORRUPT_VTAB = 267
c'SQLITE_CORRUPT_VTAB :: (Num a) => a
c'SQLITE_READONLY_RECOVERY = 264
c'SQLITE_READONLY_RECOVERY :: (Num a) => a
c'SQLITE_READONLY_CANTLOCK = 520
c'SQLITE_READONLY_CANTLOCK :: (Num a) => a
c'SQLITE_READONLY_ROLLBACK = 776
c'SQLITE_READONLY_ROLLBACK :: (Num a) => a
c'SQLITE_ABORT_ROLLBACK = 516
c'SQLITE_ABORT_ROLLBACK :: (Num a) => a
c'SQLITE_CONSTRAINT_CHECK = 275
c'SQLITE_CONSTRAINT_CHECK :: (Num a) => a
c'SQLITE_CONSTRAINT_COMMITHOOK = 531
c'SQLITE_CONSTRAINT_COMMITHOOK :: (Num a) => a
c'SQLITE_CONSTRAINT_FOREIGNKEY = 787
c'SQLITE_CONSTRAINT_FOREIGNKEY :: (Num a) => a
c'SQLITE_CONSTRAINT_FUNCTION = 1043
c'SQLITE_CONSTRAINT_FUNCTION :: (Num a) => a
c'SQLITE_CONSTRAINT_NOTNULL = 1299
c'SQLITE_CONSTRAINT_NOTNULL :: (Num a) => a
c'SQLITE_CONSTRAINT_PRIMARYKEY = 1555
c'SQLITE_CONSTRAINT_PRIMARYKEY :: (Num a) => a
c'SQLITE_CONSTRAINT_TRIGGER = 1811
c'SQLITE_CONSTRAINT_TRIGGER :: (Num a) => a
c'SQLITE_CONSTRAINT_UNIQUE = 2067
c'SQLITE_CONSTRAINT_UNIQUE :: (Num a) => a
c'SQLITE_CONSTRAINT_VTAB = 2323
c'SQLITE_CONSTRAINT_VTAB :: (Num a) => a
c'SQLITE_NOTICE_RECOVER_WAL = 283
c'SQLITE_NOTICE_RECOVER_WAL :: (Num a) => a
c'SQLITE_NOTICE_RECOVER_ROLLBACK = 539
c'SQLITE_NOTICE_RECOVER_ROLLBACK :: (Num a) => a
c'SQLITE_ACCESS_EXISTS = 0
c'SQLITE_ACCESS_EXISTS :: (Num a) => a
c'SQLITE_ACCESS_READWRITE = 1
c'SQLITE_ACCESS_READWRITE :: (Num a) => a
c'SQLITE_ACCESS_READ = 2
c'SQLITE_ACCESS_READ :: (Num a) => a
c'SQLITE_CREATE_INDEX = 1
c'SQLITE_CREATE_INDEX :: (Num a) => a
c'SQLITE_CREATE_TABLE = 2
c'SQLITE_CREATE_TABLE :: (Num a) => a
c'SQLITE_CREATE_TEMP_INDEX = 3
c'SQLITE_CREATE_TEMP_INDEX :: (Num a) => a
c'SQLITE_CREATE_TEMP_TABLE = 4
c'SQLITE_CREATE_TEMP_TABLE :: (Num a) => a
c'SQLITE_CREATE_TEMP_TRIGGER = 5
c'SQLITE_CREATE_TEMP_TRIGGER :: (Num a) => a
c'SQLITE_CREATE_TEMP_VIEW = 6
c'SQLITE_CREATE_TEMP_VIEW :: (Num a) => a
c'SQLITE_CREATE_TRIGGER = 7
c'SQLITE_CREATE_TRIGGER :: (Num a) => a
c'SQLITE_CREATE_VIEW = 8
c'SQLITE_CREATE_VIEW :: (Num a) => a
c'SQLITE_DELETE = 9
c'SQLITE_DELETE :: (Num a) => a
c'SQLITE_DROP_INDEX = 10
c'SQLITE_DROP_INDEX :: (Num a) => a
c'SQLITE_DROP_TABLE = 11
c'SQLITE_DROP_TABLE :: (Num a) => a
c'SQLITE_DROP_TEMP_INDEX = 12
c'SQLITE_DROP_TEMP_INDEX :: (Num a) => a
c'SQLITE_DROP_TEMP_TABLE = 13
c'SQLITE_DROP_TEMP_TABLE :: (Num a) => a
c'SQLITE_DROP_TEMP_TRIGGER = 14
c'SQLITE_DROP_TEMP_TRIGGER :: (Num a) => a
c'SQLITE_DROP_TEMP_VIEW = 15
c'SQLITE_DROP_TEMP_VIEW :: (Num a) => a
c'SQLITE_DROP_TRIGGER = 16
c'SQLITE_DROP_TRIGGER :: (Num a) => a
c'SQLITE_DROP_VIEW = 17
c'SQLITE_DROP_VIEW :: (Num a) => a
c'SQLITE_INSERT = 18
c'SQLITE_INSERT :: (Num a) => a
c'SQLITE_PRAGMA = 19
c'SQLITE_PRAGMA :: (Num a) => a
c'SQLITE_READ = 20
c'SQLITE_READ :: (Num a) => a
c'SQLITE_SELECT = 21
c'SQLITE_SELECT :: (Num a) => a
c'SQLITE_TRANSACTION = 22
c'SQLITE_TRANSACTION :: (Num a) => a
c'SQLITE_UPDATE = 23
c'SQLITE_UPDATE :: (Num a) => a
c'SQLITE_ATTACH = 24
c'SQLITE_ATTACH :: (Num a) => a
c'SQLITE_DETACH = 25
c'SQLITE_DETACH :: (Num a) => a
c'SQLITE_ALTER_TABLE = 26
c'SQLITE_ALTER_TABLE :: (Num a) => a
c'SQLITE_REINDEX = 27
c'SQLITE_REINDEX :: (Num a) => a
c'SQLITE_ANALYZE = 28
c'SQLITE_ANALYZE :: (Num a) => a
c'SQLITE_CREATE_VTABLE = 29
c'SQLITE_CREATE_VTABLE :: (Num a) => a
c'SQLITE_DROP_VTABLE = 30
c'SQLITE_DROP_VTABLE :: (Num a) => a
c'SQLITE_FUNCTION = 31
c'SQLITE_FUNCTION :: (Num a) => a
c'SQLITE_SAVEPOINT = 32
c'SQLITE_SAVEPOINT :: (Num a) => a
c'SQLITE_COPY = 0
c'SQLITE_COPY :: (Num a) => a
c'SQLITE_UTF8 = 1
c'SQLITE_UTF8 :: (Num a) => a
c'SQLITE_UTF16LE = 2
c'SQLITE_UTF16LE :: (Num a) => a
c'SQLITE_UTF16BE = 3
c'SQLITE_UTF16BE :: (Num a) => a
c'SQLITE_UTF16 = 4
c'SQLITE_UTF16 :: (Num a) => a
c'SQLITE_ANY = 5
c'SQLITE_ANY :: (Num a) => a
c'SQLITE_UTF16_ALIGNED = 8
c'SQLITE_UTF16_ALIGNED :: (Num a) => a
c'SQLITE_INTEGER = 1
c'SQLITE_INTEGER :: (Num a) => a
c'SQLITE_FLOAT = 2
c'SQLITE_FLOAT :: (Num a) => a
c'SQLITE_BLOB = 4
c'SQLITE_BLOB :: (Num a) => a
c'SQLITE_NULL = 5
c'SQLITE_NULL :: (Num a) => a
c'SQLITE_TEXT = 3
c'SQLITE_TEXT :: (Num a) => a
c'SQLITE3_TEXT = 3
c'SQLITE3_TEXT :: (Num a) => a
c'SQLITE_CHECKPOINT_PASSIVE = 0
c'SQLITE_CHECKPOINT_PASSIVE :: (Num a) => a
c'SQLITE_CHECKPOINT_FULL = 1
c'SQLITE_CHECKPOINT_FULL :: (Num a) => a
c'SQLITE_CHECKPOINT_RESTART = 2
c'SQLITE_CHECKPOINT_RESTART :: (Num a) => a
c'SQLITE_CONFIG_SINGLETHREAD = 1
c'SQLITE_CONFIG_SINGLETHREAD :: (Num a) => a
c'SQLITE_CONFIG_MULTITHREAD = 2
c'SQLITE_CONFIG_MULTITHREAD :: (Num a) => a
c'SQLITE_CONFIG_SERIALIZED = 3
c'SQLITE_CONFIG_SERIALIZED :: (Num a) => a
c'SQLITE_CONFIG_MALLOC = 4
c'SQLITE_CONFIG_MALLOC :: (Num a) => a
c'SQLITE_CONFIG_GETMALLOC = 5
c'SQLITE_CONFIG_GETMALLOC :: (Num a) => a
c'SQLITE_CONFIG_SCRATCH = 6
c'SQLITE_CONFIG_SCRATCH :: (Num a) => a
c'SQLITE_CONFIG_PAGECACHE = 7
c'SQLITE_CONFIG_PAGECACHE :: (Num a) => a
c'SQLITE_CONFIG_HEAP = 8
c'SQLITE_CONFIG_HEAP :: (Num a) => a
c'SQLITE_CONFIG_MEMSTATUS = 9
c'SQLITE_CONFIG_MEMSTATUS :: (Num a) => a
c'SQLITE_CONFIG_MUTEX = 10
c'SQLITE_CONFIG_MUTEX :: (Num a) => a
c'SQLITE_CONFIG_GETMUTEX = 11
c'SQLITE_CONFIG_GETMUTEX :: (Num a) => a
c'SQLITE_CONFIG_LOOKASIDE = 13
c'SQLITE_CONFIG_LOOKASIDE :: (Num a) => a
c'SQLITE_CONFIG_PCACHE = 14
c'SQLITE_CONFIG_PCACHE :: (Num a) => a
c'SQLITE_CONFIG_GETPCACHE = 15
c'SQLITE_CONFIG_GETPCACHE :: (Num a) => a
c'SQLITE_CONFIG_LOG = 16
c'SQLITE_CONFIG_LOG :: (Num a) => a
c'SQLITE_CONFIG_URI = 17
c'SQLITE_CONFIG_URI :: (Num a) => a
c'SQLITE_CONFIG_PCACHE2 = 18
c'SQLITE_CONFIG_PCACHE2 :: (Num a) => a
c'SQLITE_CONFIG_GETPCACHE2 = 19
c'SQLITE_CONFIG_GETPCACHE2 :: (Num a) => a
c'SQLITE_CONFIG_COVERING_INDEX_SCAN = 20
c'SQLITE_CONFIG_COVERING_INDEX_SCAN :: (Num a) => a
c'SQLITE_CONFIG_SQLLOG = 21
c'SQLITE_CONFIG_SQLLOG :: (Num a) => a
c'SQLITE_CONFIG_MMAP_SIZE = 22
c'SQLITE_CONFIG_MMAP_SIZE :: (Num a) => a
c'SQLITE_DBCONFIG_LOOKASIDE = 1001
c'SQLITE_DBCONFIG_LOOKASIDE :: (Num a) => a
c'SQLITE_DBCONFIG_ENABLE_FKEY = 1002
c'SQLITE_DBCONFIG_ENABLE_FKEY :: (Num a) => a
c'SQLITE_DBCONFIG_ENABLE_TRIGGER = 1003
c'SQLITE_DBCONFIG_ENABLE_TRIGGER :: (Num a) => a
c'SQLITE_DENY = 1
c'SQLITE_DENY :: (Num a) => a
c'SQLITE_IGNORE = 2
c'SQLITE_IGNORE :: (Num a) => a
c'SQLITE_ROLLBACK = 1
c'SQLITE_ROLLBACK :: (Num a) => a
c'SQLITE_FAIL = 3
c'SQLITE_FAIL :: (Num a) => a
c'SQLITE_REPLACE = 5
c'SQLITE_REPLACE :: (Num a) => a
c'SQLITE_FCNTL_LOCKSTATE = 1
c'SQLITE_FCNTL_LOCKSTATE :: (Num a) => a
c'SQLITE_GET_LOCKPROXYFILE = 2
c'SQLITE_GET_LOCKPROXYFILE :: (Num a) => a
c'SQLITE_SET_LOCKPROXYFILE = 3
c'SQLITE_SET_LOCKPROXYFILE :: (Num a) => a
c'SQLITE_LAST_ERRNO = 4
c'SQLITE_LAST_ERRNO :: (Num a) => a
c'SQLITE_FCNTL_SIZE_HINT = 5
c'SQLITE_FCNTL_SIZE_HINT :: (Num a) => a
c'SQLITE_FCNTL_CHUNK_SIZE = 6
c'SQLITE_FCNTL_CHUNK_SIZE :: (Num a) => a
c'SQLITE_FCNTL_FILE_POINTER = 7
c'SQLITE_FCNTL_FILE_POINTER :: (Num a) => a
c'SQLITE_FCNTL_SYNC_OMITTED = 8
c'SQLITE_FCNTL_SYNC_OMITTED :: (Num a) => a
c'SQLITE_FCNTL_WIN32_AV_RETRY = 9
c'SQLITE_FCNTL_WIN32_AV_RETRY :: (Num a) => a
c'SQLITE_FCNTL_PERSIST_WAL = 10
c'SQLITE_FCNTL_PERSIST_WAL :: (Num a) => a
c'SQLITE_FCNTL_OVERWRITE = 11
c'SQLITE_FCNTL_OVERWRITE :: (Num a) => a
c'SQLITE_FCNTL_VFSNAME = 12
c'SQLITE_FCNTL_VFSNAME :: (Num a) => a
c'SQLITE_FCNTL_POWERSAFE_OVERWRITE = 13
c'SQLITE_FCNTL_POWERSAFE_OVERWRITE :: (Num a) => a
c'SQLITE_FCNTL_PRAGMA = 14
c'SQLITE_FCNTL_PRAGMA :: (Num a) => a
c'SQLITE_FCNTL_BUSYHANDLER = 15
c'SQLITE_FCNTL_BUSYHANDLER :: (Num a) => a
c'SQLITE_FCNTL_TEMPFILENAME = 16
c'SQLITE_FCNTL_TEMPFILENAME :: (Num a) => a
c'SQLITE_FCNTL_MMAP_SIZE = 18
c'SQLITE_FCNTL_MMAP_SIZE :: (Num a) => a
c'SQLITE_INDEX_CONSTRAINT_EQ = 2
c'SQLITE_INDEX_CONSTRAINT_EQ :: (Num a) => a
c'SQLITE_INDEX_CONSTRAINT_GT = 4
c'SQLITE_INDEX_CONSTRAINT_GT :: (Num a) => a
c'SQLITE_INDEX_CONSTRAINT_LE = 8
c'SQLITE_INDEX_CONSTRAINT_LE :: (Num a) => a
c'SQLITE_INDEX_CONSTRAINT_LT = 16
c'SQLITE_INDEX_CONSTRAINT_LT :: (Num a) => a
c'SQLITE_INDEX_CONSTRAINT_GE = 32
c'SQLITE_INDEX_CONSTRAINT_GE :: (Num a) => a
c'SQLITE_INDEX_CONSTRAINT_MATCH = 64
c'SQLITE_INDEX_CONSTRAINT_MATCH :: (Num a) => a
c'SQLITE_IOCAP_ATOMIC = 1
c'SQLITE_IOCAP_ATOMIC :: (Num a) => a
c'SQLITE_IOCAP_ATOMIC512 = 2
c'SQLITE_IOCAP_ATOMIC512 :: (Num a) => a
c'SQLITE_IOCAP_ATOMIC1K = 4
c'SQLITE_IOCAP_ATOMIC1K :: (Num a) => a
c'SQLITE_IOCAP_ATOMIC2K = 8
c'SQLITE_IOCAP_ATOMIC2K :: (Num a) => a
c'SQLITE_IOCAP_ATOMIC4K = 16
c'SQLITE_IOCAP_ATOMIC4K :: (Num a) => a
c'SQLITE_IOCAP_ATOMIC8K = 32
c'SQLITE_IOCAP_ATOMIC8K :: (Num a) => a
c'SQLITE_IOCAP_ATOMIC16K = 64
c'SQLITE_IOCAP_ATOMIC16K :: (Num a) => a
c'SQLITE_IOCAP_ATOMIC32K = 128
c'SQLITE_IOCAP_ATOMIC32K :: (Num a) => a
c'SQLITE_IOCAP_ATOMIC64K = 256
c'SQLITE_IOCAP_ATOMIC64K :: (Num a) => a
c'SQLITE_IOCAP_SAFE_APPEND = 512
c'SQLITE_IOCAP_SAFE_APPEND :: (Num a) => a
c'SQLITE_IOCAP_SEQUENTIAL = 1024
c'SQLITE_IOCAP_SEQUENTIAL :: (Num a) => a
c'SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN = 2048
c'SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN :: (Num a) => a
c'SQLITE_IOCAP_POWERSAFE_OVERWRITE = 4096
c'SQLITE_IOCAP_POWERSAFE_OVERWRITE :: (Num a) => a
c'SQLITE_LOCK_NONE = 0
c'SQLITE_LOCK_NONE :: (Num a) => a
c'SQLITE_LOCK_SHARED = 1
c'SQLITE_LOCK_SHARED :: (Num a) => a
c'SQLITE_LOCK_RESERVED = 2
c'SQLITE_LOCK_RESERVED :: (Num a) => a
c'SQLITE_LOCK_PENDING = 3
c'SQLITE_LOCK_PENDING :: (Num a) => a
c'SQLITE_LOCK_EXCLUSIVE = 4
c'SQLITE_LOCK_EXCLUSIVE :: (Num a) => a
c'SQLITE_MUTEX_FAST = 0
c'SQLITE_MUTEX_FAST :: (Num a) => a
c'SQLITE_MUTEX_RECURSIVE = 1
c'SQLITE_MUTEX_RECURSIVE :: (Num a) => a
c'SQLITE_MUTEX_STATIC_MASTER = 2
c'SQLITE_MUTEX_STATIC_MASTER :: (Num a) => a
c'SQLITE_MUTEX_STATIC_MEM = 3
c'SQLITE_MUTEX_STATIC_MEM :: (Num a) => a
c'SQLITE_MUTEX_STATIC_MEM2 = 4
c'SQLITE_MUTEX_STATIC_MEM2 :: (Num a) => a
c'SQLITE_MUTEX_STATIC_OPEN = 4
c'SQLITE_MUTEX_STATIC_OPEN :: (Num a) => a
c'SQLITE_MUTEX_STATIC_PRNG = 5
c'SQLITE_MUTEX_STATIC_PRNG :: (Num a) => a
c'SQLITE_MUTEX_STATIC_LRU = 6
c'SQLITE_MUTEX_STATIC_LRU :: (Num a) => a
c'SQLITE_MUTEX_STATIC_LRU2 = 7
c'SQLITE_MUTEX_STATIC_LRU2 :: (Num a) => a
c'SQLITE_MUTEX_STATIC_PMEM = 7
c'SQLITE_MUTEX_STATIC_PMEM :: (Num a) => a
c'SQLITE_OPEN_READONLY = 1
c'SQLITE_OPEN_READONLY :: (Num a) => a
c'SQLITE_OPEN_READWRITE = 2
c'SQLITE_OPEN_READWRITE :: (Num a) => a
c'SQLITE_OPEN_CREATE = 4
c'SQLITE_OPEN_CREATE :: (Num a) => a
c'SQLITE_OPEN_DELETEONCLOSE = 8
c'SQLITE_OPEN_DELETEONCLOSE :: (Num a) => a
c'SQLITE_OPEN_EXCLUSIVE = 16
c'SQLITE_OPEN_EXCLUSIVE :: (Num a) => a
c'SQLITE_OPEN_AUTOPROXY = 32
c'SQLITE_OPEN_AUTOPROXY :: (Num a) => a
c'SQLITE_OPEN_URI = 64
c'SQLITE_OPEN_URI :: (Num a) => a
c'SQLITE_OPEN_MEMORY = 128
c'SQLITE_OPEN_MEMORY :: (Num a) => a
c'SQLITE_OPEN_MAIN_DB = 256
c'SQLITE_OPEN_MAIN_DB :: (Num a) => a
c'SQLITE_OPEN_TEMP_DB = 512
c'SQLITE_OPEN_TEMP_DB :: (Num a) => a
c'SQLITE_OPEN_TRANSIENT_DB = 1024
c'SQLITE_OPEN_TRANSIENT_DB :: (Num a) => a
c'SQLITE_OPEN_MAIN_JOURNAL = 2048
c'SQLITE_OPEN_MAIN_JOURNAL :: (Num a) => a
c'SQLITE_OPEN_TEMP_JOURNAL = 4096
c'SQLITE_OPEN_TEMP_JOURNAL :: (Num a) => a
c'SQLITE_OPEN_SUBJOURNAL = 8192
c'SQLITE_OPEN_SUBJOURNAL :: (Num a) => a
c'SQLITE_OPEN_MASTER_JOURNAL = 16384
c'SQLITE_OPEN_MASTER_JOURNAL :: (Num a) => a
c'SQLITE_OPEN_NOMUTEX = 32768
c'SQLITE_OPEN_NOMUTEX :: (Num a) => a
c'SQLITE_OPEN_FULLMUTEX = 65536
c'SQLITE_OPEN_FULLMUTEX :: (Num a) => a
c'SQLITE_OPEN_SHAREDCACHE = 131072
c'SQLITE_OPEN_SHAREDCACHE :: (Num a) => a
c'SQLITE_OPEN_PRIVATECACHE = 262144
c'SQLITE_OPEN_PRIVATECACHE :: (Num a) => a
c'SQLITE_OPEN_WAL = 524288
c'SQLITE_OPEN_WAL :: (Num a) => a
c'SQLITE_SHM_UNLOCK = 1
c'SQLITE_SHM_UNLOCK :: (Num a) => a
c'SQLITE_SHM_LOCK = 2
c'SQLITE_SHM_LOCK :: (Num a) => a
c'SQLITE_SHM_SHARED = 4
c'SQLITE_SHM_SHARED :: (Num a) => a
c'SQLITE_SHM_EXCLUSIVE = 8
c'SQLITE_SHM_EXCLUSIVE :: (Num a) => a
foreign import ccall "array_SQLITE_VERSION" c'SQLITE_VERSION
:: Ptr (CChar)
c'SQLITE_VERSION_NUMBER = 3007017
c'SQLITE_VERSION_NUMBER :: (Num a) => a
foreign import ccall "array_SQLITE_SOURCE_ID" c'SQLITE_SOURCE_ID
:: Ptr (CChar)
type C'sqlite3_destructor_type = FunPtr (Ptr () -> IO ())
foreign import ccall "wrapper" mk'sqlite3_destructor_type
:: (Ptr () -> IO ()) -> IO C'sqlite3_destructor_type
foreign import ccall "dynamic" mK'sqlite3_destructor_type
:: C'sqlite3_destructor_type -> (Ptr () -> IO ())
c'SQLITE_STATIC = (castPtrToFunPtr . wordPtrToPtr) 0
c'SQLITE_STATIC :: FunPtr a
c'SQLITE_TRANSIENT = (castPtrToFunPtr . wordPtrToPtr) 4294967295
c'SQLITE_TRANSIENT :: FunPtr a
c'SQLITE_STATUS_MEMORY_USED = 0
c'SQLITE_STATUS_MEMORY_USED :: (Num a) => a
c'SQLITE_STATUS_PAGECACHE_USED = 1
c'SQLITE_STATUS_PAGECACHE_USED :: (Num a) => a
c'SQLITE_STATUS_PAGECACHE_OVERFLOW = 2
c'SQLITE_STATUS_PAGECACHE_OVERFLOW :: (Num a) => a
c'SQLITE_STATUS_SCRATCH_USED = 3
c'SQLITE_STATUS_SCRATCH_USED :: (Num a) => a
c'SQLITE_STATUS_SCRATCH_OVERFLOW = 4
c'SQLITE_STATUS_SCRATCH_OVERFLOW :: (Num a) => a
c'SQLITE_STATUS_MALLOC_SIZE = 5
c'SQLITE_STATUS_MALLOC_SIZE :: (Num a) => a
c'SQLITE_STATUS_PARSER_STACK = 6
c'SQLITE_STATUS_PARSER_STACK :: (Num a) => a
c'SQLITE_STATUS_PAGECACHE_SIZE = 7
c'SQLITE_STATUS_PAGECACHE_SIZE :: (Num a) => a
c'SQLITE_STATUS_SCRATCH_SIZE = 8
c'SQLITE_STATUS_SCRATCH_SIZE :: (Num a) => a
c'SQLITE_STATUS_MALLOC_COUNT = 9
c'SQLITE_STATUS_MALLOC_COUNT :: (Num a) => a
c'SQLITE_SYNC_NORMAL = 2
c'SQLITE_SYNC_NORMAL :: (Num a) => a
c'SQLITE_SYNC_FULL = 3
c'SQLITE_SYNC_FULL :: (Num a) => a
c'SQLITE_SYNC_DATAONLY = 16
c'SQLITE_SYNC_DATAONLY :: (Num a) => a
c'SQLITE_TESTCTRL_FIRST = 5
c'SQLITE_TESTCTRL_FIRST :: (Num a) => a
c'SQLITE_TESTCTRL_PRNG_SAVE = 5
c'SQLITE_TESTCTRL_PRNG_SAVE :: (Num a) => a
c'SQLITE_TESTCTRL_PRNG_RESTORE = 6
c'SQLITE_TESTCTRL_PRNG_RESTORE :: (Num a) => a
c'SQLITE_TESTCTRL_PRNG_RESET = 7
c'SQLITE_TESTCTRL_PRNG_RESET :: (Num a) => a
c'SQLITE_TESTCTRL_BITVEC_TEST = 8
c'SQLITE_TESTCTRL_BITVEC_TEST :: (Num a) => a
c'SQLITE_TESTCTRL_FAULT_INSTALL = 9
c'SQLITE_TESTCTRL_FAULT_INSTALL :: (Num a) => a
c'SQLITE_TESTCTRL_BENIGN_MALLOC_HOOKS = 10
c'SQLITE_TESTCTRL_BENIGN_MALLOC_HOOKS :: (Num a) => a
c'SQLITE_TESTCTRL_PENDING_BYTE = 11
c'SQLITE_TESTCTRL_PENDING_BYTE :: (Num a) => a
c'SQLITE_TESTCTRL_ASSERT = 12
c'SQLITE_TESTCTRL_ASSERT :: (Num a) => a
c'SQLITE_TESTCTRL_ALWAYS = 13
c'SQLITE_TESTCTRL_ALWAYS :: (Num a) => a
c'SQLITE_TESTCTRL_RESERVE = 14
c'SQLITE_TESTCTRL_RESERVE :: (Num a) => a
c'SQLITE_TESTCTRL_OPTIMIZATIONS = 15
c'SQLITE_TESTCTRL_OPTIMIZATIONS :: (Num a) => a
c'SQLITE_TESTCTRL_ISKEYWORD = 16
c'SQLITE_TESTCTRL_ISKEYWORD :: (Num a) => a
c'SQLITE_TESTCTRL_SCRATCHMALLOC = 17
c'SQLITE_TESTCTRL_SCRATCHMALLOC :: (Num a) => a
c'SQLITE_TESTCTRL_LOCALTIME_FAULT = 18
c'SQLITE_TESTCTRL_LOCALTIME_FAULT :: (Num a) => a
c'SQLITE_TESTCTRL_EXPLAIN_STMT = 19
c'SQLITE_TESTCTRL_EXPLAIN_STMT :: (Num a) => a
c'SQLITE_TESTCTRL_LAST = 19
c'SQLITE_TESTCTRL_LAST :: (Num a) => a
c'SQLITE_LIMIT_LENGTH = 0
c'SQLITE_LIMIT_LENGTH :: (Num a) => a
c'SQLITE_LIMIT_SQL_LENGTH = 1
c'SQLITE_LIMIT_SQL_LENGTH :: (Num a) => a
c'SQLITE_LIMIT_COLUMN = 2
c'SQLITE_LIMIT_COLUMN :: (Num a) => a
c'SQLITE_LIMIT_EXPR_DEPTH = 3
c'SQLITE_LIMIT_EXPR_DEPTH :: (Num a) => a
c'SQLITE_LIMIT_COMPOUND_SELECT = 4
c'SQLITE_LIMIT_COMPOUND_SELECT :: (Num a) => a
c'SQLITE_LIMIT_VDBE_OP = 5
c'SQLITE_LIMIT_VDBE_OP :: (Num a) => a
c'SQLITE_LIMIT_FUNCTION_ARG = 6
c'SQLITE_LIMIT_FUNCTION_ARG :: (Num a) => a
c'SQLITE_LIMIT_ATTACHED = 7
c'SQLITE_LIMIT_ATTACHED :: (Num a) => a
c'SQLITE_LIMIT_LIKE_PATTERN_LENGTH = 8
c'SQLITE_LIMIT_LIKE_PATTERN_LENGTH :: (Num a) => a
c'SQLITE_LIMIT_VARIABLE_NUMBER = 9
c'SQLITE_LIMIT_VARIABLE_NUMBER :: (Num a) => a
c'SQLITE_LIMIT_TRIGGER_DEPTH = 10
c'SQLITE_LIMIT_TRIGGER_DEPTH :: (Num a) => a
c'SQLITE_DBSTATUS_LOOKASIDE_USED = 0
c'SQLITE_DBSTATUS_LOOKASIDE_USED :: (Num a) => a
c'SQLITE_DBSTATUS_CACHE_USED = 1
c'SQLITE_DBSTATUS_CACHE_USED :: (Num a) => a
c'SQLITE_DBSTATUS_SCHEMA_USED = 2
c'SQLITE_DBSTATUS_SCHEMA_USED :: (Num a) => a
c'SQLITE_DBSTATUS_STMT_USED = 3
c'SQLITE_DBSTATUS_STMT_USED :: (Num a) => a
c'SQLITE_DBSTATUS_LOOKASIDE_HIT = 4
c'SQLITE_DBSTATUS_LOOKASIDE_HIT :: (Num a) => a
c'SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE = 5
c'SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE :: (Num a) => a
c'SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL = 6
c'SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL :: (Num a) => a
c'SQLITE_DBSTATUS_CACHE_HIT = 7
c'SQLITE_DBSTATUS_CACHE_HIT :: (Num a) => a
c'SQLITE_DBSTATUS_CACHE_MISS = 8
c'SQLITE_DBSTATUS_CACHE_MISS :: (Num a) => a
c'SQLITE_DBSTATUS_CACHE_WRITE = 9
c'SQLITE_DBSTATUS_CACHE_WRITE :: (Num a) => a
c'SQLITE_DBSTATUS_MAX = 9
c'SQLITE_DBSTATUS_MAX :: (Num a) => a
c'SQLITE_STMTSTATUS_FULLSCAN_STEP = 1
c'SQLITE_STMTSTATUS_FULLSCAN_STEP :: (Num a) => a
c'SQLITE_STMTSTATUS_SORT = 2
c'SQLITE_STMTSTATUS_SORT :: (Num a) => a
c'SQLITE_STMTSTATUS_AUTOINDEX = 3
c'SQLITE_STMTSTATUS_AUTOINDEX :: (Num a) => a
type C'sqlite3_int64 = Int64
type C'sqlite3_uint64 = Word64
data C'sqlite3_module = C'sqlite3_module{
c'sqlite3_module'iVersion :: CInt,
c'sqlite3_module'xCreate :: FunPtr (Ptr C'sqlite3 -> Ptr () -> CInt -> Ptr CString -> Ptr (Ptr C'sqlite3_vtab) -> Ptr CString -> IO CInt),
c'sqlite3_module'xConnect :: FunPtr (Ptr C'sqlite3 -> Ptr () -> CInt -> Ptr CString -> Ptr (Ptr C'sqlite3_vtab) -> Ptr CString -> IO CInt),
c'sqlite3_module'xBestIndex :: FunPtr (Ptr C'sqlite3_vtab -> Ptr C'sqlite3_index_info -> IO CInt),
c'sqlite3_module'xDisconnect :: FunPtr (Ptr C'sqlite3_vtab -> IO CInt),
c'sqlite3_module'xDestroy :: FunPtr (Ptr C'sqlite3_vtab -> IO CInt),
c'sqlite3_module'xOpen :: FunPtr (Ptr C'sqlite3_vtab -> Ptr (Ptr C'sqlite3_vtab_cursor) -> IO CInt),
c'sqlite3_module'xClose :: FunPtr (Ptr C'sqlite3_vtab_cursor -> IO CInt),
c'sqlite3_module'xFilter :: FunPtr (Ptr C'sqlite3_vtab_cursor -> CInt -> CString -> CInt -> Ptr (Ptr C'sqlite3_value) -> IO CInt),
c'sqlite3_module'xNext :: FunPtr (Ptr C'sqlite3_vtab_cursor -> IO CInt),
c'sqlite3_module'xEof :: FunPtr (Ptr C'sqlite3_vtab_cursor -> IO CInt),
c'sqlite3_module'xColumn :: FunPtr (Ptr C'sqlite3_vtab_cursor -> Ptr C'sqlite3_context -> CInt -> IO CInt),
c'sqlite3_module'xRowid :: FunPtr (Ptr C'sqlite3_vtab_cursor -> Ptr C'sqlite3_int64 -> IO CInt),
c'sqlite3_module'xUpdate :: FunPtr (Ptr C'sqlite3_vtab -> CInt -> Ptr (Ptr C'sqlite3_value) -> Ptr C'sqlite3_int64 -> IO CInt),
c'sqlite3_module'xBegin :: FunPtr (Ptr C'sqlite3_vtab -> IO CInt),
c'sqlite3_module'xSync :: FunPtr (Ptr C'sqlite3_vtab -> IO CInt),
c'sqlite3_module'xCommit :: FunPtr (Ptr C'sqlite3_vtab -> IO CInt),
c'sqlite3_module'xRollback :: FunPtr (Ptr C'sqlite3_vtab -> IO CInt),
c'sqlite3_module'xFindFunction :: FunPtr (Ptr C'sqlite3_vtab -> CInt -> CString -> Ptr (FunPtr (Ptr C'sqlite3_context -> CInt -> Ptr (Ptr C'sqlite3_value) -> Ptr (Ptr ()) -> IO ())) -> Ptr (Ptr ()) -> IO CInt),
c'sqlite3_module'xRename :: FunPtr (Ptr C'sqlite3_vtab -> CString -> IO CInt),
c'sqlite3_module'xSavepoint :: FunPtr (Ptr C'sqlite3_vtab -> CInt -> IO CInt),
c'sqlite3_module'xRelease :: FunPtr (Ptr C'sqlite3_vtab -> CInt -> IO CInt),
c'sqlite3_module'xRollbackTo :: FunPtr (Ptr C'sqlite3_vtab -> CInt -> IO CInt)
} deriving (Eq,Show)
p'sqlite3_module'iVersion p = plusPtr p 0
p'sqlite3_module'iVersion :: Ptr (C'sqlite3_module) -> Ptr (CInt)
p'sqlite3_module'xCreate p = plusPtr p 4
p'sqlite3_module'xCreate :: Ptr (C'sqlite3_module) -> Ptr (FunPtr (Ptr C'sqlite3 -> Ptr () -> CInt -> Ptr CString -> Ptr (Ptr C'sqlite3_vtab) -> Ptr CString -> IO CInt))
p'sqlite3_module'xConnect p = plusPtr p 8
p'sqlite3_module'xConnect :: Ptr (C'sqlite3_module) -> Ptr (FunPtr (Ptr C'sqlite3 -> Ptr () -> CInt -> Ptr CString -> Ptr (Ptr C'sqlite3_vtab) -> Ptr CString -> IO CInt))
p'sqlite3_module'xBestIndex p = plusPtr p 12
p'sqlite3_module'xBestIndex :: Ptr (C'sqlite3_module) -> Ptr (FunPtr (Ptr C'sqlite3_vtab -> Ptr C'sqlite3_index_info -> IO CInt))
p'sqlite3_module'xDisconnect p = plusPtr p 16
p'sqlite3_module'xDisconnect :: Ptr (C'sqlite3_module) -> Ptr (FunPtr (Ptr C'sqlite3_vtab -> IO CInt))
p'sqlite3_module'xDestroy p = plusPtr p 20
p'sqlite3_module'xDestroy :: Ptr (C'sqlite3_module) -> Ptr (FunPtr (Ptr C'sqlite3_vtab -> IO CInt))
p'sqlite3_module'xOpen p = plusPtr p 24
p'sqlite3_module'xOpen :: Ptr (C'sqlite3_module) -> Ptr (FunPtr (Ptr C'sqlite3_vtab -> Ptr (Ptr C'sqlite3_vtab_cursor) -> IO CInt))
p'sqlite3_module'xClose p = plusPtr p 28
p'sqlite3_module'xClose :: Ptr (C'sqlite3_module) -> Ptr (FunPtr (Ptr C'sqlite3_vtab_cursor -> IO CInt))
p'sqlite3_module'xFilter p = plusPtr p 32
p'sqlite3_module'xFilter :: Ptr (C'sqlite3_module) -> Ptr (FunPtr (Ptr C'sqlite3_vtab_cursor -> CInt -> CString -> CInt -> Ptr (Ptr C'sqlite3_value) -> IO CInt))
p'sqlite3_module'xNext p = plusPtr p 36
p'sqlite3_module'xNext :: Ptr (C'sqlite3_module) -> Ptr (FunPtr (Ptr C'sqlite3_vtab_cursor -> IO CInt))
p'sqlite3_module'xEof p = plusPtr p 40
p'sqlite3_module'xEof :: Ptr (C'sqlite3_module) -> Ptr (FunPtr (Ptr C'sqlite3_vtab_cursor -> IO CInt))
p'sqlite3_module'xColumn p = plusPtr p 44
p'sqlite3_module'xColumn :: Ptr (C'sqlite3_module) -> Ptr (FunPtr (Ptr C'sqlite3_vtab_cursor -> Ptr C'sqlite3_context -> CInt -> IO CInt))
p'sqlite3_module'xRowid p = plusPtr p 48
p'sqlite3_module'xRowid :: Ptr (C'sqlite3_module) -> Ptr (FunPtr (Ptr C'sqlite3_vtab_cursor -> Ptr C'sqlite3_int64 -> IO CInt))
p'sqlite3_module'xUpdate p = plusPtr p 52
p'sqlite3_module'xUpdate :: Ptr (C'sqlite3_module) -> Ptr (FunPtr (Ptr C'sqlite3_vtab -> CInt -> Ptr (Ptr C'sqlite3_value) -> Ptr C'sqlite3_int64 -> IO CInt))
p'sqlite3_module'xBegin p = plusPtr p 56
p'sqlite3_module'xBegin :: Ptr (C'sqlite3_module) -> Ptr (FunPtr (Ptr C'sqlite3_vtab -> IO CInt))
p'sqlite3_module'xSync p = plusPtr p 60
p'sqlite3_module'xSync :: Ptr (C'sqlite3_module) -> Ptr (FunPtr (Ptr C'sqlite3_vtab -> IO CInt))
p'sqlite3_module'xCommit p = plusPtr p 64
p'sqlite3_module'xCommit :: Ptr (C'sqlite3_module) -> Ptr (FunPtr (Ptr C'sqlite3_vtab -> IO CInt))
p'sqlite3_module'xRollback p = plusPtr p 68
p'sqlite3_module'xRollback :: Ptr (C'sqlite3_module) -> Ptr (FunPtr (Ptr C'sqlite3_vtab -> IO CInt))
p'sqlite3_module'xFindFunction p = plusPtr p 72
p'sqlite3_module'xFindFunction :: Ptr (C'sqlite3_module) -> Ptr (FunPtr (Ptr C'sqlite3_vtab -> CInt -> CString -> Ptr (FunPtr (Ptr C'sqlite3_context -> CInt -> Ptr (Ptr C'sqlite3_value) -> Ptr (Ptr ()) -> IO ())) -> Ptr (Ptr ()) -> IO CInt))
p'sqlite3_module'xRename p = plusPtr p 76
p'sqlite3_module'xRename :: Ptr (C'sqlite3_module) -> Ptr (FunPtr (Ptr C'sqlite3_vtab -> CString -> IO CInt))
p'sqlite3_module'xSavepoint p = plusPtr p 80
p'sqlite3_module'xSavepoint :: Ptr (C'sqlite3_module) -> Ptr (FunPtr (Ptr C'sqlite3_vtab -> CInt -> IO CInt))
p'sqlite3_module'xRelease p = plusPtr p 84
p'sqlite3_module'xRelease :: Ptr (C'sqlite3_module) -> Ptr (FunPtr (Ptr C'sqlite3_vtab -> CInt -> IO CInt))
p'sqlite3_module'xRollbackTo p = plusPtr p 88
p'sqlite3_module'xRollbackTo :: Ptr (C'sqlite3_module) -> Ptr (FunPtr (Ptr C'sqlite3_vtab -> CInt -> IO CInt))
instance Storable C'sqlite3_module where
sizeOf _ = 92
alignment _ = 4
peek p = do
v0 <- peekByteOff p 0
v1 <- peekByteOff p 4
v2 <- peekByteOff p 8
v3 <- peekByteOff p 12
v4 <- peekByteOff p 16
v5 <- peekByteOff p 20
v6 <- peekByteOff p 24
v7 <- peekByteOff p 28
v8 <- peekByteOff p 32
v9 <- peekByteOff p 36
v10 <- peekByteOff p 40
v11 <- peekByteOff p 44
v12 <- peekByteOff p 48
v13 <- peekByteOff p 52
v14 <- peekByteOff p 56
v15 <- peekByteOff p 60
v16 <- peekByteOff p 64
v17 <- peekByteOff p 68
v18 <- peekByteOff p 72
v19 <- peekByteOff p 76
v20 <- peekByteOff p 80
v21 <- peekByteOff p 84
v22 <- peekByteOff p 88
return $ C'sqlite3_module v0 v1 v2 v3 v4 v5 v6 v7 v8 v9 v10 v11 v12 v13 v14 v15 v16 v17 v18 v19 v20 v21 v22
poke p (C'sqlite3_module v0 v1 v2 v3 v4 v5 v6 v7 v8 v9 v10 v11 v12 v13 v14 v15 v16 v17 v18 v19 v20 v21 v22) = do
pokeByteOff p 0 v0
pokeByteOff p 4 v1
pokeByteOff p 8 v2
pokeByteOff p 12 v3
pokeByteOff p 16 v4
pokeByteOff p 20 v5
pokeByteOff p 24 v6
pokeByteOff p 28 v7
pokeByteOff p 32 v8
pokeByteOff p 36 v9
pokeByteOff p 40 v10
pokeByteOff p 44 v11
pokeByteOff p 48 v12
pokeByteOff p 52 v13
pokeByteOff p 56 v14
pokeByteOff p 60 v15
pokeByteOff p 64 v16
pokeByteOff p 68 v17
pokeByteOff p 72 v18
pokeByteOff p 76 v19
pokeByteOff p 80 v20
pokeByteOff p 84 v21
pokeByteOff p 88 v22
return ()
data C'sqlite3_vtab_cursor = C'sqlite3_vtab_cursor{
c'sqlite3_vtab_cursor'pVtab :: Ptr C'sqlite3_vtab
} deriving (Eq,Show)
p'sqlite3_vtab_cursor'pVtab p = plusPtr p 0
p'sqlite3_vtab_cursor'pVtab :: Ptr (C'sqlite3_vtab_cursor) -> Ptr (Ptr C'sqlite3_vtab)
instance Storable C'sqlite3_vtab_cursor where
sizeOf _ = 4
alignment _ = 4
peek p = do
v0 <- peekByteOff p 0
return $ C'sqlite3_vtab_cursor v0
poke p (C'sqlite3_vtab_cursor v0) = do
pokeByteOff p 0 v0
return ()
data C'sqlite3_blob = C'sqlite3_blob
data C'sqlite3 = C'sqlite3
data C'sqlite3_pcache_methods2 = C'sqlite3_pcache_methods2{
c'sqlite3_pcache_methods2'iVersion :: CInt,
c'sqlite3_pcache_methods2'pArg :: Ptr (),
c'sqlite3_pcache_methods2'xInit :: FunPtr (Ptr () -> IO CInt),
c'sqlite3_pcache_methods2'xShutdown :: FunPtr (Ptr () -> IO ()),
c'sqlite3_pcache_methods2'xCreate :: FunPtr (CInt -> CInt -> CInt -> IO (Ptr C'sqlite3_pcache)),
c'sqlite3_pcache_methods2'xCachesize :: FunPtr (Ptr C'sqlite3_pcache -> CInt -> IO ()),
c'sqlite3_pcache_methods2'xPagecount :: FunPtr (Ptr C'sqlite3_pcache -> IO CInt),
c'sqlite3_pcache_methods2'xFetch :: FunPtr (Ptr C'sqlite3_pcache -> CUInt -> CInt -> IO (Ptr C'sqlite3_pcache_page)),
c'sqlite3_pcache_methods2'xUnpin :: FunPtr (Ptr C'sqlite3_pcache -> Ptr C'sqlite3_pcache_page -> CInt -> IO ()),
c'sqlite3_pcache_methods2'xRekey :: FunPtr (Ptr C'sqlite3_pcache -> Ptr C'sqlite3_pcache_page -> CUInt -> CUInt -> IO ()),
c'sqlite3_pcache_methods2'xTruncate :: FunPtr (Ptr C'sqlite3_pcache -> CUInt -> IO ()),
c'sqlite3_pcache_methods2'xDestroy :: FunPtr (Ptr C'sqlite3_pcache -> IO ()),
c'sqlite3_pcache_methods2'xShrink :: FunPtr (Ptr C'sqlite3_pcache -> IO ())
} deriving (Eq,Show)
p'sqlite3_pcache_methods2'iVersion p = plusPtr p 0
p'sqlite3_pcache_methods2'iVersion :: Ptr (C'sqlite3_pcache_methods2) -> Ptr (CInt)
p'sqlite3_pcache_methods2'pArg p = plusPtr p 4
p'sqlite3_pcache_methods2'pArg :: Ptr (C'sqlite3_pcache_methods2) -> Ptr (Ptr ())
p'sqlite3_pcache_methods2'xInit p = plusPtr p 8
p'sqlite3_pcache_methods2'xInit :: Ptr (C'sqlite3_pcache_methods2) -> Ptr (FunPtr (Ptr () -> IO CInt))
p'sqlite3_pcache_methods2'xShutdown p = plusPtr p 12
p'sqlite3_pcache_methods2'xShutdown :: Ptr (C'sqlite3_pcache_methods2) -> Ptr (FunPtr (Ptr () -> IO ()))
p'sqlite3_pcache_methods2'xCreate p = plusPtr p 16
p'sqlite3_pcache_methods2'xCreate :: Ptr (C'sqlite3_pcache_methods2) -> Ptr (FunPtr (CInt -> CInt -> CInt -> IO (Ptr C'sqlite3_pcache)))
p'sqlite3_pcache_methods2'xCachesize p = plusPtr p 20
p'sqlite3_pcache_methods2'xCachesize :: Ptr (C'sqlite3_pcache_methods2) -> Ptr (FunPtr (Ptr C'sqlite3_pcache -> CInt -> IO ()))
p'sqlite3_pcache_methods2'xPagecount p = plusPtr p 24
p'sqlite3_pcache_methods2'xPagecount :: Ptr (C'sqlite3_pcache_methods2) -> Ptr (FunPtr (Ptr C'sqlite3_pcache -> IO CInt))
p'sqlite3_pcache_methods2'xFetch p = plusPtr p 28
p'sqlite3_pcache_methods2'xFetch :: Ptr (C'sqlite3_pcache_methods2) -> Ptr (FunPtr (Ptr C'sqlite3_pcache -> CUInt -> CInt -> IO (Ptr C'sqlite3_pcache_page)))
p'sqlite3_pcache_methods2'xUnpin p = plusPtr p 32
p'sqlite3_pcache_methods2'xUnpin :: Ptr (C'sqlite3_pcache_methods2) -> Ptr (FunPtr (Ptr C'sqlite3_pcache -> Ptr C'sqlite3_pcache_page -> CInt -> IO ()))
p'sqlite3_pcache_methods2'xRekey p = plusPtr p 36
p'sqlite3_pcache_methods2'xRekey :: Ptr (C'sqlite3_pcache_methods2) -> Ptr (FunPtr (Ptr C'sqlite3_pcache -> Ptr C'sqlite3_pcache_page -> CUInt -> CUInt -> IO ()))
p'sqlite3_pcache_methods2'xTruncate p = plusPtr p 40
p'sqlite3_pcache_methods2'xTruncate :: Ptr (C'sqlite3_pcache_methods2) -> Ptr (FunPtr (Ptr C'sqlite3_pcache -> CUInt -> IO ()))
p'sqlite3_pcache_methods2'xDestroy p = plusPtr p 44
p'sqlite3_pcache_methods2'xDestroy :: Ptr (C'sqlite3_pcache_methods2) -> Ptr (FunPtr (Ptr C'sqlite3_pcache -> IO ()))
p'sqlite3_pcache_methods2'xShrink p = plusPtr p 48
p'sqlite3_pcache_methods2'xShrink :: Ptr (C'sqlite3_pcache_methods2) -> Ptr (FunPtr (Ptr C'sqlite3_pcache -> IO ()))
instance Storable C'sqlite3_pcache_methods2 where
sizeOf _ = 52
alignment _ = 4
peek p = do
v0 <- peekByteOff p 0
v1 <- peekByteOff p 4
v2 <- peekByteOff p 8
v3 <- peekByteOff p 12
v4 <- peekByteOff p 16
v5 <- peekByteOff p 20
v6 <- peekByteOff p 24
v7 <- peekByteOff p 28
v8 <- peekByteOff p 32
v9 <- peekByteOff p 36
v10 <- peekByteOff p 40
v11 <- peekByteOff p 44
v12 <- peekByteOff p 48
return $ C'sqlite3_pcache_methods2 v0 v1 v2 v3 v4 v5 v6 v7 v8 v9 v10 v11 v12
poke p (C'sqlite3_pcache_methods2 v0 v1 v2 v3 v4 v5 v6 v7 v8 v9 v10 v11 v12) = do
pokeByteOff p 0 v0
pokeByteOff p 4 v1
pokeByteOff p 8 v2
pokeByteOff p 12 v3
pokeByteOff p 16 v4
pokeByteOff p 20 v5
pokeByteOff p 24 v6
pokeByteOff p 28 v7
pokeByteOff p 32 v8
pokeByteOff p 36 v9
pokeByteOff p 40 v10
pokeByteOff p 44 v11
pokeByteOff p 48 v12
return ()
data C'sqlite3_stmt = C'sqlite3_stmt
data C'sqlite3_value = C'sqlite3_value
foreign import ccall "sqlite3_backup_init" c'sqlite3_backup_init
:: Ptr C'sqlite3 -> CString -> Ptr C'sqlite3 -> CString -> IO (Ptr C'sqlite3_backup)
foreign import ccall "&sqlite3_backup_init" p'sqlite3_backup_init
:: FunPtr (Ptr C'sqlite3 -> CString -> Ptr C'sqlite3 -> CString -> IO (Ptr C'sqlite3_backup))
foreign import ccall "sqlite3_backup_step" c'sqlite3_backup_step
:: Ptr C'sqlite3_backup -> CInt -> IO CInt
foreign import ccall "&sqlite3_backup_step" p'sqlite3_backup_step
:: FunPtr (Ptr C'sqlite3_backup -> CInt -> IO CInt)
foreign import ccall "sqlite3_backup_finish" c'sqlite3_backup_finish
:: Ptr C'sqlite3_backup -> IO CInt
foreign import ccall "&sqlite3_backup_finish" p'sqlite3_backup_finish
:: FunPtr (Ptr C'sqlite3_backup -> IO CInt)
foreign import ccall "sqlite3_backup_remaining" c'sqlite3_backup_remaining
:: Ptr C'sqlite3_backup -> IO CInt
foreign import ccall "&sqlite3_backup_remaining" p'sqlite3_backup_remaining
:: FunPtr (Ptr C'sqlite3_backup -> IO CInt)
foreign import ccall "sqlite3_backup_pagecount" c'sqlite3_backup_pagecount
:: Ptr C'sqlite3_backup -> IO CInt
foreign import ccall "&sqlite3_backup_pagecount" p'sqlite3_backup_pagecount
:: FunPtr (Ptr C'sqlite3_backup -> IO CInt)
foreign import ccall "sqlite3_close" c'sqlite3_close
:: Ptr C'sqlite3 -> IO CInt
foreign import ccall "&sqlite3_close" p'sqlite3_close
:: FunPtr (Ptr C'sqlite3 -> IO CInt)
foreign import ccall "sqlite3_close_v2" c'sqlite3_close_v2
:: Ptr C'sqlite3 -> IO CInt
foreign import ccall "&sqlite3_close_v2" p'sqlite3_close_v2
:: FunPtr (Ptr C'sqlite3 -> IO CInt)
foreign import ccall "sqlite3_collation_needed" c'sqlite3_collation_needed
:: Ptr C'sqlite3 -> Ptr () -> FunPtr (Ptr () -> Ptr C'sqlite3 -> CInt -> CString -> IO ()) -> IO CInt
foreign import ccall "&sqlite3_collation_needed" p'sqlite3_collation_needed
:: FunPtr (Ptr C'sqlite3 -> Ptr () -> FunPtr (Ptr () -> Ptr C'sqlite3 -> CInt -> CString -> IO ()) -> IO CInt)
foreign import ccall "sqlite3_collation_needed16" c'sqlite3_collation_needed16
:: Ptr C'sqlite3 -> Ptr () -> FunPtr (Ptr () -> Ptr C'sqlite3 -> CInt -> Ptr () -> IO ()) -> IO CInt
foreign import ccall "&sqlite3_collation_needed16" p'sqlite3_collation_needed16
:: FunPtr (Ptr C'sqlite3 -> Ptr () -> FunPtr (Ptr () -> Ptr C'sqlite3 -> CInt -> Ptr () -> IO ()) -> IO CInt)
foreign import ccall "sqlite3_column_database_name" c'sqlite3_column_database_name
:: Ptr C'sqlite3_stmt -> CInt -> IO CString
foreign import ccall "&sqlite3_column_database_name" p'sqlite3_column_database_name
:: FunPtr (Ptr C'sqlite3_stmt -> CInt -> IO CString)
foreign import ccall "sqlite3_column_database_name16" c'sqlite3_column_database_name16
:: Ptr C'sqlite3_stmt -> CInt -> IO (Ptr ())
foreign import ccall "&sqlite3_column_database_name16" p'sqlite3_column_database_name16
:: FunPtr (Ptr C'sqlite3_stmt -> CInt -> IO (Ptr ()))
foreign import ccall "sqlite3_column_table_name" c'sqlite3_column_table_name
:: Ptr C'sqlite3_stmt -> CInt -> IO CString
foreign import ccall "&sqlite3_column_table_name" p'sqlite3_column_table_name
:: FunPtr (Ptr C'sqlite3_stmt -> CInt -> IO CString)
foreign import ccall "sqlite3_column_table_name16" c'sqlite3_column_table_name16
:: Ptr C'sqlite3_stmt -> CInt -> IO (Ptr ())
foreign import ccall "&sqlite3_column_table_name16" p'sqlite3_column_table_name16
:: FunPtr (Ptr C'sqlite3_stmt -> CInt -> IO (Ptr ()))
foreign import ccall "sqlite3_column_origin_name" c'sqlite3_column_origin_name
:: Ptr C'sqlite3_stmt -> CInt -> IO CString
foreign import ccall "&sqlite3_column_origin_name" p'sqlite3_column_origin_name
:: FunPtr (Ptr C'sqlite3_stmt -> CInt -> IO CString)
foreign import ccall "sqlite3_column_origin_name16" c'sqlite3_column_origin_name16
:: Ptr C'sqlite3_stmt -> CInt -> IO (Ptr ())
foreign import ccall "&sqlite3_column_origin_name16" p'sqlite3_column_origin_name16
:: FunPtr (Ptr C'sqlite3_stmt -> CInt -> IO (Ptr ()))
foreign import ccall "sqlite3_column_decltype" c'sqlite3_column_decltype
:: Ptr C'sqlite3_stmt -> CInt -> IO CString
foreign import ccall "&sqlite3_column_decltype" p'sqlite3_column_decltype
:: FunPtr (Ptr C'sqlite3_stmt -> CInt -> IO CString)
foreign import ccall "sqlite3_column_decltype16" c'sqlite3_column_decltype16
:: Ptr C'sqlite3_stmt -> CInt -> IO (Ptr ())
foreign import ccall "&sqlite3_column_decltype16" p'sqlite3_column_decltype16
:: FunPtr (Ptr C'sqlite3_stmt -> CInt -> IO (Ptr ()))
foreign import ccall "sqlite3_column_name" c'sqlite3_column_name
:: Ptr C'sqlite3_stmt -> CInt -> IO CString
foreign import ccall "&sqlite3_column_name" p'sqlite3_column_name
:: FunPtr (Ptr C'sqlite3_stmt -> CInt -> IO CString)
foreign import ccall "sqlite3_column_name16" c'sqlite3_column_name16
:: Ptr C'sqlite3_stmt -> CInt -> IO (Ptr ())
foreign import ccall "&sqlite3_column_name16" p'sqlite3_column_name16
:: FunPtr (Ptr C'sqlite3_stmt -> CInt -> IO (Ptr ()))
foreign import ccall "sqlite3_commit_hook" c'sqlite3_commit_hook
:: Ptr C'sqlite3 -> FunPtr (Ptr () -> IO CInt) -> Ptr () -> IO (Ptr ())
foreign import ccall "&sqlite3_commit_hook" p'sqlite3_commit_hook
:: FunPtr (Ptr C'sqlite3 -> FunPtr (Ptr () -> IO CInt) -> Ptr () -> IO (Ptr ()))
foreign import ccall "sqlite3_rollback_hook" c'sqlite3_rollback_hook
:: Ptr C'sqlite3 -> FunPtr (Ptr () -> IO ()) -> Ptr () -> IO (Ptr ())
foreign import ccall "&sqlite3_rollback_hook" p'sqlite3_rollback_hook
:: FunPtr (Ptr C'sqlite3 -> FunPtr (Ptr () -> IO ()) -> Ptr () -> IO (Ptr ()))
foreign import ccall "sqlite3_complete" c'sqlite3_complete
:: CString -> IO CInt
foreign import ccall "&sqlite3_complete" p'sqlite3_complete
:: FunPtr (CString -> IO CInt)
foreign import ccall "sqlite3_complete16" c'sqlite3_complete16
:: Ptr () -> IO CInt
foreign import ccall "&sqlite3_complete16" p'sqlite3_complete16
:: FunPtr (Ptr () -> IO CInt)
foreign import ccall "sqlite3_create_collation" c'sqlite3_create_collation
:: Ptr C'sqlite3 -> CString -> CInt -> Ptr () -> FunPtr (Ptr () -> CInt -> Ptr () -> CInt -> Ptr () -> IO CInt) -> IO CInt
foreign import ccall "&sqlite3_create_collation" p'sqlite3_create_collation
:: FunPtr (Ptr C'sqlite3 -> CString -> CInt -> Ptr () -> FunPtr (Ptr () -> CInt -> Ptr () -> CInt -> Ptr () -> IO CInt) -> IO CInt)
foreign import ccall "sqlite3_create_collation_v2" c'sqlite3_create_collation_v2
:: Ptr C'sqlite3 -> CString -> CInt -> Ptr () -> FunPtr (Ptr () -> CInt -> Ptr () -> CInt -> Ptr () -> IO CInt) -> FunPtr (Ptr () -> IO ()) -> IO CInt
foreign import ccall "&sqlite3_create_collation_v2" p'sqlite3_create_collation_v2
:: FunPtr (Ptr C'sqlite3 -> CString -> CInt -> Ptr () -> FunPtr (Ptr () -> CInt -> Ptr () -> CInt -> Ptr () -> IO CInt) -> FunPtr (Ptr () -> IO ()) -> IO CInt)
foreign import ccall "sqlite3_create_collation16" c'sqlite3_create_collation16
:: Ptr C'sqlite3 -> Ptr () -> CInt -> Ptr () -> FunPtr (Ptr () -> CInt -> Ptr () -> CInt -> Ptr () -> IO CInt) -> IO CInt
foreign import ccall "&sqlite3_create_collation16" p'sqlite3_create_collation16
:: FunPtr (Ptr C'sqlite3 -> Ptr () -> CInt -> Ptr () -> FunPtr (Ptr () -> CInt -> Ptr () -> CInt -> Ptr () -> IO CInt) -> IO CInt)
foreign import ccall "sqlite3_create_module" c'sqlite3_create_module
:: Ptr C'sqlite3 -> CString -> Ptr C'sqlite3_module -> Ptr () -> IO CInt
foreign import ccall "&sqlite3_create_module" p'sqlite3_create_module
:: FunPtr (Ptr C'sqlite3 -> CString -> Ptr C'sqlite3_module -> Ptr () -> IO CInt)
foreign import ccall "sqlite3_create_module_v2" c'sqlite3_create_module_v2
:: Ptr C'sqlite3 -> CString -> Ptr C'sqlite3_module -> Ptr () -> FunPtr (Ptr () -> IO ()) -> IO CInt
foreign import ccall "&sqlite3_create_module_v2" p'sqlite3_create_module_v2
:: FunPtr (Ptr C'sqlite3 -> CString -> Ptr C'sqlite3_module -> Ptr () -> FunPtr (Ptr () -> IO ()) -> IO CInt)
foreign import ccall "sqlite3_errcode" c'sqlite3_errcode
:: Ptr C'sqlite3 -> IO CInt
foreign import ccall "&sqlite3_errcode" p'sqlite3_errcode
:: FunPtr (Ptr C'sqlite3 -> IO CInt)
foreign import ccall "sqlite3_extended_errcode" c'sqlite3_extended_errcode
:: Ptr C'sqlite3 -> IO CInt
foreign import ccall "&sqlite3_extended_errcode" p'sqlite3_extended_errcode
:: FunPtr (Ptr C'sqlite3 -> IO CInt)
foreign import ccall "sqlite3_errmsg" c'sqlite3_errmsg
:: Ptr C'sqlite3 -> IO CString
foreign import ccall "&sqlite3_errmsg" p'sqlite3_errmsg
:: FunPtr (Ptr C'sqlite3 -> IO CString)
foreign import ccall "sqlite3_errmsg16" c'sqlite3_errmsg16
:: Ptr C'sqlite3 -> IO (Ptr ())
foreign import ccall "&sqlite3_errmsg16" p'sqlite3_errmsg16
:: FunPtr (Ptr C'sqlite3 -> IO (Ptr ()))
foreign import ccall "sqlite3_errstr" c'sqlite3_errstr
:: CInt -> IO CString
foreign import ccall "&sqlite3_errstr" p'sqlite3_errstr
:: FunPtr (CInt -> IO CString)
foreign import ccall "sqlite3_malloc" c'sqlite3_malloc
:: CInt -> IO (Ptr ())
foreign import ccall "&sqlite3_malloc" p'sqlite3_malloc
:: FunPtr (CInt -> IO (Ptr ()))
foreign import ccall "sqlite3_realloc" c'sqlite3_realloc
:: Ptr () -> CInt -> IO (Ptr ())
foreign import ccall "&sqlite3_realloc" p'sqlite3_realloc
:: FunPtr (Ptr () -> CInt -> IO (Ptr ()))
foreign import ccall "sqlite3_free" c'sqlite3_free
:: Ptr () -> IO ()
foreign import ccall "&sqlite3_free" p'sqlite3_free
:: FunPtr (Ptr () -> IO ())
foreign import ccall "sqlite3_get_table" c'sqlite3_get_table
:: Ptr C'sqlite3 -> CString -> Ptr (Ptr CString) -> Ptr CInt -> Ptr CInt -> Ptr CString -> IO CInt
foreign import ccall "&sqlite3_get_table" p'sqlite3_get_table
:: FunPtr (Ptr C'sqlite3 -> CString -> Ptr (Ptr CString) -> Ptr CInt -> Ptr CInt -> Ptr CString -> IO CInt)
foreign import ccall "sqlite3_free_table" c'sqlite3_free_table
:: Ptr CString -> IO ()
foreign import ccall "&sqlite3_free_table" p'sqlite3_free_table
:: FunPtr (Ptr CString -> IO ())
foreign import ccall "sqlite3_get_auxdata" c'sqlite3_get_auxdata
:: Ptr C'sqlite3_context -> CInt -> IO (Ptr ())
foreign import ccall "&sqlite3_get_auxdata" p'sqlite3_get_auxdata
:: FunPtr (Ptr C'sqlite3_context -> CInt -> IO (Ptr ()))
foreign import ccall "sqlite3_set_auxdata" c'sqlite3_set_auxdata
:: Ptr C'sqlite3_context -> CInt -> Ptr () -> FunPtr (Ptr () -> IO ()) -> IO ()
foreign import ccall "&sqlite3_set_auxdata" p'sqlite3_set_auxdata
:: FunPtr (Ptr C'sqlite3_context -> CInt -> Ptr () -> FunPtr (Ptr () -> IO ()) -> IO ())
foreign import ccall "sqlite3_initialize" c'sqlite3_initialize
:: IO CInt
foreign import ccall "&sqlite3_initialize" p'sqlite3_initialize
:: FunPtr (IO CInt)
foreign import ccall "sqlite3_shutdown" c'sqlite3_shutdown
:: IO CInt
foreign import ccall "&sqlite3_shutdown" p'sqlite3_shutdown
:: FunPtr (IO CInt)
foreign import ccall "sqlite3_os_init" c'sqlite3_os_init
:: IO CInt
foreign import ccall "&sqlite3_os_init" p'sqlite3_os_init
:: FunPtr (IO CInt)
foreign import ccall "sqlite3_os_end" c'sqlite3_os_end
:: IO CInt
foreign import ccall "&sqlite3_os_end" p'sqlite3_os_end
:: FunPtr (IO CInt)
foreign import ccall "array_sqlite3_version" c'sqlite3_version
:: Ptr (CChar)
foreign import ccall "sqlite3_libversion" c'sqlite3_libversion
:: IO CString
foreign import ccall "&sqlite3_libversion" p'sqlite3_libversion
:: FunPtr (IO CString)
foreign import ccall "sqlite3_sourceid" c'sqlite3_sourceid
:: IO CString
foreign import ccall "&sqlite3_sourceid" p'sqlite3_sourceid
:: FunPtr (IO CString)
foreign import ccall "sqlite3_libversion_number" c'sqlite3_libversion_number
:: IO CInt
foreign import ccall "&sqlite3_libversion_number" p'sqlite3_libversion_number
:: FunPtr (IO CInt)
foreign import ccall "sqlite3_memory_used" c'sqlite3_memory_used
:: IO C'sqlite3_int64
foreign import ccall "&sqlite3_memory_used" p'sqlite3_memory_used
:: FunPtr (IO C'sqlite3_int64)
foreign import ccall "sqlite3_memory_highwater" c'sqlite3_memory_highwater
:: CInt -> IO C'sqlite3_int64
foreign import ccall "&sqlite3_memory_highwater" p'sqlite3_memory_highwater
:: FunPtr (CInt -> IO C'sqlite3_int64)
foreign import ccall "sqlite3_mutex_alloc" c'sqlite3_mutex_alloc
:: CInt -> IO (Ptr C'sqlite3_mutex)
foreign import ccall "&sqlite3_mutex_alloc" p'sqlite3_mutex_alloc
:: FunPtr (CInt -> IO (Ptr C'sqlite3_mutex))
foreign import ccall "sqlite3_mutex_free" c'sqlite3_mutex_free
:: Ptr C'sqlite3_mutex -> IO ()
foreign import ccall "&sqlite3_mutex_free" p'sqlite3_mutex_free
:: FunPtr (Ptr C'sqlite3_mutex -> IO ())
foreign import ccall "sqlite3_mutex_enter" c'sqlite3_mutex_enter
:: Ptr C'sqlite3_mutex -> IO ()
foreign import ccall "&sqlite3_mutex_enter" p'sqlite3_mutex_enter
:: FunPtr (Ptr C'sqlite3_mutex -> IO ())
foreign import ccall "sqlite3_mutex_try" c'sqlite3_mutex_try
:: Ptr C'sqlite3_mutex -> IO CInt
foreign import ccall "&sqlite3_mutex_try" p'sqlite3_mutex_try
:: FunPtr (Ptr C'sqlite3_mutex -> IO CInt)
foreign import ccall "sqlite3_mutex_leave" c'sqlite3_mutex_leave
:: Ptr C'sqlite3_mutex -> IO ()
foreign import ccall "&sqlite3_mutex_leave" p'sqlite3_mutex_leave
:: FunPtr (Ptr C'sqlite3_mutex -> IO ())
foreign import ccall "sqlite3_open" c'sqlite3_open
:: CString -> Ptr (Ptr C'sqlite3) -> IO CInt
foreign import ccall "&sqlite3_open" p'sqlite3_open
:: FunPtr (CString -> Ptr (Ptr C'sqlite3) -> IO CInt)
foreign import ccall "sqlite3_open16" c'sqlite3_open16
:: Ptr () -> Ptr (Ptr C'sqlite3) -> IO CInt
foreign import ccall "&sqlite3_open16" p'sqlite3_open16
:: FunPtr (Ptr () -> Ptr (Ptr C'sqlite3) -> IO CInt)
foreign import ccall "sqlite3_open_v2" c'sqlite3_open_v2
:: CString -> Ptr (Ptr C'sqlite3) -> CInt -> CString -> IO CInt
foreign import ccall "&sqlite3_open_v2" p'sqlite3_open_v2
:: FunPtr (CString -> Ptr (Ptr C'sqlite3) -> CInt -> CString -> IO CInt)
foreign import ccall "sqlite3_trace" c'sqlite3_trace
:: Ptr C'sqlite3 -> FunPtr (Ptr () -> CString -> IO ()) -> Ptr () -> IO (Ptr ())
foreign import ccall "&sqlite3_trace" p'sqlite3_trace
:: FunPtr (Ptr C'sqlite3 -> FunPtr (Ptr () -> CString -> IO ()) -> Ptr () -> IO (Ptr ()))
foreign import ccall "sqlite3_profile" c'sqlite3_profile
:: Ptr C'sqlite3 -> FunPtr (Ptr () -> CString -> C'sqlite3_uint64 -> IO ()) -> Ptr () -> IO (Ptr ())
foreign import ccall "&sqlite3_profile" p'sqlite3_profile
:: FunPtr (Ptr C'sqlite3 -> FunPtr (Ptr () -> CString -> C'sqlite3_uint64 -> IO ()) -> Ptr () -> IO (Ptr ()))
foreign import ccall "sqlite3_result_blob" c'sqlite3_result_blob
:: Ptr C'sqlite3_context -> Ptr () -> CInt -> FunPtr (Ptr () -> IO ()) -> IO ()
foreign import ccall "&sqlite3_result_blob" p'sqlite3_result_blob
:: FunPtr (Ptr C'sqlite3_context -> Ptr () -> CInt -> FunPtr (Ptr () -> IO ()) -> IO ())
foreign import ccall "sqlite3_result_double" c'sqlite3_result_double
:: Ptr C'sqlite3_context -> CDouble -> IO ()
foreign import ccall "&sqlite3_result_double" p'sqlite3_result_double
:: FunPtr (Ptr C'sqlite3_context -> CDouble -> IO ())
foreign import ccall "sqlite3_result_error" c'sqlite3_result_error
:: Ptr C'sqlite3_context -> CString -> CInt -> IO ()
foreign import ccall "&sqlite3_result_error" p'sqlite3_result_error
:: FunPtr (Ptr C'sqlite3_context -> CString -> CInt -> IO ())
foreign import ccall "sqlite3_result_error16" c'sqlite3_result_error16
:: Ptr C'sqlite3_context -> Ptr () -> CInt -> IO ()
foreign import ccall "&sqlite3_result_error16" p'sqlite3_result_error16
:: FunPtr (Ptr C'sqlite3_context -> Ptr () -> CInt -> IO ())
foreign import ccall "sqlite3_result_error_toobig" c'sqlite3_result_error_toobig
:: Ptr C'sqlite3_context -> IO ()
foreign import ccall "&sqlite3_result_error_toobig" p'sqlite3_result_error_toobig
:: FunPtr (Ptr C'sqlite3_context -> IO ())
foreign import ccall "sqlite3_result_error_nomem" c'sqlite3_result_error_nomem
:: Ptr C'sqlite3_context -> IO ()
foreign import ccall "&sqlite3_result_error_nomem" p'sqlite3_result_error_nomem
:: FunPtr (Ptr C'sqlite3_context -> IO ())
foreign import ccall "sqlite3_result_error_code" c'sqlite3_result_error_code
:: Ptr C'sqlite3_context -> CInt -> IO ()
foreign import ccall "&sqlite3_result_error_code" p'sqlite3_result_error_code
:: FunPtr (Ptr C'sqlite3_context -> CInt -> IO ())
foreign import ccall "sqlite3_result_int" c'sqlite3_result_int
:: Ptr C'sqlite3_context -> CInt -> IO ()
foreign import ccall "&sqlite3_result_int" p'sqlite3_result_int
:: FunPtr (Ptr C'sqlite3_context -> CInt -> IO ())
foreign import ccall "sqlite3_result_int64" c'sqlite3_result_int64
:: Ptr C'sqlite3_context -> C'sqlite3_int64 -> IO ()
foreign import ccall "&sqlite3_result_int64" p'sqlite3_result_int64
:: FunPtr (Ptr C'sqlite3_context -> C'sqlite3_int64 -> IO ())
foreign import ccall "sqlite3_result_null" c'sqlite3_result_null
:: Ptr C'sqlite3_context -> IO ()
foreign import ccall "&sqlite3_result_null" p'sqlite3_result_null
:: FunPtr (Ptr C'sqlite3_context -> IO ())
foreign import ccall "sqlite3_result_text" c'sqlite3_result_text
:: Ptr C'sqlite3_context -> CString -> CInt -> FunPtr (Ptr () -> IO ()) -> IO ()
foreign import ccall "&sqlite3_result_text" p'sqlite3_result_text
:: FunPtr (Ptr C'sqlite3_context -> CString -> CInt -> FunPtr (Ptr () -> IO ()) -> IO ())
foreign import ccall "sqlite3_result_text16" c'sqlite3_result_text16
:: Ptr C'sqlite3_context -> Ptr () -> CInt -> FunPtr (Ptr () -> IO ()) -> IO ()
foreign import ccall "&sqlite3_result_text16" p'sqlite3_result_text16
:: FunPtr (Ptr C'sqlite3_context -> Ptr () -> CInt -> FunPtr (Ptr () -> IO ()) -> IO ())
foreign import ccall "sqlite3_result_text16le" c'sqlite3_result_text16le
:: Ptr C'sqlite3_context -> Ptr () -> CInt -> FunPtr (Ptr () -> IO ()) -> IO ()
foreign import ccall "&sqlite3_result_text16le" p'sqlite3_result_text16le
:: FunPtr (Ptr C'sqlite3_context -> Ptr () -> CInt -> FunPtr (Ptr () -> IO ()) -> IO ())
foreign import ccall "sqlite3_result_text16be" c'sqlite3_result_text16be
:: Ptr C'sqlite3_context -> Ptr () -> CInt -> FunPtr (Ptr () -> IO ()) -> IO ()
foreign import ccall "&sqlite3_result_text16be" p'sqlite3_result_text16be
:: FunPtr (Ptr C'sqlite3_context -> Ptr () -> CInt -> FunPtr (Ptr () -> IO ()) -> IO ())
foreign import ccall "sqlite3_result_value" c'sqlite3_result_value
:: Ptr C'sqlite3_context -> Ptr C'sqlite3_value -> IO ()
foreign import ccall "&sqlite3_result_value" p'sqlite3_result_value
:: FunPtr (Ptr C'sqlite3_context -> Ptr C'sqlite3_value -> IO ())
foreign import ccall "sqlite3_result_zeroblob" c'sqlite3_result_zeroblob
:: Ptr C'sqlite3_context -> CInt -> IO ()
foreign import ccall "&sqlite3_result_zeroblob" p'sqlite3_result_zeroblob
:: FunPtr (Ptr C'sqlite3_context -> CInt -> IO ())
foreign import ccall "sqlite3_stricmp" c'sqlite3_stricmp
:: CString -> CString -> IO CInt
foreign import ccall "&sqlite3_stricmp" p'sqlite3_stricmp
:: FunPtr (CString -> CString -> IO CInt)
foreign import ccall "sqlite3_strnicmp" c'sqlite3_strnicmp
:: CString -> CString -> CInt -> IO CInt
foreign import ccall "&sqlite3_strnicmp" p'sqlite3_strnicmp
:: FunPtr (CString -> CString -> CInt -> IO CInt)
foreign import ccall "sqlite3_uri_parameter" c'sqlite3_uri_parameter
:: CString -> CString -> IO CString
foreign import ccall "&sqlite3_uri_parameter" p'sqlite3_uri_parameter
:: FunPtr (CString -> CString -> IO CString)
foreign import ccall "sqlite3_uri_boolean" c'sqlite3_uri_boolean
:: CString -> CString -> CInt -> IO CInt
foreign import ccall "&sqlite3_uri_boolean" p'sqlite3_uri_boolean
:: FunPtr (CString -> CString -> CInt -> IO CInt)
foreign import ccall "sqlite3_uri_int64" c'sqlite3_uri_int64
:: CString -> CString -> C'sqlite3_int64 -> IO C'sqlite3_int64
foreign import ccall "&sqlite3_uri_int64" p'sqlite3_uri_int64
:: FunPtr (CString -> CString -> C'sqlite3_int64 -> IO C'sqlite3_int64)
foreign import ccall "sqlite3_value_blob" c'sqlite3_value_blob
:: Ptr C'sqlite3_value -> IO (Ptr ())
foreign import ccall "&sqlite3_value_blob" p'sqlite3_value_blob
:: FunPtr (Ptr C'sqlite3_value -> IO (Ptr ()))
foreign import ccall "sqlite3_value_bytes" c'sqlite3_value_bytes
:: Ptr C'sqlite3_value -> IO CInt
foreign import ccall "&sqlite3_value_bytes" p'sqlite3_value_bytes
:: FunPtr (Ptr C'sqlite3_value -> IO CInt)
foreign import ccall "sqlite3_value_bytes16" c'sqlite3_value_bytes16
:: Ptr C'sqlite3_value -> IO CInt
foreign import ccall "&sqlite3_value_bytes16" p'sqlite3_value_bytes16
:: FunPtr (Ptr C'sqlite3_value -> IO CInt)
foreign import ccall "sqlite3_value_double" c'sqlite3_value_double
:: Ptr C'sqlite3_value -> IO CDouble
foreign import ccall "&sqlite3_value_double" p'sqlite3_value_double
:: FunPtr (Ptr C'sqlite3_value -> IO CDouble)
foreign import ccall "sqlite3_value_int" c'sqlite3_value_int
:: Ptr C'sqlite3_value -> IO CInt
foreign import ccall "&sqlite3_value_int" p'sqlite3_value_int
:: FunPtr (Ptr C'sqlite3_value -> IO CInt)
foreign import ccall "sqlite3_value_int64" c'sqlite3_value_int64
:: Ptr C'sqlite3_value -> IO C'sqlite3_int64
foreign import ccall "&sqlite3_value_int64" p'sqlite3_value_int64
:: FunPtr (Ptr C'sqlite3_value -> IO C'sqlite3_int64)
foreign import ccall "sqlite3_value_text" c'sqlite3_value_text
:: Ptr C'sqlite3_value -> IO (Ptr CUChar)
foreign import ccall "&sqlite3_value_text" p'sqlite3_value_text
:: FunPtr (Ptr C'sqlite3_value -> IO (Ptr CUChar))
foreign import ccall "sqlite3_value_text16" c'sqlite3_value_text16
:: Ptr C'sqlite3_value -> IO (Ptr ())
foreign import ccall "&sqlite3_value_text16" p'sqlite3_value_text16
:: FunPtr (Ptr C'sqlite3_value -> IO (Ptr ()))
foreign import ccall "sqlite3_value_text16le" c'sqlite3_value_text16le
:: Ptr C'sqlite3_value -> IO (Ptr ())
foreign import ccall "&sqlite3_value_text16le" p'sqlite3_value_text16le
:: FunPtr (Ptr C'sqlite3_value -> IO (Ptr ()))
foreign import ccall "sqlite3_value_text16be" c'sqlite3_value_text16be
:: Ptr C'sqlite3_value -> IO (Ptr ())
foreign import ccall "&sqlite3_value_text16be" p'sqlite3_value_text16be
:: FunPtr (Ptr C'sqlite3_value -> IO (Ptr ()))
foreign import ccall "sqlite3_value_type" c'sqlite3_value_type
:: Ptr C'sqlite3_value -> IO CInt
foreign import ccall "&sqlite3_value_type" p'sqlite3_value_type
:: FunPtr (Ptr C'sqlite3_value -> IO CInt)
foreign import ccall "sqlite3_value_numeric_type" c'sqlite3_value_numeric_type
:: Ptr C'sqlite3_value -> IO CInt
foreign import ccall "&sqlite3_value_numeric_type" p'sqlite3_value_numeric_type
:: FunPtr (Ptr C'sqlite3_value -> IO CInt)
foreign import ccall "sqlite3_vfs_find" c'sqlite3_vfs_find
:: CString -> IO (Ptr C'sqlite3_vfs)
foreign import ccall "&sqlite3_vfs_find" p'sqlite3_vfs_find
:: FunPtr (CString -> IO (Ptr C'sqlite3_vfs))
foreign import ccall "sqlite3_vfs_register" c'sqlite3_vfs_register
:: Ptr C'sqlite3_vfs -> CInt -> IO CInt
foreign import ccall "&sqlite3_vfs_register" p'sqlite3_vfs_register
:: FunPtr (Ptr C'sqlite3_vfs -> CInt -> IO CInt)
foreign import ccall "sqlite3_vfs_unregister" c'sqlite3_vfs_unregister
:: Ptr C'sqlite3_vfs -> IO CInt
foreign import ccall "&sqlite3_vfs_unregister" p'sqlite3_vfs_unregister
:: FunPtr (Ptr C'sqlite3_vfs -> IO CInt)
foreign import ccall "sqlite3_bind_blob" c'sqlite3_bind_blob
:: Ptr C'sqlite3_stmt -> CInt -> Ptr () -> CInt -> FunPtr (Ptr () -> IO ()) -> IO CInt
foreign import ccall "&sqlite3_bind_blob" p'sqlite3_bind_blob
:: FunPtr (Ptr C'sqlite3_stmt -> CInt -> Ptr () -> CInt -> FunPtr (Ptr () -> IO ()) -> IO CInt)
foreign import ccall "sqlite3_bind_double" c'sqlite3_bind_double
:: Ptr C'sqlite3_stmt -> CInt -> CDouble -> IO CInt
foreign import ccall "&sqlite3_bind_double" p'sqlite3_bind_double
:: FunPtr (Ptr C'sqlite3_stmt -> CInt -> CDouble -> IO CInt)
foreign import ccall "sqlite3_bind_int" c'sqlite3_bind_int
:: Ptr C'sqlite3_stmt -> CInt -> CInt -> IO CInt
foreign import ccall "&sqlite3_bind_int" p'sqlite3_bind_int
:: FunPtr (Ptr C'sqlite3_stmt -> CInt -> CInt -> IO CInt)
foreign import ccall "sqlite3_bind_int64" c'sqlite3_bind_int64
:: Ptr C'sqlite3_stmt -> CInt -> C'sqlite3_int64 -> IO CInt
foreign import ccall "&sqlite3_bind_int64" p'sqlite3_bind_int64
:: FunPtr (Ptr C'sqlite3_stmt -> CInt -> C'sqlite3_int64 -> IO CInt)
foreign import ccall "sqlite3_bind_null" c'sqlite3_bind_null
:: Ptr C'sqlite3_stmt -> CInt -> IO CInt
foreign import ccall "&sqlite3_bind_null" p'sqlite3_bind_null
:: FunPtr (Ptr C'sqlite3_stmt -> CInt -> IO CInt)
foreign import ccall "sqlite3_bind_text" c'sqlite3_bind_text
:: Ptr C'sqlite3_stmt -> CInt -> CString -> CInt -> FunPtr (Ptr () -> IO ()) -> IO CInt
foreign import ccall "&sqlite3_bind_text" p'sqlite3_bind_text
:: FunPtr (Ptr C'sqlite3_stmt -> CInt -> CString -> CInt -> FunPtr (Ptr () -> IO ()) -> IO CInt)
foreign import ccall "sqlite3_bind_text16" c'sqlite3_bind_text16
:: Ptr C'sqlite3_stmt -> CInt -> Ptr () -> CInt -> FunPtr (Ptr () -> IO ()) -> IO CInt
foreign import ccall "&sqlite3_bind_text16" p'sqlite3_bind_text16
:: FunPtr (Ptr C'sqlite3_stmt -> CInt -> Ptr () -> CInt -> FunPtr (Ptr () -> IO ()) -> IO CInt)
foreign import ccall "sqlite3_bind_value" c'sqlite3_bind_value
:: Ptr C'sqlite3_stmt -> CInt -> Ptr C'sqlite3_value -> IO CInt
foreign import ccall "&sqlite3_bind_value" p'sqlite3_bind_value
:: FunPtr (Ptr C'sqlite3_stmt -> CInt -> Ptr C'sqlite3_value -> IO CInt)
foreign import ccall "sqlite3_bind_zeroblob" c'sqlite3_bind_zeroblob
:: Ptr C'sqlite3_stmt -> CInt -> CInt -> IO CInt
foreign import ccall "&sqlite3_bind_zeroblob" p'sqlite3_bind_zeroblob
:: FunPtr (Ptr C'sqlite3_stmt -> CInt -> CInt -> IO CInt)
foreign import ccall "sqlite3_prepare" c'sqlite3_prepare
:: Ptr C'sqlite3 -> CString -> CInt -> Ptr (Ptr C'sqlite3_stmt) -> Ptr CString -> IO CInt
foreign import ccall "&sqlite3_prepare" p'sqlite3_prepare
:: FunPtr (Ptr C'sqlite3 -> CString -> CInt -> Ptr (Ptr C'sqlite3_stmt) -> Ptr CString -> IO CInt)
foreign import ccall "sqlite3_prepare_v2" c'sqlite3_prepare_v2
:: Ptr C'sqlite3 -> CString -> CInt -> Ptr (Ptr C'sqlite3_stmt) -> Ptr CString -> IO CInt
foreign import ccall "&sqlite3_prepare_v2" p'sqlite3_prepare_v2
:: FunPtr (Ptr C'sqlite3 -> CString -> CInt -> Ptr (Ptr C'sqlite3_stmt) -> Ptr CString -> IO CInt)
foreign import ccall "sqlite3_prepare16" c'sqlite3_prepare16
:: Ptr C'sqlite3 -> Ptr () -> CInt -> Ptr (Ptr C'sqlite3_stmt) -> Ptr (Ptr ()) -> IO CInt
foreign import ccall "&sqlite3_prepare16" p'sqlite3_prepare16
:: FunPtr (Ptr C'sqlite3 -> Ptr () -> CInt -> Ptr (Ptr C'sqlite3_stmt) -> Ptr (Ptr ()) -> IO CInt)
foreign import ccall "sqlite3_prepare16_v2" c'sqlite3_prepare16_v2
:: Ptr C'sqlite3 -> Ptr () -> CInt -> Ptr (Ptr C'sqlite3_stmt) -> Ptr (Ptr ()) -> IO CInt
foreign import ccall "&sqlite3_prepare16_v2" p'sqlite3_prepare16_v2
:: FunPtr (Ptr C'sqlite3 -> Ptr () -> CInt -> Ptr (Ptr C'sqlite3_stmt) -> Ptr (Ptr ()) -> IO CInt)
foreign import ccall "sqlite3_create_function" c'sqlite3_create_function
:: Ptr C'sqlite3 -> CString -> CInt -> CInt -> Ptr () -> FunPtr (Ptr C'sqlite3_context -> CInt -> Ptr (Ptr C'sqlite3_value) -> IO ()) -> FunPtr (Ptr C'sqlite3_context -> CInt -> Ptr (Ptr C'sqlite3_value) -> IO ()) -> FunPtr (Ptr C'sqlite3_context -> IO ()) -> IO CInt
foreign import ccall "&sqlite3_create_function" p'sqlite3_create_function
:: FunPtr (Ptr C'sqlite3 -> CString -> CInt -> CInt -> Ptr () -> FunPtr (Ptr C'sqlite3_context -> CInt -> Ptr (Ptr C'sqlite3_value) -> IO ()) -> FunPtr (Ptr C'sqlite3_context -> CInt -> Ptr (Ptr C'sqlite3_value) -> IO ()) -> FunPtr (Ptr C'sqlite3_context -> IO ()) -> IO CInt)
foreign import ccall "sqlite3_create_function16" c'sqlite3_create_function16
:: Ptr C'sqlite3 -> Ptr () -> CInt -> CInt -> Ptr () -> FunPtr (Ptr C'sqlite3_context -> CInt -> Ptr (Ptr C'sqlite3_value) -> IO ()) -> FunPtr (Ptr C'sqlite3_context -> CInt -> Ptr (Ptr C'sqlite3_value) -> IO ()) -> FunPtr (Ptr C'sqlite3_context -> IO ()) -> IO CInt
foreign import ccall "&sqlite3_create_function16" p'sqlite3_create_function16
:: FunPtr (Ptr C'sqlite3 -> Ptr () -> CInt -> CInt -> Ptr () -> FunPtr (Ptr C'sqlite3_context -> CInt -> Ptr (Ptr C'sqlite3_value) -> IO ()) -> FunPtr (Ptr C'sqlite3_context -> CInt -> Ptr (Ptr C'sqlite3_value) -> IO ()) -> FunPtr (Ptr C'sqlite3_context -> IO ()) -> IO CInt)
foreign import ccall "sqlite3_create_function_v2" c'sqlite3_create_function_v2
:: Ptr C'sqlite3 -> CString -> CInt -> CInt -> Ptr () -> FunPtr (Ptr C'sqlite3_context -> CInt -> Ptr (Ptr C'sqlite3_value) -> IO ()) -> FunPtr (Ptr C'sqlite3_context -> CInt -> Ptr (Ptr C'sqlite3_value) -> IO ()) -> FunPtr (Ptr C'sqlite3_context -> IO ()) -> FunPtr (Ptr () -> IO ()) -> IO CInt
foreign import ccall "&sqlite3_create_function_v2" p'sqlite3_create_function_v2
:: FunPtr (Ptr C'sqlite3 -> CString -> CInt -> CInt -> Ptr () -> FunPtr (Ptr C'sqlite3_context -> CInt -> Ptr (Ptr C'sqlite3_value) -> IO ()) -> FunPtr (Ptr C'sqlite3_context -> CInt -> Ptr (Ptr C'sqlite3_value) -> IO ()) -> FunPtr (Ptr C'sqlite3_context -> IO ()) -> FunPtr (Ptr () -> IO ()) -> IO CInt)
foreign import ccall "sqlite3_get_autocommit" c'sqlite3_get_autocommit
:: Ptr C'sqlite3 -> IO CInt
foreign import ccall "&sqlite3_get_autocommit" p'sqlite3_get_autocommit
:: FunPtr (Ptr C'sqlite3 -> IO CInt)
foreign import ccall "sqlite3_column_blob" c'sqlite3_column_blob
:: Ptr C'sqlite3_stmt -> CInt -> IO (Ptr ())
foreign import ccall "&sqlite3_column_blob" p'sqlite3_column_blob
:: FunPtr (Ptr C'sqlite3_stmt -> CInt -> IO (Ptr ()))
foreign import ccall "sqlite3_column_bytes" c'sqlite3_column_bytes
:: Ptr C'sqlite3_stmt -> CInt -> IO CInt
foreign import ccall "&sqlite3_column_bytes" p'sqlite3_column_bytes
:: FunPtr (Ptr C'sqlite3_stmt -> CInt -> IO CInt)
foreign import ccall "sqlite3_column_bytes16" c'sqlite3_column_bytes16
:: Ptr C'sqlite3_stmt -> CInt -> IO CInt
foreign import ccall "&sqlite3_column_bytes16" p'sqlite3_column_bytes16
:: FunPtr (Ptr C'sqlite3_stmt -> CInt -> IO CInt)
foreign import ccall "sqlite3_column_double" c'sqlite3_column_double
:: Ptr C'sqlite3_stmt -> CInt -> IO CDouble
foreign import ccall "&sqlite3_column_double" p'sqlite3_column_double
:: FunPtr (Ptr C'sqlite3_stmt -> CInt -> IO CDouble)
foreign import ccall "sqlite3_column_int" c'sqlite3_column_int
:: Ptr C'sqlite3_stmt -> CInt -> IO CInt
foreign import ccall "&sqlite3_column_int" p'sqlite3_column_int
:: FunPtr (Ptr C'sqlite3_stmt -> CInt -> IO CInt)
foreign import ccall "sqlite3_column_int64" c'sqlite3_column_int64
:: Ptr C'sqlite3_stmt -> CInt -> IO C'sqlite3_int64
foreign import ccall "&sqlite3_column_int64" p'sqlite3_column_int64
:: FunPtr (Ptr C'sqlite3_stmt -> CInt -> IO C'sqlite3_int64)
foreign import ccall "sqlite3_column_text" c'sqlite3_column_text
:: Ptr C'sqlite3_stmt -> CInt -> IO (Ptr CUChar)
foreign import ccall "&sqlite3_column_text" p'sqlite3_column_text
:: FunPtr (Ptr C'sqlite3_stmt -> CInt -> IO (Ptr CUChar))
foreign import ccall "sqlite3_column_text16" c'sqlite3_column_text16
:: Ptr C'sqlite3_stmt -> CInt -> IO (Ptr ())
foreign import ccall "&sqlite3_column_text16" p'sqlite3_column_text16
:: FunPtr (Ptr C'sqlite3_stmt -> CInt -> IO (Ptr ()))
foreign import ccall "sqlite3_column_type" c'sqlite3_column_type
:: Ptr C'sqlite3_stmt -> CInt -> IO CInt
foreign import ccall "&sqlite3_column_type" p'sqlite3_column_type
:: FunPtr (Ptr C'sqlite3_stmt -> CInt -> IO CInt)
foreign import ccall "sqlite3_column_value" c'sqlite3_column_value
:: Ptr C'sqlite3_stmt -> CInt -> IO (Ptr C'sqlite3_value)
foreign import ccall "&sqlite3_column_value" p'sqlite3_column_value
:: FunPtr (Ptr C'sqlite3_stmt -> CInt -> IO (Ptr C'sqlite3_value))