API reference › @evolu/sqlite-wasm › c-api › sqlite3_bind_parameter_index

function sqlite3_bind_parameter_index(
  deps: SqliteWasmDep,
): (pStmt: SqliteStmtPtr, zName: CStringPtr) => number;

Defined in: packages/sqlite-wasm/src/CApi.ts:2024

Returns the 1-based index of the SQL parameter with a UTF-8 name that includes its prefix, such as :name, or 0 when no parameter matches.

Wasm type i(ii). Signature ["sqlite3_bind_parameter_index", "int", "sqlite3_stmt*", "string"] from SQLite's table.

See https://sqlite.org/c3ref/bind_parameter_index.html.