jeukshi / kosem

raw SQL, type-safe, relational mapping library for Haskell
0 stars 0 forks source link

Repeated params #39

Open jeukshi opened 8 months ago

jeukshi commented 8 months ago
insert into user (name, email) values
:%{ (:name, :email)}

This has to be somewhat limited.

If we allow name and email to be Traversable, we need to zip them: lose data or throw error.

Traversable of some record is safe, but requires a record. Traversable with tuples is safe, but we can't refer to fields by name.