My team uses Opaleye
to query Postgres
from Haskell
.
However, we also use raw SQL
to do such things as:
Initialize the database. Including commands
create database
andcreate table
Perform database migrations when we change our schema, including varied commands.
Is it possible to entirely replace this raw SQL
code with Opaleye
?
Can Opaleye
replace any SQL
?
According to the Opaleye tutorial, creating tables and databases is currently unsupported: