HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Connection management

13 declarations

Simple query execution

3 declarations

Statement management

8 declarations
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

5 declarations

Binding Values To Prepared Statements

6 declarations

Result Values From A Query

6 declarations

Result statistics

3 declarations

Create Or Redefine SQL Functions

10 declarations

Obtaining SQL Function Parameter Values

6 declarations

Setting The Result Of An SQL Function

8 declarations

Define New Collating Sequences

3 declarations

Miscellaneous

2 declarations

Extensions

1 declaration

Write-Ahead Log Commit Hook

3 declarations

Incremental blob I/O

6 declarations

Online Backup API

5 declarations