Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data MkSqlBackendArgs = MkSqlBackendArgs {
- connPrepare :: Text -> IO Statement
- connInsertSql :: EntityDef -> [PersistValue] -> InsertSqlResult
- connStmtMap :: IORef (Map Text Statement)
- connClose :: IO ()
- connMigrateSql :: [EntityDef] -> (Text -> IO Statement) -> EntityDef -> IO (Either [Text] [(Bool, Text)])
- connBegin :: (Text -> IO Statement) -> Maybe IsolationLevel -> IO ()
- connCommit :: (Text -> IO Statement) -> IO ()
- connRollback :: (Text -> IO Statement) -> IO ()
- connEscapeFieldName :: FieldNameDB -> Text
- connEscapeTableName :: EntityDef -> Text
- connEscapeRawName :: Text -> Text
- connNoLimit :: Text
- connRDBMS :: Text
- connLimitOffset :: (Int, Int) -> Text -> Text
- connLogFunc :: LogFunc
- type LogFunc = Loc -> LogSource -> LogLevel -> LogStr -> IO ()
Documentation
data MkSqlBackendArgs Source #
This type shares many of the same field names as the SqlBackend
type.
It's useful for library authors to use this when migrating from using the
SqlBackend
constructor directly to the mkSqlBackend
function.
This type will only contain required fields for constructing a SqlBackend
.
For fields that aren't present on this record, you'll want to use the various
set
functions or
Since: 2.13.0.0
MkSqlBackendArgs | |
|