columnNames

PcolumnNames
Bun

Symbol

Statement.columnNames

readonly columnNames: string[]

The names of the columns returned by the prepared statement.

const stmt = db.prepare("SELECT bar FROM foo WHERE bar = ?");

console.log(stmt.columnNames);
// => ["bar"]