-
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Would it be possible to pass the Module into the using statement so the queries return a Struct? Example:
defmodule UserQuery do
alias MyProject.User
use Defql, model: User
defquery get_by_blocked(blocked) do
"SELECT * FROM users WHERE blocked = $blocked"
end
endIdeally get_by_id would return [%User{...}] instead of [%{...}]
Metadata
Metadata
Assignees
Labels
No labels