Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data SourceInfo b = SourceInfo {}
- siTables :: forall b. Lens' (SourceInfo b) (TableCache b)
- siQueryTagsConfig :: forall b. Lens' (SourceInfo b) (Maybe QueryTagsConfig)
- siName :: forall b. Lens' (SourceInfo b) SourceName
- siFunctions :: forall b. Lens' (SourceInfo b) (FunctionCache b)
- siCustomization :: forall b. Lens' (SourceInfo b) SourceCustomization
- siConfiguration :: forall b. Lens' (SourceInfo b) (SourceConfig b)
- type BackendSourceInfo = AnyBackend SourceInfo
- type SourceCache = HashMap SourceName BackendSourceInfo
- unsafeSourceInfo :: forall b. HasTag b => BackendSourceInfo -> Maybe (SourceInfo b)
- unsafeSourceName :: BackendSourceInfo -> SourceName
- unsafeSourceTables :: forall b. HasTag b => BackendSourceInfo -> Maybe (TableCache b)
- unsafeSourceFunctions :: forall b. HasTag b => BackendSourceInfo -> Maybe (FunctionCache b)
- unsafeSourceConfiguration :: forall b. HasTag b => BackendSourceInfo -> Maybe (SourceConfig b)
- data ResolvedSource b = ResolvedSource {}
- data ScalarMap b where
- ScalarMap :: Backend b => HashMap Name (ScalarType b) -> ScalarMap b
- type SourceResolver b = SourceName -> SourceConnConfiguration b -> IO (Either QErr (SourceConfig b))
- class Monad m => MonadResolveSource m where
- getPGSourceResolver :: m (SourceResolver ('Postgres 'Vanilla))
- getMSSQLSourceResolver :: m (SourceResolver 'MSSQL)
- data MaintenanceModeVersion
Documentation
data SourceInfo b Source #
Instances
siTables :: forall b. Lens' (SourceInfo b) (TableCache b) Source #
siQueryTagsConfig :: forall b. Lens' (SourceInfo b) (Maybe QueryTagsConfig) Source #
siName :: forall b. Lens' (SourceInfo b) SourceName Source #
siFunctions :: forall b. Lens' (SourceInfo b) (FunctionCache b) Source #
siCustomization :: forall b. Lens' (SourceInfo b) SourceCustomization Source #
siConfiguration :: forall b. Lens' (SourceInfo b) (SourceConfig b) Source #
type BackendSourceInfo = AnyBackend SourceInfo Source #
type SourceCache = HashMap SourceName BackendSourceInfo Source #
unsafeSourceInfo :: forall b. HasTag b => BackendSourceInfo -> Maybe (SourceInfo b) Source #
unsafeSourceTables :: forall b. HasTag b => BackendSourceInfo -> Maybe (TableCache b) Source #
unsafeSourceFunctions :: forall b. HasTag b => BackendSourceInfo -> Maybe (FunctionCache b) Source #
unsafeSourceConfiguration :: forall b. HasTag b => BackendSourceInfo -> Maybe (SourceConfig b) Source #
data ResolvedSource b Source #
Contains Postgres connection configuration and essential metadata from the database to build schema cache for tables and function.
Instances
ToEngineLog (ResolvedSource b) Hasura Source # | |
Defined in Hasura.RQL.Types.Source toEngineLog :: ResolvedSource b -> (LogLevel, EngineLogType Hasura, Value) Source # |
data ScalarMap b where Source #
A map from GraphQL name to equivalent scalar type for a given backend.
ScalarMap :: Backend b => HashMap Name (ScalarType b) -> ScalarMap b |
type SourceResolver b = SourceName -> SourceConnConfiguration b -> IO (Either QErr (SourceConfig b)) Source #
FIXME: this should be either in BackendMetadata
, or into a new dedicated
BackendResolve
, instead of listing backends explicitly. It could also be
moved to the app level.
class Monad m => MonadResolveSource m where Source #
getPGSourceResolver :: m (SourceResolver ('Postgres 'Vanilla)) Source #
getMSSQLSourceResolver :: m (SourceResolver 'MSSQL) Source #
Instances
data MaintenanceModeVersion Source #
PreviousMMVersion | should correspond to the source catalog version from which the user is migrating from |
CurrentMMVersion | should correspond to the latest source catalog version |
Instances
Eq MaintenanceModeVersion Source # | |
Defined in Hasura.RQL.Types.Source | |
Show MaintenanceModeVersion Source # | |
Defined in Hasura.RQL.Types.Source showsPrec :: Int -> MaintenanceModeVersion -> ShowS # show :: MaintenanceModeVersion -> String # showList :: [MaintenanceModeVersion] -> ShowS # |