docs on bind functions

This commit is contained in:
2026-03-03 23:33:22 -05:00
parent 2fa1833736
commit 2df9f94a92

View File

@@ -169,20 +169,30 @@ pub fun statement/int(stmt: statement, col: int): int
pub fun statement/text(stmt: statement, col: int): string
capi/column-text(stmt.cref, col.int32)
pub fun statement/bind-float64(stmt: statement, col: int, value: float64): sqlite-result
capi/bind-double(stmt.cref, col.int32, value).trusted-result
// Bind a float64 value to a statement parameter.
// The first pararmeter number is 1.
pub fun statement/bind-float64(stmt: statement, param: int, value: float64): sqlite-result
capi/bind-double(stmt.cref, param.int32, value).trusted-result
pub fun statement/bind-int64(stmt: statement, col: int, value: int64): sqlite-result
capi/bind-int64(stmt.cref, col.int32, value).trusted-result
// Bind an int64 value to a statement parameter.
// The first parameter number is 1.
pub fun statement/bind-int64(stmt: statement, param: int, value: int64): sqlite-result
capi/bind-int64(stmt.cref, param.int32, value).trusted-result
pub fun statement/bind-null(stmt: statement, col: int): sqlite-result
capi/bind-null(stmt.cref, col.int32).trusted-result
// Bind NULL to a statement parameter.
// The first parameter number is 1.
pub fun statement/bind-null(stmt: statement, param: int): sqlite-result
capi/bind-null(stmt.cref, param.int32).trusted-result
pub fun statement/bind-text(stmt: statement, col: int, value: string): sqlite-result
capi/bind-text(stmt.cref, col.int32, value).trusted-result
// Bind a string to a statement parameter.
// The first parameter number is 1.
pub fun statement/bind-text(stmt: statement, param: int, value: string): sqlite-result
capi/bind-text(stmt.cref, param.int32, value).trusted-result
pub fun statement/bind-zeroblob(stmt: statement, col: int, length: int64): sqlite-result
capi/bind-zeroblob(stmt.cref, col.int32, length).trusted-result
// Bind a BLOB value initialized to `length` zeros to a statement parameter.
// The first parameter number is 1.
pub fun statement/bind-zeroblob(stmt: statement, param: int, length: int64): sqlite-result
capi/bind-zeroblob(stmt.cref, param.int32, length).trusted-result
// Set all bound parameters to NULL.
pub fun statement/clear-bindings(stmt: statement): sqlite-result