Database.single

Execute a SQL statment from a file that returns a single row

Parameters

T

type to map columns to

path

path to SQL file

Return Value

Type: T

new instance of T with fields mapped to columns

Examples

audo model = database.single!(Model, "queries/statement.sql")();

Meta