Safe Haskell | None |
---|---|
Language | GHC2021 |
Synopsis
- data MetadataBeamConnection where
- MetadataBeamConnection :: forall (m :: Type -> Type) be conn. {..} -> MetadataBeamConnection
- class AddUniqueConstraint bk conn (m :: Type -> Type) | bk -> conn, bk -> m where
- addUniqueConstraint :: MetadataBeamConnectionContext bk conn m -> conn -> m ()
- data MetadataBeamConnectionContext be conn (m :: Type -> Type) = (MonadIO m, MonadBeam be m, MetadataDbBackend be, MonadFail m, DefaultMigrationBackend be m, AddUniqueConstraint be conn 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 | |
|
class AddUniqueConstraint bk conn (m :: Type -> Type) | bk -> conn, bk -> m where #
addUniqueConstraint :: MetadataBeamConnectionContext bk conn m -> conn -> m () #
Instances
data MetadataBeamConnectionContext be conn (m :: Type -> Type) #
(MonadIO m, MonadBeam be m, MetadataDbBackend be, MonadFail m, DefaultMigrationBackend be m, AddUniqueConstraint be conn 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 # |