-
Notifications
You must be signed in to change notification settings - Fork 8
Closed as not planned
Description
using FunSQL: SQLTable, From, Define, Where, Get, render
person = SQLTable(:person, :person_id, :year_of_birth, :location_id)
ByYOB(yob) =
(q = Define(:yob => Get.year_of_birth)) |>
Where(q.yob .== yob)
q = From(person) |>
ByYOB(1950)
print(render(q))
#=>
ERROR: GetError: cannot find yob in:
let person = SQLTable(:person, …),
q1 = From(person),
q2 = q1 |> Define(Get.year_of_birth |> As(:yob)),
q3 = Define(Get.year_of_birth |> As(:yob)),
q4 = q2 |> Where(Fun."=="(q3.yob, Lit(1950)))
q4
end
=#Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels