Version: v0.5.1 - Beta.  We welcome contributors & feedback.  THanks!

Db.selectRow

Db.selectRow(sql)

Description

Return the result of a SQL 'select' statement as a Map.

// Get data for user #123
let query = sql'SELECT * FROM users WHERE id = {}';
query.fill(123);
let user = Db.selectRow(query);