Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newEntityStore :: forall row m. ( PersistRecordBackend row SqlBackend , ToBackendKey SqlBackend row, Show row, MonadIO m) => m ( Store SqlPersistM [ DeltaDB Int row])
- newSqlStore :: ( MonadIO m, IsRow row, IsRow (row :. Col "id" Primary ), Show row) => m ( Store SqlPersistM [ DeltaDB Int row])
Synopsis
Manipulating SQL database tables using delta encodings via the "persistent" package.
Store
newEntityStore :: forall row m. ( PersistRecordBackend row SqlBackend , ToBackendKey SqlBackend row, Show row, MonadIO m) => m ( Store SqlPersistM [ DeltaDB Int row]) Source #
Construct a
Store
for
Entity
.
FIXME: This function should also do "migrations", i.e. create the database table in the first place.