Version: v0.6.0 - 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
$query = sql'SELECT * FROM users WHERE id = {}';
$query.fill(123);
$user = Db.selectRow($query);