Hi, does anyone knows if it is possible to generate the database creation schema in Beam by just using the types? I already read the documentation and they say it's possible however, when trying to set it up with Postgres I fail. I already opened an issue but the responses are slow.
Hi! I'm having the following error: • Couldn't match type ‘Database.Beam.Backend.SQL.SQL92.Sql92ExpressionCastTargetSyntax (Database.Beam.Backend.SQL.SQL92.Sql92SelectTableExpressionSyntax ...
Hi, does anyone knows if it is possible to generate the database creation schema in Beam by just using the types? I already read the documentation and they say it's possible however, when trying to set it up with Postgres I fail. I already opened an issue but the responses are slow.
https://github.com/tathougies/beam/issues/454 here's the issue for more context!
do you have a codebase i can play with?
my guess is
be
should bePostgres
i can't even get your code sample to the error you're showing
nvm solved it
@Sandy Maguire Hey I managed to get it working with your help! I needed to change the fields to
Text
now everything is fine!Here's the final product: https://github.com/bolt12/generic-crud/tree/master