API reference › @evolu/sqlite-wasm › c-api › sqlite3_table_column_metadata
function sqlite3_table_column_metadata(
deps: SqliteWasmDep,
): (
db: SqliteDbPtr,
zDbName: 0 | CStringPtr,
zTableName: CStringPtr,
zColumnName: 0 | CStringPtr,
pzDataType: 0 | WasmPtr,
pzCollSeq: 0 | WasmPtr,
pNotNull: 0 | WasmPtr,
pPrimaryKey: 0 | WasmPtr,
pAutoinc: 0 | WasmPtr,
) => SqliteResultCode;
Defined in: packages/sqlite-wasm/src/CApi.ts:1364
Writes a table column's declared type, collation sequence and NOT NULL, PRIMARY KEY and AUTOINCREMENT flags through the non-NULL output pointers, failing for a missing column or a view; a NULL column name only checks that the table exists. The returned strings stay valid only until the next SQLite call.
Wasm type i(iiiiiiiii). Signature ["sqlite3_table_column_metadata", "int", "sqlite3*", "string", "string", "string", "**", "**", "*", "*", "*"] from
SQLite's table.