{-# LINE 1 "src/Bindings/Sqlite3.hsc" #-}

{-# LINE 2 "src/Bindings/Sqlite3.hsc" #-}

{-# LINE 3 "src/Bindings/Sqlite3.hsc" #-}

-- | <http://www.sqlite.org/capi3ref.html>

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

{-# LINE 8 "src/Bindings/Sqlite3.hsc" #-}

data C'sqlite3_context = C'sqlite3_context

{-# LINE 10 "src/Bindings/Sqlite3.hsc" #-}

data C'sqlite3_file = C'sqlite3_file{
{-# LINE 12 "src/Bindings/Sqlite3.hsc" #-}

  c'sqlite3_file'pMethods :: Ptr C'sqlite3_io_methods
{-# LINE 13 "src/Bindings/Sqlite3.hsc" #-}

 } deriving (Eq,Show)
instance Storable C'sqlite3_file where
  sizeOf _ = 4
  alignment = sizeOf
  peek p = do
    v0 <- peekByteOff p 0
    return $ C'sqlite3_file v0
  poke p (C'sqlite3_file v0) = do
    pokeByteOff p 0 v0
    return ()

{-# LINE 14 "src/Bindings/Sqlite3.hsc" #-}

data C'sqlite3_io_methods = C'sqlite3_io_methods{
{-# LINE 16 "src/Bindings/Sqlite3.hsc" #-}

  c'sqlite3_io_methods'iVersion :: CInt
{-# LINE 17 "src/Bindings/Sqlite3.hsc" #-}
,
  c'sqlite3_io_methods'xClose :: FunPtr (Ptr C'sqlite3_file -> IO CInt)
{-# LINE 18 "src/Bindings/Sqlite3.hsc" #-}
,
  c'sqlite3_io_methods'xRead :: FunPtr (Ptr C'sqlite3_file -> Ptr () -> CInt -> Int64 -> IO CInt)
{-# LINE 20 "src/Bindings/Sqlite3.hsc" #-}
,
  c'sqlite3_io_methods'xWrite :: FunPtr (Ptr C'sqlite3_file -> Ptr () -> CInt -> Int64 -> IO ())
{-# LINE 22 "src/Bindings/Sqlite3.hsc" #-}
,
  c'sqlite3_io_methods'xTruncate :: FunPtr (Ptr C'sqlite3_file -> Int64 -> IO CInt)
{-# LINE 24 "src/Bindings/Sqlite3.hsc" #-}
,
  c'sqlite3_io_methods'xSync :: FunPtr (Ptr C'sqlite3_file -> CInt -> IO CInt)
{-# LINE 25 "src/Bindings/Sqlite3.hsc" #-}
,
  c'sqlite3_io_methods'xFileSize :: FunPtr (Ptr C'sqlite3_file -> Ptr Int64 -> IO CInt)
{-# LINE 27 "src/Bindings/Sqlite3.hsc" #-}
,
  c'sqlite3_io_methods'xLock :: FunPtr (Ptr C'sqlite3_file -> CInt -> IO CInt)
{-# LINE 28 "src/Bindings/Sqlite3.hsc" #-}
,
  c'sqlite3_io_methods'xUnlock :: FunPtr (Ptr C'sqlite3_file -> CInt -> IO CInt)
{-# LINE 29 "src/Bindings/Sqlite3.hsc" #-}
,
  c'sqlite3_io_methods'xCheckReservedLock :: FunPtr (Ptr C'sqlite3_file -> Ptr CInt -> IO CInt)
{-# LINE 31 "src/Bindings/Sqlite3.hsc" #-}
,
  c'sqlite3_io_methods'xFileControl :: FunPtr (Ptr C'sqlite3_file -> CInt -> Ptr () -> IO CInt)
{-# LINE 33 "src/Bindings/Sqlite3.hsc" #-}
,
  c'sqlite3_io_methods'xSectorSize :: FunPtr (Ptr C'sqlite3_file -> IO CInt)
{-# LINE 34 "src/Bindings/Sqlite3.hsc" #-}
,
  c'sqlite3_io_methods'xDeviceCharacteristics :: FunPtr (Ptr C'sqlite3_file -> IO CInt)
{-# LINE 36 "src/Bindings/Sqlite3.hsc" #-}

 } deriving (Eq,Show)
instance Storable C'sqlite3_io_methods where
  sizeOf _ = 68
  alignment = sizeOf
  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_io_methods v0 v1 v2 v3 v4 v5 v6 v7 v8 v9 v10 v11 v12
  poke p (C'sqlite3_io_methods 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 ()

{-# LINE 37 "src/Bindings/Sqlite3.hsc" #-}

data C'sqlite3_mutex = C'sqlite3_mutex

{-# LINE 39 "src/Bindings/Sqlite3.hsc" #-}

foreign import ccall "&sqlite3_temp_directory" p'sqlite3_temp_directory
  :: Ptr (CString)

{-# LINE 41 "src/Bindings/Sqlite3.hsc" #-}

data C'sqlite3_vfs = C'sqlite3_vfs{
{-# LINE 43 "src/Bindings/Sqlite3.hsc" #-}

  c'sqlite3_vfs'iVersion :: CInt
{-# LINE 44 "src/Bindings/Sqlite3.hsc" #-}
,
  c'sqlite3_vfs'szOsFile :: CInt
{-# LINE 45 "src/Bindings/Sqlite3.hsc" #-}
,
  c'sqlite3_vfs'mxPathname :: CInt
{-# LINE 46 "src/Bindings/Sqlite3.hsc" #-}
,
  c'sqlite3_vfs'pNext :: Ptr C'sqlite3_vfs
{-# LINE 47 "src/Bindings/Sqlite3.hsc" #-}
,
  c'sqlite3_vfs'zName :: CString
{-# LINE 48 "src/Bindings/Sqlite3.hsc" #-}
,
  c'sqlite3_vfs'pAppData :: Ptr ()
{-# LINE 49 "src/Bindings/Sqlite3.hsc" #-}
,
  c'sqlite3_vfs'xOpen :: FunPtr (Ptr C'sqlite3_vfs -> CString -> Ptr C'sqlite3_file -> CInt -> Ptr CInt -> IO CInt)
{-# LINE 51 "src/Bindings/Sqlite3.hsc" #-}
,
  c'sqlite3_vfs'xDelete :: FunPtr (Ptr C'sqlite3_vfs -> CString -> CInt -> IO CInt)
{-# LINE 53 "src/Bindings/Sqlite3.hsc" #-}
,
  c'sqlite3_vfs'xAccess :: FunPtr (Ptr C'sqlite3_vfs -> CString -> CInt -> Ptr CInt -> IO CInt)
{-# LINE 55 "src/Bindings/Sqlite3.hsc" #-}
,
  c'sqlite3_vfs'xFullPathname :: FunPtr (Ptr C'sqlite3_vfs -> CString -> CInt -> CString -> IO CInt)
{-# LINE 57 "src/Bindings/Sqlite3.hsc" #-}
,
  c'sqlite3_vfs'xDlOpen :: FunPtr (Ptr C'sqlite3_vfs -> CString -> IO (Ptr ()))
{-# LINE 58 "src/Bindings/Sqlite3.hsc" #-}
,
  c'sqlite3_vfs'xDlError :: FunPtr (Ptr C'sqlite3_vfs -> CInt -> CString -> IO ())
{-# LINE 60 "src/Bindings/Sqlite3.hsc" #-}
,
  c'sqlite3_vfs'xDlSym :: FunPtr (Ptr C'sqlite3_vfs -> Ptr () -> CString -> IO (FunPtr (IO ())))
{-# LINE 62 "src/Bindings/Sqlite3.hsc" #-}
,
  c'sqlite3_vfs'xDlClose :: FunPtr (Ptr C'sqlite3_vfs -> Ptr () -> IO ())
{-# LINE 63 "src/Bindings/Sqlite3.hsc" #-}
,
  c'sqlite3_vfs'xRandomness :: FunPtr (Ptr C'sqlite3_vfs -> CInt -> CString -> IO CInt)
{-# LINE 65 "src/Bindings/Sqlite3.hsc" #-}
,
  c'sqlite3_vfs'xSleep :: FunPtr (Ptr C'sqlite3_vfs -> CInt -> IO CInt)
{-# LINE 66 "src/Bindings/Sqlite3.hsc" #-}
,
  c'sqlite3_vfs'xCurrentTime :: FunPtr (Ptr C'sqlite3_vfs -> Ptr CDouble -> IO CInt)
{-# LINE 68 "src/Bindings/Sqlite3.hsc" #-}
,
  c'sqlite3_vfs'xGetLastError :: FunPtr (Ptr C'sqlite3_vfs -> CInt -> CString -> IO CInt)
{-# LINE 70 "src/Bindings/Sqlite3.hsc" #-}

 } deriving (Eq,Show)
instance Storable C'sqlite3_vfs where
  sizeOf _ = 76
  alignment = sizeOf
  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
    return $ C'sqlite3_vfs v0 v1 v2 v3 v4 v5 v6 v7 v8 v9 v10 v11 v12 v13 v14 v15 v16 v17
  poke p (C'sqlite3_vfs v0 v1 v2 v3 v4 v5 v6 v7 v8 v9 v10 v11 v12 v13 v14 v15 v16 v17) = 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
    return ()

{-# LINE 71 "src/Bindings/Sqlite3.hsc" #-}

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 ()))

{-# LINE 74 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 75 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 76 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 78 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 80 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 81 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 82 "src/Bindings/Sqlite3.hsc" #-}
foreign import ccall "sqlite3_blob_open" c'sqlite3_blob_open
  :: Ptr C'sqlite3 -> CString -> CString -> CString -> 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 -> Int64 -> CInt -> Ptr (Ptr C'sqlite3_blob) -> IO CInt)

{-# LINE 85 "src/Bindings/Sqlite3.hsc" #-}

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)

{-# LINE 88 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 90 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 92 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 93 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 94 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 95 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 96 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 97 "src/Bindings/Sqlite3.hsc" #-}
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))

{-# LINE 99 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 100 "src/Bindings/Sqlite3.hsc" #-}
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))

{-# LINE 101 "src/Bindings/Sqlite3.hsc" #-}
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))

{-# LINE 102 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 103 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 106 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 107 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 109 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 110 "src/Bindings/Sqlite3.hsc" #-}
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 ())

{-# LINE 111 "src/Bindings/Sqlite3.hsc" #-}
foreign import ccall "sqlite3_last_insert_rowid" c'sqlite3_last_insert_rowid
  :: Ptr C'sqlite3 -> IO Int64
foreign import ccall "&sqlite3_last_insert_rowid" p'sqlite3_last_insert_rowid
  :: FunPtr (Ptr C'sqlite3 -> IO Int64)

{-# LINE 112 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 113 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 115 "src/Bindings/Sqlite3.hsc" #-}
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))

{-# LINE 117 "src/Bindings/Sqlite3.hsc" #-}
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 ())

{-# LINE 119 "src/Bindings/Sqlite3.hsc" #-}
foreign import ccall "sqlite3_randomness" c'sqlite3_randomness
  :: CInt -> Ptr () -> IO ()
foreign import ccall "&sqlite3_randomness" p'sqlite3_randomness
  :: FunPtr (CInt -> Ptr () -> IO ())

{-# LINE 120 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 121 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 122 "src/Bindings/Sqlite3.hsc" #-}
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 ())

{-# LINE 123 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 126 "src/Bindings/Sqlite3.hsc" #-}
foreign import ccall "sqlite3_sleep" c'sqlite3_sleep
  :: CInt -> IO CInt
foreign import ccall "&sqlite3_sleep" p'sqlite3_sleep
  :: FunPtr (CInt -> IO CInt)

{-# LINE 127 "src/Bindings/Sqlite3.hsc" #-}
foreign import ccall "sqlite3_soft_heap_limit" c'sqlite3_soft_heap_limit
  :: CInt -> IO ()
foreign import ccall "&sqlite3_soft_heap_limit" p'sqlite3_soft_heap_limit
  :: FunPtr (CInt -> IO ())

{-# LINE 128 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 129 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 130 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 133 "src/Bindings/Sqlite3.hsc" #-}
foreign import ccall "sqlite3_threadsafe" c'sqlite3_threadsafe
  :: IO CInt
foreign import ccall "&sqlite3_threadsafe" p'sqlite3_threadsafe
  :: FunPtr (IO CInt)

{-# LINE 134 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 135 "src/Bindings/Sqlite3.hsc" #-}
foreign import ccall "sqlite3_update_hook" c'sqlite3_update_hook
  :: Ptr C'sqlite3 -> FunPtr (Ptr () -> CInt -> CString -> CString -> Int64 -> IO ()) -> Ptr () -> IO (Ptr ())
foreign import ccall "&sqlite3_update_hook" p'sqlite3_update_hook
  :: FunPtr (Ptr C'sqlite3 -> FunPtr (Ptr () -> CInt -> CString -> CString -> Int64 -> IO ()) -> Ptr () -> IO (Ptr ()))

{-# LINE 138 "src/Bindings/Sqlite3.hsc" #-}
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 ()))

{-# LINE 139 "src/Bindings/Sqlite3.hsc" #-}

c'SQLITE_OK = 0
c'SQLITE_OK :: (Num a) => a

{-# LINE 141 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_ERROR = 1
c'SQLITE_ERROR :: (Num a) => a

{-# LINE 142 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_INTERNAL = 2
c'SQLITE_INTERNAL :: (Num a) => a

{-# LINE 143 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_PERM = 3
c'SQLITE_PERM :: (Num a) => a

{-# LINE 144 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_ABORT = 4
c'SQLITE_ABORT :: (Num a) => a

{-# LINE 145 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_BUSY = 5
c'SQLITE_BUSY :: (Num a) => a

{-# LINE 146 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_LOCKED = 6
c'SQLITE_LOCKED :: (Num a) => a

{-# LINE 147 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_NOMEM = 7
c'SQLITE_NOMEM :: (Num a) => a

{-# LINE 148 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_READONLY = 8
c'SQLITE_READONLY :: (Num a) => a

{-# LINE 149 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_INTERRUPT = 9
c'SQLITE_INTERRUPT :: (Num a) => a

{-# LINE 150 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_IOERR = 10
c'SQLITE_IOERR :: (Num a) => a

{-# LINE 151 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_CORRUPT = 11
c'SQLITE_CORRUPT :: (Num a) => a

{-# LINE 152 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_NOTFOUND = 12
c'SQLITE_NOTFOUND :: (Num a) => a

{-# LINE 153 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_FULL = 13
c'SQLITE_FULL :: (Num a) => a

{-# LINE 154 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_CANTOPEN = 14
c'SQLITE_CANTOPEN :: (Num a) => a

{-# LINE 155 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_PROTOCOL = 15
c'SQLITE_PROTOCOL :: (Num a) => a

{-# LINE 156 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_EMPTY = 16
c'SQLITE_EMPTY :: (Num a) => a

{-# LINE 157 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_SCHEMA = 17
c'SQLITE_SCHEMA :: (Num a) => a

{-# LINE 158 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_TOOBIG = 18
c'SQLITE_TOOBIG :: (Num a) => a

{-# LINE 159 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_CONSTRAINT = 19
c'SQLITE_CONSTRAINT :: (Num a) => a

{-# LINE 160 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_MISMATCH = 20
c'SQLITE_MISMATCH :: (Num a) => a

{-# LINE 161 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_MISUSE = 21
c'SQLITE_MISUSE :: (Num a) => a

{-# LINE 162 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_NOLFS = 22
c'SQLITE_NOLFS :: (Num a) => a

{-# LINE 163 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_AUTH = 23
c'SQLITE_AUTH :: (Num a) => a

{-# LINE 164 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_FORMAT = 24
c'SQLITE_FORMAT :: (Num a) => a

{-# LINE 165 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_RANGE = 25
c'SQLITE_RANGE :: (Num a) => a

{-# LINE 166 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_NOTADB = 26
c'SQLITE_NOTADB :: (Num a) => a

{-# LINE 167 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_ROW = 100
c'SQLITE_ROW :: (Num a) => a

{-# LINE 168 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_DONE = 101
c'SQLITE_DONE :: (Num a) => a

{-# LINE 169 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_ACCESS_EXISTS = 0
c'SQLITE_ACCESS_EXISTS :: (Num a) => a

{-# LINE 170 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_ACCESS_READWRITE = 1
c'SQLITE_ACCESS_READWRITE :: (Num a) => a

{-# LINE 171 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_ACCESS_READ = 2
c'SQLITE_ACCESS_READ :: (Num a) => a

{-# LINE 172 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_CREATE_INDEX = 1
c'SQLITE_CREATE_INDEX :: (Num a) => a

{-# LINE 173 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_CREATE_TABLE = 2
c'SQLITE_CREATE_TABLE :: (Num a) => a

{-# LINE 174 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_CREATE_TEMP_INDEX = 3
c'SQLITE_CREATE_TEMP_INDEX :: (Num a) => a

{-# LINE 175 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_CREATE_TEMP_TABLE = 4
c'SQLITE_CREATE_TEMP_TABLE :: (Num a) => a

{-# LINE 176 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_CREATE_TEMP_TRIGGER = 5
c'SQLITE_CREATE_TEMP_TRIGGER :: (Num a) => a

{-# LINE 177 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_CREATE_TEMP_VIEW = 6
c'SQLITE_CREATE_TEMP_VIEW :: (Num a) => a

{-# LINE 178 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_CREATE_TRIGGER = 7
c'SQLITE_CREATE_TRIGGER :: (Num a) => a

{-# LINE 179 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_CREATE_VIEW = 8
c'SQLITE_CREATE_VIEW :: (Num a) => a

{-# LINE 180 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_DELETE = 9
c'SQLITE_DELETE :: (Num a) => a

{-# LINE 181 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_DROP_INDEX = 10
c'SQLITE_DROP_INDEX :: (Num a) => a

{-# LINE 182 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_DROP_TABLE = 11
c'SQLITE_DROP_TABLE :: (Num a) => a

{-# LINE 183 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_DROP_TEMP_INDEX = 12
c'SQLITE_DROP_TEMP_INDEX :: (Num a) => a

{-# LINE 184 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_DROP_TEMP_TABLE = 13
c'SQLITE_DROP_TEMP_TABLE :: (Num a) => a

{-# LINE 185 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_DROP_TEMP_TRIGGER = 14
c'SQLITE_DROP_TEMP_TRIGGER :: (Num a) => a

{-# LINE 186 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_DROP_TEMP_VIEW = 15
c'SQLITE_DROP_TEMP_VIEW :: (Num a) => a

{-# LINE 187 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_DROP_TRIGGER = 16
c'SQLITE_DROP_TRIGGER :: (Num a) => a

{-# LINE 188 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_DROP_VIEW = 17
c'SQLITE_DROP_VIEW :: (Num a) => a

{-# LINE 189 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_INSERT = 18
c'SQLITE_INSERT :: (Num a) => a

{-# LINE 190 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_PRAGMA = 19
c'SQLITE_PRAGMA :: (Num a) => a

{-# LINE 191 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_READ = 20
c'SQLITE_READ :: (Num a) => a

{-# LINE 192 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_SELECT = 21
c'SQLITE_SELECT :: (Num a) => a

{-# LINE 193 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_TRANSACTION = 22
c'SQLITE_TRANSACTION :: (Num a) => a

{-# LINE 194 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_UPDATE = 23
c'SQLITE_UPDATE :: (Num a) => a

{-# LINE 195 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_ATTACH = 24
c'SQLITE_ATTACH :: (Num a) => a

{-# LINE 196 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_DETACH = 25
c'SQLITE_DETACH :: (Num a) => a

{-# LINE 197 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_ALTER_TABLE = 26
c'SQLITE_ALTER_TABLE :: (Num a) => a

{-# LINE 198 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_REINDEX = 27
c'SQLITE_REINDEX :: (Num a) => a

{-# LINE 199 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_ANALYZE = 28
c'SQLITE_ANALYZE :: (Num a) => a

{-# LINE 200 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_CREATE_VTABLE = 29
c'SQLITE_CREATE_VTABLE :: (Num a) => a

{-# LINE 201 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_DROP_VTABLE = 30
c'SQLITE_DROP_VTABLE :: (Num a) => a

{-# LINE 202 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_FUNCTION = 31
c'SQLITE_FUNCTION :: (Num a) => a

{-# LINE 203 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_SAVEPOINT = 32
c'SQLITE_SAVEPOINT :: (Num a) => a

{-# LINE 204 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_COPY = 0
c'SQLITE_COPY :: (Num a) => a

{-# LINE 205 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_UTF8 = 1
c'SQLITE_UTF8 :: (Num a) => a

{-# LINE 206 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_UTF16LE = 2
c'SQLITE_UTF16LE :: (Num a) => a

{-# LINE 207 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_UTF16BE = 3
c'SQLITE_UTF16BE :: (Num a) => a

{-# LINE 208 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_UTF16 = 4
c'SQLITE_UTF16 :: (Num a) => a

{-# LINE 209 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_ANY = 5
c'SQLITE_ANY :: (Num a) => a

{-# LINE 210 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_UTF16_ALIGNED = 8
c'SQLITE_UTF16_ALIGNED :: (Num a) => a

{-# LINE 211 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_INTEGER = 1
c'SQLITE_INTEGER :: (Num a) => a

{-# LINE 212 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_FLOAT = 2
c'SQLITE_FLOAT :: (Num a) => a

{-# LINE 213 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_BLOB = 4
c'SQLITE_BLOB :: (Num a) => a

{-# LINE 214 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_NULL = 5
c'SQLITE_NULL :: (Num a) => a

{-# LINE 215 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_TEXT = 3
c'SQLITE_TEXT :: (Num a) => a

{-# LINE 216 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE3_TEXT = 3
c'SQLITE3_TEXT :: (Num a) => a

{-# LINE 217 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_DENY = 1
c'SQLITE_DENY :: (Num a) => a

{-# LINE 218 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_IGNORE = 2
c'SQLITE_IGNORE :: (Num a) => a

{-# LINE 219 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_FCNTL_LOCKSTATE = 1
c'SQLITE_FCNTL_LOCKSTATE :: (Num a) => a

{-# LINE 220 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_GET_LOCKPROXYFILE = 2
c'SQLITE_GET_LOCKPROXYFILE :: (Num a) => a

{-# LINE 221 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_SET_LOCKPROXYFILE = 3
c'SQLITE_SET_LOCKPROXYFILE :: (Num a) => a

{-# LINE 222 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_LAST_ERRNO = 4
c'SQLITE_LAST_ERRNO :: (Num a) => a

{-# LINE 223 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_IOCAP_ATOMIC = 1
c'SQLITE_IOCAP_ATOMIC :: (Num a) => a

{-# LINE 224 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_IOCAP_ATOMIC512 = 2
c'SQLITE_IOCAP_ATOMIC512 :: (Num a) => a

{-# LINE 225 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_IOCAP_ATOMIC1K = 4
c'SQLITE_IOCAP_ATOMIC1K :: (Num a) => a

{-# LINE 226 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_IOCAP_ATOMIC2K = 8
c'SQLITE_IOCAP_ATOMIC2K :: (Num a) => a

{-# LINE 227 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_IOCAP_ATOMIC4K = 16
c'SQLITE_IOCAP_ATOMIC4K :: (Num a) => a

{-# LINE 228 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_IOCAP_ATOMIC8K = 32
c'SQLITE_IOCAP_ATOMIC8K :: (Num a) => a

{-# LINE 229 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_IOCAP_ATOMIC16K = 64
c'SQLITE_IOCAP_ATOMIC16K :: (Num a) => a

{-# LINE 230 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_IOCAP_ATOMIC32K = 128
c'SQLITE_IOCAP_ATOMIC32K :: (Num a) => a

{-# LINE 231 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_IOCAP_ATOMIC64K = 256
c'SQLITE_IOCAP_ATOMIC64K :: (Num a) => a

{-# LINE 232 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_IOCAP_SAFE_APPEND = 512
c'SQLITE_IOCAP_SAFE_APPEND :: (Num a) => a

{-# LINE 233 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_IOCAP_SEQUENTIAL = 1024
c'SQLITE_IOCAP_SEQUENTIAL :: (Num a) => a

{-# LINE 234 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_IOERR_READ = 266
c'SQLITE_IOERR_READ :: (Num a) => a

{-# LINE 235 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_IOERR_SHORT_READ = 522
c'SQLITE_IOERR_SHORT_READ :: (Num a) => a

{-# LINE 236 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_IOERR_WRITE = 778
c'SQLITE_IOERR_WRITE :: (Num a) => a

{-# LINE 237 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_IOERR_FSYNC = 1034
c'SQLITE_IOERR_FSYNC :: (Num a) => a

{-# LINE 238 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_IOERR_DIR_FSYNC = 1290
c'SQLITE_IOERR_DIR_FSYNC :: (Num a) => a

{-# LINE 239 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_IOERR_TRUNCATE = 1546
c'SQLITE_IOERR_TRUNCATE :: (Num a) => a

{-# LINE 240 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_IOERR_FSTAT = 1802
c'SQLITE_IOERR_FSTAT :: (Num a) => a

{-# LINE 241 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_IOERR_UNLOCK = 2058
c'SQLITE_IOERR_UNLOCK :: (Num a) => a

{-# LINE 242 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_IOERR_RDLOCK = 2314
c'SQLITE_IOERR_RDLOCK :: (Num a) => a

{-# LINE 243 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_IOERR_DELETE = 2570
c'SQLITE_IOERR_DELETE :: (Num a) => a

{-# LINE 244 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_IOERR_BLOCKED = 2826
c'SQLITE_IOERR_BLOCKED :: (Num a) => a

{-# LINE 245 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_IOERR_NOMEM = 3082
c'SQLITE_IOERR_NOMEM :: (Num a) => a

{-# LINE 246 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_IOERR_ACCESS = 3338
c'SQLITE_IOERR_ACCESS :: (Num a) => a

{-# LINE 247 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_IOERR_CHECKRESERVEDLOCK = 3594
c'SQLITE_IOERR_CHECKRESERVEDLOCK :: (Num a) => a

{-# LINE 248 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_IOERR_LOCK = 3850
c'SQLITE_IOERR_LOCK :: (Num a) => a

{-# LINE 249 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_IOERR_CLOSE = 4106
c'SQLITE_IOERR_CLOSE :: (Num a) => a

{-# LINE 250 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_IOERR_DIR_CLOSE = 4362
c'SQLITE_IOERR_DIR_CLOSE :: (Num a) => a

{-# LINE 251 "src/Bindings/Sqlite3.hsc" #-}
-- num SQLITE_LOCKED_SHAREDCACHE
c'SQLITE_LIMIT_LENGTH = 0
c'SQLITE_LIMIT_LENGTH :: (Num a) => a

{-# LINE 253 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_LIMIT_SQL_LENGTH = 1
c'SQLITE_LIMIT_SQL_LENGTH :: (Num a) => a

{-# LINE 254 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_LIMIT_COLUMN = 2
c'SQLITE_LIMIT_COLUMN :: (Num a) => a

{-# LINE 255 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_LIMIT_EXPR_DEPTH = 3
c'SQLITE_LIMIT_EXPR_DEPTH :: (Num a) => a

{-# LINE 256 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_LIMIT_COMPOUND_SELECT = 4
c'SQLITE_LIMIT_COMPOUND_SELECT :: (Num a) => a

{-# LINE 257 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_LIMIT_VDBE_OP = 5
c'SQLITE_LIMIT_VDBE_OP :: (Num a) => a

{-# LINE 258 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_LIMIT_FUNCTION_ARG = 6
c'SQLITE_LIMIT_FUNCTION_ARG :: (Num a) => a

{-# LINE 259 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_LIMIT_ATTACHED = 7
c'SQLITE_LIMIT_ATTACHED :: (Num a) => a

{-# LINE 260 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_LIMIT_LIKE_PATTERN_LENGTH = 8
c'SQLITE_LIMIT_LIKE_PATTERN_LENGTH :: (Num a) => a

{-# LINE 261 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_LIMIT_VARIABLE_NUMBER = 9
c'SQLITE_LIMIT_VARIABLE_NUMBER :: (Num a) => a

{-# LINE 262 "src/Bindings/Sqlite3.hsc" #-}
-- num SQLITE_LIMIT_TRIGGER_DEPTH
c'SQLITE_LOCK_NONE = 0
c'SQLITE_LOCK_NONE :: (Num a) => a

{-# LINE 264 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_LOCK_SHARED = 1
c'SQLITE_LOCK_SHARED :: (Num a) => a

{-# LINE 265 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_LOCK_RESERVED = 2
c'SQLITE_LOCK_RESERVED :: (Num a) => a

{-# LINE 266 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_LOCK_PENDING = 3
c'SQLITE_LOCK_PENDING :: (Num a) => a

{-# LINE 267 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_LOCK_EXCLUSIVE = 4
c'SQLITE_LOCK_EXCLUSIVE :: (Num a) => a

{-# LINE 268 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_MUTEX_FAST = 0
c'SQLITE_MUTEX_FAST :: (Num a) => a

{-# LINE 269 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_MUTEX_RECURSIVE = 1
c'SQLITE_MUTEX_RECURSIVE :: (Num a) => a

{-# LINE 270 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_MUTEX_STATIC_MASTER = 2
c'SQLITE_MUTEX_STATIC_MASTER :: (Num a) => a

{-# LINE 271 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_MUTEX_STATIC_MEM = 3
c'SQLITE_MUTEX_STATIC_MEM :: (Num a) => a

{-# LINE 272 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_MUTEX_STATIC_MEM2 = 4
c'SQLITE_MUTEX_STATIC_MEM2 :: (Num a) => a

{-# LINE 273 "src/Bindings/Sqlite3.hsc" #-}
-- num SQLITE_MUTEX_STATIC_OPEN
c'SQLITE_MUTEX_STATIC_PRNG = 5
c'SQLITE_MUTEX_STATIC_PRNG :: (Num a) => a

{-# LINE 275 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_MUTEX_STATIC_LRU = 6
c'SQLITE_MUTEX_STATIC_LRU :: (Num a) => a

{-# LINE 276 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_MUTEX_STATIC_LRU2 = 7
c'SQLITE_MUTEX_STATIC_LRU2 :: (Num a) => a

{-# LINE 277 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_OPEN_READONLY = 1
c'SQLITE_OPEN_READONLY :: (Num a) => a

{-# LINE 278 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_OPEN_READWRITE = 2
c'SQLITE_OPEN_READWRITE :: (Num a) => a

{-# LINE 279 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_OPEN_CREATE = 4
c'SQLITE_OPEN_CREATE :: (Num a) => a

{-# LINE 280 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_OPEN_DELETEONCLOSE = 8
c'SQLITE_OPEN_DELETEONCLOSE :: (Num a) => a

{-# LINE 281 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_OPEN_EXCLUSIVE = 16
c'SQLITE_OPEN_EXCLUSIVE :: (Num a) => a

{-# LINE 282 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_OPEN_MAIN_DB = 256
c'SQLITE_OPEN_MAIN_DB :: (Num a) => a

{-# LINE 283 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_OPEN_TEMP_DB = 512
c'SQLITE_OPEN_TEMP_DB :: (Num a) => a

{-# LINE 284 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_OPEN_TRANSIENT_DB = 1024
c'SQLITE_OPEN_TRANSIENT_DB :: (Num a) => a

{-# LINE 285 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_OPEN_MAIN_JOURNAL = 2048
c'SQLITE_OPEN_MAIN_JOURNAL :: (Num a) => a

{-# LINE 286 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_OPEN_TEMP_JOURNAL = 4096
c'SQLITE_OPEN_TEMP_JOURNAL :: (Num a) => a

{-# LINE 287 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_OPEN_SUBJOURNAL = 8192
c'SQLITE_OPEN_SUBJOURNAL :: (Num a) => a

{-# LINE 288 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_OPEN_MASTER_JOURNAL = 16384
c'SQLITE_OPEN_MASTER_JOURNAL :: (Num a) => a

{-# LINE 289 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_OPEN_NOMUTEX = 32768
c'SQLITE_OPEN_NOMUTEX :: (Num a) => a

{-# LINE 290 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_OPEN_FULLMUTEX = 65536
c'SQLITE_OPEN_FULLMUTEX :: (Num a) => a

{-# LINE 291 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_OPEN_SHAREDCACHE = 131072
c'SQLITE_OPEN_SHAREDCACHE :: (Num a) => a

{-# LINE 292 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_OPEN_PRIVATECACHE = 262144
c'SQLITE_OPEN_PRIVATECACHE :: (Num a) => a

{-# LINE 293 "src/Bindings/Sqlite3.hsc" #-}

c'SQLITE_VERSION = wordPtrToPtr 134955697
c'SQLITE_VERSION :: Ptr a

{-# LINE 295 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_VERSION_NUMBER = 3007003
c'SQLITE_VERSION_NUMBER :: (Num a) => a

{-# LINE 296 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_SOURCE_ID = wordPtrToPtr 134955756
c'SQLITE_SOURCE_ID :: Ptr a

{-# LINE 297 "src/Bindings/Sqlite3.hsc" #-}

-- pointer SQLITE_SOURCE_ID

type C'sqlite3_destructor_type = FunPtr (FunPtr (Ptr () -> IO ()))
foreign import ccall "wrapper" mk'sqlite3_destructor_type
  :: (FunPtr (Ptr () -> IO ())) -> IO C'sqlite3_destructor_type
foreign import ccall "dynamic" mK'sqlite3_destructor_type
  :: C'sqlite3_destructor_type -> (FunPtr (Ptr () -> IO ()))

{-# LINE 301 "src/Bindings/Sqlite3.hsc" #-}

c'SQLITE_STATIC = (castPtrToFunPtr . wordPtrToPtr) 0
c'SQLITE_STATIC :: FunPtr a

{-# LINE 303 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_TRANSIENT = (castPtrToFunPtr . wordPtrToPtr) 4294967295
c'SQLITE_TRANSIENT :: FunPtr a

{-# LINE 304 "src/Bindings/Sqlite3.hsc" #-}

c'SQLITE_SYNC_NORMAL = 2
c'SQLITE_SYNC_NORMAL :: (Num a) => a

{-# LINE 306 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_SYNC_FULL = 3
c'SQLITE_SYNC_FULL :: (Num a) => a

{-# LINE 307 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_SYNC_DATAONLY = 16
c'SQLITE_SYNC_DATAONLY :: (Num a) => a

{-# LINE 308 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_TESTCTRL_PRNG_SAVE = 5
c'SQLITE_TESTCTRL_PRNG_SAVE :: (Num a) => a

{-# LINE 309 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_TESTCTRL_PRNG_RESTORE = 6
c'SQLITE_TESTCTRL_PRNG_RESTORE :: (Num a) => a

{-# LINE 310 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_TESTCTRL_PRNG_RESET = 7
c'SQLITE_TESTCTRL_PRNG_RESET :: (Num a) => a

{-# LINE 311 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_TESTCTRL_BITVEC_TEST = 8
c'SQLITE_TESTCTRL_BITVEC_TEST :: (Num a) => a

{-# LINE 312 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_TESTCTRL_FAULT_INSTALL = 9
c'SQLITE_TESTCTRL_FAULT_INSTALL :: (Num a) => a

{-# LINE 313 "src/Bindings/Sqlite3.hsc" #-}
c'SQLITE_TESTCTRL_BENIGN_MALLOC_HOOKS = 10
c'SQLITE_TESTCTRL_BENIGN_MALLOC_HOOKS :: (Num a) => a

{-# LINE 314 "src/Bindings/Sqlite3.hsc" #-}
-- num SQLITE_TESTCTRL_PENDING_BYTE
-- num SQLITE_TESTCTRL_ASSERT
-- num SQLITE_TESTCTRL_ALWAYS
-- num SQLITE_TESTCTRL_RESERVE

data C'sqlite3_blob = C'sqlite3_blob

{-# LINE 320 "src/Bindings/Sqlite3.hsc" #-}
data C'sqlite3 = C'sqlite3

{-# LINE 321 "src/Bindings/Sqlite3.hsc" #-}
data C'sqlite3_stmt = C'sqlite3_stmt

{-# LINE 322 "src/Bindings/Sqlite3.hsc" #-}
data C'sqlite3_value = C'sqlite3_value

{-# LINE 323 "src/Bindings/Sqlite3.hsc" #-}

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)

{-# LINE 327 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 330 "src/Bindings/Sqlite3.hsc" #-}

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)

{-# LINE 333 "src/Bindings/Sqlite3.hsc" #-}
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 ()))

{-# LINE 335 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 337 "src/Bindings/Sqlite3.hsc" #-}
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 ()))

{-# LINE 339 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 341 "src/Bindings/Sqlite3.hsc" #-}
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 ()))

{-# LINE 343 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 345 "src/Bindings/Sqlite3.hsc" #-}
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 ()))

{-# LINE 347 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 349 "src/Bindings/Sqlite3.hsc" #-}
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 ()))

{-# LINE 351 "src/Bindings/Sqlite3.hsc" #-}

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 ()))

{-# LINE 354 "src/Bindings/Sqlite3.hsc" #-}
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 ()))

{-# LINE 356 "src/Bindings/Sqlite3.hsc" #-}

foreign import ccall "sqlite3_complete" c'sqlite3_complete
  :: CString -> IO CInt
foreign import ccall "&sqlite3_complete" p'sqlite3_complete
  :: FunPtr (CString -> IO CInt)

{-# LINE 358 "src/Bindings/Sqlite3.hsc" #-}
foreign import ccall "sqlite3_complete16" c'sqlite3_complete16
  :: Ptr () -> IO CInt
foreign import ccall "&sqlite3_complete16" p'sqlite3_complete16
  :: FunPtr (Ptr () -> IO CInt)

{-# LINE 359 "src/Bindings/Sqlite3.hsc" #-}

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)

{-# LINE 363 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 366 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 369 "src/Bindings/Sqlite3.hsc" #-}

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)

{-# LINE 371 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 372 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 373 "src/Bindings/Sqlite3.hsc" #-}
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 ()))

{-# LINE 374 "src/Bindings/Sqlite3.hsc" #-}

foreign import ccall "sqlite3_malloc" c'sqlite3_malloc
  :: CInt -> IO (Ptr ())
foreign import ccall "&sqlite3_malloc" p'sqlite3_malloc
  :: FunPtr (CInt -> IO (Ptr ()))

{-# LINE 376 "src/Bindings/Sqlite3.hsc" #-}
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 ()))

{-# LINE 377 "src/Bindings/Sqlite3.hsc" #-}
foreign import ccall "sqlite3_free" c'sqlite3_free
  :: Ptr () -> IO ()
foreign import ccall "&sqlite3_free" p'sqlite3_free
  :: FunPtr (Ptr () -> IO ())

{-# LINE 378 "src/Bindings/Sqlite3.hsc" #-}

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)

{-# LINE 382 "src/Bindings/Sqlite3.hsc" #-}
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 ())

{-# LINE 383 "src/Bindings/Sqlite3.hsc" #-}

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 ()))

{-# LINE 386 "src/Bindings/Sqlite3.hsc" #-}
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 ())

{-# LINE 388 "src/Bindings/Sqlite3.hsc" #-}

foreign import ccall "sqlite3_initialize" c'sqlite3_initialize
  :: IO CInt
foreign import ccall "&sqlite3_initialize" p'sqlite3_initialize
  :: FunPtr (IO CInt)

{-# LINE 390 "src/Bindings/Sqlite3.hsc" #-}
foreign import ccall "sqlite3_shutdown" c'sqlite3_shutdown
  :: IO CInt
foreign import ccall "&sqlite3_shutdown" p'sqlite3_shutdown
  :: FunPtr (IO CInt)

{-# LINE 391 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 392 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 393 "src/Bindings/Sqlite3.hsc" #-}

foreign import ccall "array_sqlite3_version" c'sqlite3_version
  :: Ptr (CChar)

{-# LINE 395 "src/Bindings/Sqlite3.hsc" #-}
foreign import ccall "sqlite3_libversion" c'sqlite3_libversion
  :: IO CString
foreign import ccall "&sqlite3_libversion" p'sqlite3_libversion
  :: FunPtr (IO CString)

{-# LINE 396 "src/Bindings/Sqlite3.hsc" #-}
foreign import ccall "sqlite3_sourceid" c'sqlite3_sourceid
  :: IO CString
foreign import ccall "&sqlite3_sourceid" p'sqlite3_sourceid
  :: FunPtr (IO CString)

{-# LINE 397 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 398 "src/Bindings/Sqlite3.hsc" #-}

foreign import ccall "sqlite3_memory_used" c'sqlite3_memory_used
  :: IO Int64
foreign import ccall "&sqlite3_memory_used" p'sqlite3_memory_used
  :: FunPtr (IO Int64)

{-# LINE 400 "src/Bindings/Sqlite3.hsc" #-}
foreign import ccall "sqlite3_memory_highwater" c'sqlite3_memory_highwater
  :: CInt -> IO Int64
foreign import ccall "&sqlite3_memory_highwater" p'sqlite3_memory_highwater
  :: FunPtr (CInt -> IO Int64)

{-# LINE 401 "src/Bindings/Sqlite3.hsc" #-}

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))

{-# LINE 403 "src/Bindings/Sqlite3.hsc" #-}
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 ())

{-# LINE 404 "src/Bindings/Sqlite3.hsc" #-}
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 ())

{-# LINE 405 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 406 "src/Bindings/Sqlite3.hsc" #-}
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 ())

{-# LINE 407 "src/Bindings/Sqlite3.hsc" #-}

-- ccall sqlite3_mutex_held , Ptr <sqlite3_mutex> -> IO CInt
-- ccall sqlite3_mutex_notheld , Ptr <sqlite3_mutex> -> IO CInt

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)

{-# LINE 412 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 413 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 415 "src/Bindings/Sqlite3.hsc" #-}

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 ())

{-# LINE 418 "src/Bindings/Sqlite3.hsc" #-}
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 ())

{-# LINE 420 "src/Bindings/Sqlite3.hsc" #-}
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 ())

{-# LINE 422 "src/Bindings/Sqlite3.hsc" #-}
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 ())

{-# LINE 424 "src/Bindings/Sqlite3.hsc" #-}
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 ())

{-# LINE 425 "src/Bindings/Sqlite3.hsc" #-}
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 ())

{-# LINE 426 "src/Bindings/Sqlite3.hsc" #-}
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 ())

{-# LINE 428 "src/Bindings/Sqlite3.hsc" #-}
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 ())

{-# LINE 429 "src/Bindings/Sqlite3.hsc" #-}
foreign import ccall "sqlite3_result_int64" c'sqlite3_result_int64
  :: Ptr C'sqlite3_context -> Int64 -> IO ()
foreign import ccall "&sqlite3_result_int64" p'sqlite3_result_int64
  :: FunPtr (Ptr C'sqlite3_context -> Int64 -> IO ())

{-# LINE 430 "src/Bindings/Sqlite3.hsc" #-}
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 ())

{-# LINE 431 "src/Bindings/Sqlite3.hsc" #-}
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 ())

{-# LINE 433 "src/Bindings/Sqlite3.hsc" #-}
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 ())

{-# LINE 435 "src/Bindings/Sqlite3.hsc" #-}
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 ())

{-# LINE 437 "src/Bindings/Sqlite3.hsc" #-}
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 ())

{-# LINE 439 "src/Bindings/Sqlite3.hsc" #-}
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 ())

{-# LINE 441 "src/Bindings/Sqlite3.hsc" #-}
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 ())

{-# LINE 443 "src/Bindings/Sqlite3.hsc" #-}

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 ()))

{-# LINE 445 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 446 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 447 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 448 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 449 "src/Bindings/Sqlite3.hsc" #-}
foreign import ccall "sqlite3_value_int64" c'sqlite3_value_int64
  :: Ptr C'sqlite3_value -> IO Int64
foreign import ccall "&sqlite3_value_int64" p'sqlite3_value_int64
  :: FunPtr (Ptr C'sqlite3_value -> IO Int64)

{-# LINE 450 "src/Bindings/Sqlite3.hsc" #-}
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))

{-# LINE 451 "src/Bindings/Sqlite3.hsc" #-}
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 ()))

{-# LINE 452 "src/Bindings/Sqlite3.hsc" #-}
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 ()))

{-# LINE 453 "src/Bindings/Sqlite3.hsc" #-}
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 ()))

{-# LINE 454 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 455 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 456 "src/Bindings/Sqlite3.hsc" #-}

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))

{-# LINE 458 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 459 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 460 "src/Bindings/Sqlite3.hsc" #-}

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)

{-# LINE 463 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 465 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 467 "src/Bindings/Sqlite3.hsc" #-}
foreign import ccall "sqlite3_bind_int64" c'sqlite3_bind_int64
  :: Ptr C'sqlite3_stmt -> CInt -> Int64 -> IO CInt
foreign import ccall "&sqlite3_bind_int64" p'sqlite3_bind_int64
  :: FunPtr (Ptr C'sqlite3_stmt -> CInt -> Int64 -> IO CInt)

{-# LINE 469 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 470 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 472 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 474 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 476 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 478 "src/Bindings/Sqlite3.hsc" #-}

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)

{-# LINE 481 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 483 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 485 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 487 "src/Bindings/Sqlite3.hsc" #-}

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)

{-# LINE 494 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 500 "src/Bindings/Sqlite3.hsc" #-}

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)

{-# LINE 502 "src/Bindings/Sqlite3.hsc" #-}

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 ()))

{-# LINE 504 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 505 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 506 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 507 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 508 "src/Bindings/Sqlite3.hsc" #-}
foreign import ccall "sqlite3_column_int64" c'sqlite3_column_int64
  :: Ptr C'sqlite3_stmt -> CInt -> IO Int64
foreign import ccall "&sqlite3_column_int64" p'sqlite3_column_int64
  :: FunPtr (Ptr C'sqlite3_stmt -> CInt -> IO Int64)

{-# LINE 510 "src/Bindings/Sqlite3.hsc" #-}
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))

{-# LINE 512 "src/Bindings/Sqlite3.hsc" #-}
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 ()))

{-# LINE 513 "src/Bindings/Sqlite3.hsc" #-}
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)

{-# LINE 514 "src/Bindings/Sqlite3.hsc" #-}
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))

{-# LINE 516 "src/Bindings/Sqlite3.hsc" #-}

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)

{-# LINE 518 "src/Bindings/Sqlite3.hsc" #-}