HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Moduledirect-sqlite-2.3.29Haskell2010

Database.SQLite3.Bindings

Contents
  1. Connection management
  2. Simple query execution
  3. Statement management
  4. Parameter and column information
  5. Binding Values To Prepared Statements
  6. Result Values From A Query
  7. Result statistics
  8. Create Or Redefine SQL Functions
  9. Obtaining SQL Function Parameter Values
  10. Setting The Result Of An SQL Function
  11. Define New Collating Sequences
  12. Miscellaneous
  13. Extensions
  14. Write-Ahead Log Commit Hook
  15. Incremental blob I/O
  16. Online Backup API
Synopsis

Connection management

Simple query execution

Statement management

valuec_sqlite3_prepare_v2
  1. :: Ptr CDatabase
  2. -> CString

    SQL statement, UTF-8 encoded.

  3. -> CNumBytes

    Maximum length of the SQL statement, in bytes. If this is negative, then the SQL statement is treated as a NUL-terminated string.

  4. -> Ptr (Ptr CStatement)

    OUT: Statement handle. This must not be null.

  5. -> Ptr CString

    OUT: Pointer to unused portion of zSql.

  6. -> IO CError

https://www.sqlite.org/c3ref/prepare.html

If the query contains no SQL statements, this returns SQLITE_OK and sets the Ptr CStatement to null.

Parameter and column information

Binding Values To Prepared Statements

Result Values From A Query

Result statistics

Create Or Redefine SQL Functions

Obtaining SQL Function Parameter Values

Setting The Result Of An SQL Function

Define New Collating Sequences

Miscellaneous

Extensions

Write-Ahead Log Commit Hook

Incremental blob I/O

Online Backup API