Reputation: 1437
Suppose I have a column foo and I want to use it in Haskell as boo, how could I do something similar to this:
foo
boo
MyEntity boo 'foo' Text
Is it even possible?
Upvotes: 1
Views: 51
Reputation: 3316
From https://github.com/yesodweb/persistent/wiki/Persistent-entity-syntax#change-tablecollection-id-field-name-andor-type-persistent--21:
MyEntity boo Text sql=foo
Upvotes: 2