Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data MetadataBeamConnection where
- MetadataBeamConnection :: {..} -> MetadataBeamConnection
- data MetadataBeamConnectionContext be conn (m :: * -> *) = (MonadIO m, MonadBeam be m, MetadataDbBackend be, MonadFail m, DefaultMigrationBackend be m) => MetadataBeamConnectionContext
- uriSyntax :: BeamURIOpeners MetadataBeamConnectionContext
- sqliteUriSyntax :: c Sqlite Connection SqliteM -> BeamURIOpeners c
- withMetadataConnection :: ConnectionString -> (MetadataBeamConnection -> IO a) -> IO a
- defaultMetadataConnection :: AppName -> ConnectionString
- newtype ConnectionString = ConnectionString Text
Documentation
data MetadataBeamConnection where #
Like OpenedBeamConnection but without close
MetadataBeamConnection | |
|
data MetadataBeamConnectionContext be conn (m :: * -> *) #
(MonadIO m, MonadBeam be m, MetadataDbBackend be, MonadFail m, DefaultMigrationBackend be m) => MetadataBeamConnectionContext |
sqliteUriSyntax :: c Sqlite Connection SqliteM -> BeamURIOpeners c #
Behaves as Database.Beam.Sqlite.sqliteUriSyntax, but creates directory if missing
withMetadataConnection :: ConnectionString -> (MetadataBeamConnection -> IO a) -> IO a #
newtype ConnectionString #
Instances
Eq ConnectionString # | |
Defined in Napkin.Metadata.Connection (==) :: ConnectionString -> ConnectionString -> Bool # (/=) :: ConnectionString -> ConnectionString -> Bool # | |
Show ConnectionString # | |
Defined in Napkin.Metadata.Connection showsPrec :: Int -> ConnectionString -> ShowS # show :: ConnectionString -> String # showList :: [ConnectionString] -> ShowS # | |
IsString ConnectionString # | |
Defined in Napkin.Metadata.Connection fromString :: String -> ConnectionString # | |
ToJSON ConnectionString # | |
Defined in Napkin.Metadata.Connection toJSON :: ConnectionString -> Value # toEncoding :: ConnectionString -> Encoding # toJSONList :: [ConnectionString] -> Value # toEncodingList :: [ConnectionString] -> Encoding # | |
FromJSON ConnectionString # | |
Defined in Napkin.Metadata.Connection parseJSON :: Value -> Parser ConnectionString # parseJSONList :: Value -> Parser [ConnectionString] # |