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

function sqlite3_vtab_collation(
  deps: SqliteWasmDep,
): (indexInfo: SqliteIndexInfoPtr, iCons: number) => 0 | CStringPtr;

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

Returns the collation name for text comparisons of an xBestIndex constraint, BINARY by default, or NULL for an index outside aConstraint. Only xBestIndex may call it, with the sqlite3_index_info it received.

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

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