OnlyOneUniqueKey
and AtLeastOneUniqueKey
. These classes are used as constraints on functions that expect a certain amount of unique keys. They are defined automatically as part of the persistent-template
's generation. #885entityComments
field to the EntityDef
datatype, and fieldComments
fields to the FieldDef
datatype. The QuasiQuoter does not currently know how to add documentation comments to these types, but it can be expanded later. #865SqlReadT
and SqlWriteT
constructors. #887Connection
type synonym. Please use SqlBackend
instead. #894SqlPersist
type synonym. Please use SqlPersistT
instead. #894connUpsertSql
to take a list of unique definitions. This paves the way for more efficient upsert implementations. #895Migration
type and some helpers. #860putMany
on Sqlite when Entity has no unique index.Database.Persist.Sql.Raw.QQ
to a separate persistent-qq
package #827repsertMany
now matches mapM_ (uncurry repsert)
and is atomic for supported sql back-ends.sql=
to the unique constraints quasi-quoter so that users can specify the database names of the constraints.Database.Persist.Sql.Util
.
updatePersistValue
, mkUpdateText
, and commaSeparated
from Database.Persist.MySQL
.updatePersistValue
from various Database.Persist.Sql.Orphan.*
modules.getMany
and repsertMany
for batched get
and repsert
.putMany
with a default/slow implementation. SqlBackend's that support native UPSERT should override this for batching enhancements.insertEntityMany
to replace slow looped usage with batched execution.MonadBaseControl
to MonadUnliftIO
fromPersistField
implementations called error
instead of returning a Left Text
. All of the implementations were changed to return Left
. #741BackendCompatible
class. These changes were an accidental breaking change.PersistDbSpecific
docs if someone gets an error about converting from PersistDbSpecific
BackendCompatible
class. #723
\<-. [Nothing]
connMaxParams
connUpsertSql
type for providing backend-specific upsert sql support.runSqlConn
#516RawSql
instance for Key
. This allows selecting primary keys using functions like rawSql
. #407insertMany
Important! If persistent-template is not upgraded to 2.1.3.3
you might need to make sure Int64
is in scope for your model declarations.
Add dbIdColumnsEsc
to Sql.Utils.
Used in persistent-postgresql 2.1.5.2
Double
s without a decimal part #378runSqlPool
does not perform timeout checks.logDebugN
insteadParse UTCTime in 8601 format #339
Support for monad-control 1.0