Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data MetadataBeamConnection where
- MetadataBeamConnection :: {..} -> MetadataBeamConnection
- data MetadataBeamConnectionContext be conn (m :: Type -> Type) = (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 :: ConnectionString
- newtype ConnectionString = ConnectionString Text
Documentation
data MetadataBeamConnection where #
Like OpenedBeamConnection but without close
MetadataBeamConnection | |
|
data MetadataBeamConnectionContext be conn (m :: Type -> Type) #
(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
FromJSON ConnectionString # | |
Defined in Napkin.Metadata.Connection parseJSON :: Value -> Parser ConnectionString # parseJSONList :: Value -> Parser [ConnectionString] # | |
IsString ConnectionString # | |
Defined in Napkin.Metadata.Connection fromString :: String -> ConnectionString # | |
Show ConnectionString # | |
Defined in Napkin.Metadata.Connection showsPrec :: Int -> ConnectionString -> ShowS # show :: ConnectionString -> String # showList :: [ConnectionString] -> ShowS # | |
Eq ConnectionString # | |
Defined in Napkin.Metadata.Connection (==) :: ConnectionString -> ConnectionString -> Bool # (/=) :: ConnectionString -> ConnectionString -> Bool # |