Copyright | (c) Soostone Inc 2020 |
---|---|
License | AllRightsReserved |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Documentation
type ConnectionString = String #
type CredentialsPath = FilePath #
data family DbBackendOptions b #
Instances
class RunBackendConn b where #
runBackendConn :: LogEnv -> DbBackendOptions b -> ConnectionString -> Maybe AppName -> Maybe CredentialsPath -> SpecFile -> Maybe AuthPort -> (BackendConn b -> IO a) -> IO a #
Instances
RunBackendConn Sqlite # | |
Defined in Napkin.Run.Sqlite runBackendConn :: LogEnv -> DbBackendOptions Sqlite -> ConnectionString -> Maybe AppName -> Maybe CredentialsPath -> SpecFile -> Maybe AuthPort -> (BackendConn Sqlite -> IO a) -> IO a # | |
RunBackendConn Redshift # | |
Defined in Napkin.Run.Redshift runBackendConn :: LogEnv -> DbBackendOptions Redshift -> ConnectionString -> Maybe AppName -> Maybe CredentialsPath -> SpecFile -> Maybe AuthPort -> (BackendConn Redshift -> IO a) -> IO a # | |
RunBackendConn Postgres # | |
Defined in Napkin.Run.Postgres runBackendConn :: LogEnv -> DbBackendOptions Postgres -> ConnectionString -> Maybe AppName -> Maybe CredentialsPath -> SpecFile -> Maybe AuthPort -> (BackendConn Postgres -> IO a) -> IO a # | |
RunBackendConn BigQuery # | |
Defined in Napkin.Run.BigQuery runBackendConn :: LogEnv -> DbBackendOptions BigQuery -> ConnectionString -> Maybe AppName -> Maybe CredentialsPath -> SpecFile -> Maybe AuthPort -> (BackendConn BigQuery -> IO a) -> IO a # |