Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype RelName = RelName {}
- relNameToTxt :: RelName -> Text
- fromRemoteRelationship :: RelName -> FieldName
- data RelType
- relTypeToTxt :: RelType -> Text
- data JsonAggSelect
- data InsertOrder
- newtype OID = OID {}
- newtype FieldName = FieldName {
- getFieldNameTxt :: Text
- type Fields a = [(FieldName, a)]
- class ToAesonPairs a where
- toAesonPairs :: KeyValue v => a -> [v]
- data SourceName
- sourceNameToText :: SourceName -> Text
- defaultSource :: SourceName
- defaultSourceName :: NonEmptyText
- data InpValInfo = InpValInfo {}
- newtype SystemDefined = SystemDefined {}
- isSystemDefined :: SystemDefined -> Bool
- data SQLGenCtx = SQLGenCtx {}
- successMsg :: EncJSON
- newtype ResolvedWebhook = ResolvedWebhook {
- unResolvedWebhook :: Text
- newtype InputWebhook = InputWebhook {}
- resolveWebhook :: QErrM m => Environment -> InputWebhook -> m ResolvedWebhook
- newtype Timeout = Timeout {}
- defaultActionTimeoutSecs :: Timeout
- data PGConnectionParams = PGConnectionParams {
- _pgcpHost :: Text
- _pgcpUsername :: Text
- _pgcpPassword :: Maybe Text
- _pgcpPort :: Int
- _pgcpDatabase :: Text
- data UrlConf
- getConnOptionsFromConnParams :: PGConnectionParams -> ConnOptions
- getPGConnectionStringFromParams :: PGConnectionParams -> String
- resolveUrlConf :: MonadError QErr m => Environment -> UrlConf -> m Text
- getEnv :: QErrM m => Environment -> Text -> m Text
- data MetricsConfig = MetricsConfig {}
- emptyMetricsConfig :: MetricsConfig
- data Comment
- commentToMaybeText :: Comment -> Maybe Text
- commentFromMaybeText :: Maybe Text -> Comment
- data EnvRecord a = EnvRecord {
- _envVarName :: Text
- _envVarValue :: a
- data ApolloFederationVersion = V1
- data ApolloFederationConfig = ApolloFederationConfig {}
- isApolloFedV1enabled :: Maybe ApolloFederationConfig -> Bool
Documentation
Instances
relNameToTxt :: RelName -> Text Source #
Instances
Eq RelType Source # | |
Data RelType Source # | |
Defined in Hasura.RQL.Types.Common gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RelType -> c RelType # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RelType # toConstr :: RelType -> Constr # dataTypeOf :: RelType -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RelType) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RelType) # gmapT :: (forall b. Data b => b -> b) -> RelType -> RelType # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RelType -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RelType -> r # gmapQ :: (forall d. Data d => d -> u) -> RelType -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> RelType -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> RelType -> m RelType # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RelType -> m RelType # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RelType -> m RelType # | |
Show RelType Source # | |
Generic RelType Source # | |
NFData RelType Source # | |
Defined in Hasura.RQL.Types.Common | |
Hashable RelType Source # | |
Defined in Hasura.RQL.Types.Common | |
FromJSON RelType Source # | |
Defined in Hasura.RQL.Types.Common parseJSON :: Value -> Parser RelType parseJSONList :: Value -> Parser [RelType] | |
ToJSON RelType Source # | |
Defined in Hasura.RQL.Types.Common toEncoding :: RelType -> Encoding toJSONList :: [RelType] -> Value toEncodingList :: [RelType] -> Encoding | |
FromCol RelType Source # | |
Defined in Hasura.RQL.Types.Common fromCol :: Maybe ByteString -> Either Text RelType | |
Cacheable RelType Source # | |
type Rep RelType Source # | |
relTypeToTxt :: RelType -> Text Source #
data JsonAggSelect Source #
Instances
Eq JsonAggSelect Source # | |
Defined in Hasura.RQL.Types.Common (==) :: JsonAggSelect -> JsonAggSelect -> Bool # (/=) :: JsonAggSelect -> JsonAggSelect -> Bool # | |
Show JsonAggSelect Source # | |
Defined in Hasura.RQL.Types.Common showsPrec :: Int -> JsonAggSelect -> ShowS # show :: JsonAggSelect -> String # showList :: [JsonAggSelect] -> ShowS # | |
Generic JsonAggSelect Source # | |
Defined in Hasura.RQL.Types.Common type Rep JsonAggSelect :: Type -> Type # from :: JsonAggSelect -> Rep JsonAggSelect x # to :: Rep JsonAggSelect x -> JsonAggSelect # | |
Hashable JsonAggSelect Source # | |
Defined in Hasura.RQL.Types.Common hashWithSalt :: Int -> JsonAggSelect -> Int hash :: JsonAggSelect -> Int | |
ToJSON JsonAggSelect Source # | |
Defined in Hasura.RQL.Types.Common toJSON :: JsonAggSelect -> Value toEncoding :: JsonAggSelect -> Encoding toJSONList :: [JsonAggSelect] -> Value toEncodingList :: [JsonAggSelect] -> Encoding | |
type Rep JsonAggSelect Source # | |
Defined in Hasura.RQL.Types.Common |
data InsertOrder Source #
Instances
Postgres OIDs. https://www.postgresql.org/docs/12/datatype-oid.html
Instances
Eq OID Source # | |
Show OID Source # | |
NFData OID Source # | |
Defined in Hasura.RQL.Types.Common | |
Hashable OID Source # | |
Defined in Hasura.RQL.Types.Common | |
FromJSON OID Source # | |
Defined in Hasura.RQL.Types.Common parseJSON :: Value -> Parser OID parseJSONList :: Value -> Parser [OID] | |
ToJSON OID Source # | |
Defined in Hasura.RQL.Types.Common | |
FromCol OID Source # | |
Defined in Hasura.RQL.Types.Common fromCol :: Maybe ByteString -> Either Text OID | |
Cacheable OID Source # | |
FieldName | |
|
Instances
class ToAesonPairs a where Source #
toAesonPairs :: KeyValue v => a -> [v] Source #
Instances
ToJSON a => ToAesonPairs (RelDef a) Source # | |
Defined in Hasura.RQL.Types.Relationships.Local toAesonPairs :: KeyValue v => RelDef a -> [v] Source # | |
Backend b => ToAesonPairs (PermDef b perm) Source # | |
Defined in Hasura.RQL.Types.Permission toAesonPairs :: KeyValue v => PermDef b perm -> [v] Source # |
data SourceName Source #
Instances
sourceNameToText :: SourceName -> Text Source #
data InpValInfo Source #
Instances
newtype SystemDefined Source #
Instances
isSystemDefined :: SystemDefined -> Bool Source #
successMsg :: EncJSON Source #
newtype ResolvedWebhook Source #
ResolvedWebhook | |
|
Instances
newtype InputWebhook Source #
Instances
resolveWebhook :: QErrM m => Environment -> InputWebhook -> m ResolvedWebhook Source #
Instances
Eq Timeout Source # | |
Show Timeout Source # | |
Generic Timeout Source # | |
NFData Timeout Source # | |
Defined in Hasura.RQL.Types.Common | |
FromJSON Timeout Source # | |
Defined in Hasura.RQL.Types.Common parseJSON :: Value -> Parser Timeout parseJSONList :: Value -> Parser [Timeout] | |
ToJSON Timeout Source # | |
Defined in Hasura.RQL.Types.Common toEncoding :: Timeout -> Encoding toJSONList :: [Timeout] -> Value toEncodingList :: [Timeout] -> Encoding | |
Cacheable Timeout Source # | |
type Rep Timeout Source # | |
Defined in Hasura.RQL.Types.Common |
data PGConnectionParams Source #
See API reference here: https://hasura.io/docs/latest/graphql/core/api-reference/syntax-defs.html#pgconnectionparameters
PGConnectionParams | |
|
Instances
UrlValue InputWebhook | the database connection string |
UrlFromEnv Text | the name of environment variable containing the connection string |
UrlFromParams PGConnectionParams | the minimum required `connection parameters` to construct a valid connection string |
Instances
getConnOptionsFromConnParams :: PGConnectionParams -> ConnOptions Source #
getPGConnectionStringFromParams :: PGConnectionParams -> String Source #
Construct a Postgres connection URI as a String from PGConnectionParams
.
NOTE: This function takes care to properly escape all URI components, as Postgres requires that a connection URI is percent-encoded if it includes symbols with "special meaning".
See the libpq
documentation for details: https://www.postgresql.org/docs/13/libpq-connect.html#id-1.7.3.8.3.6
resolveUrlConf :: MonadError QErr m => Environment -> UrlConf -> m Text Source #
getEnv :: QErrM m => Environment -> Text -> m Text Source #
data MetricsConfig Source #
Various user-controlled configuration for metrics used by Pro
MetricsConfig | |
|
Instances
Automatic | Automatically generate a comment (derive it from DB comments, or a sensible default describing the source of the data) |
Explicit (Maybe NonEmptyText) | The user's explicitly provided comment, or explicitly no comment (ie. leave it blank, do not autogenerate one) |
Instances
Eq Comment Source # | |
Show Comment Source # | |
Generic Comment Source # | |
NFData Comment Source # | |
Defined in Hasura.RQL.Types.Common | |
Hashable Comment Source # | |
Defined in Hasura.RQL.Types.Common | |
FromJSON Comment Source # | |
Defined in Hasura.RQL.Types.Common parseJSON :: Value -> Parser Comment parseJSONList :: Value -> Parser [Comment] | |
ToJSON Comment Source # | |
Defined in Hasura.RQL.Types.Common toEncoding :: Comment -> Encoding toJSONList :: [Comment] -> Value toEncodingList :: [Comment] -> Encoding | |
Cacheable Comment Source # | |
type Rep Comment Source # | |
Defined in Hasura.RQL.Types.Common type Rep Comment = D1 ('MetaData "Comment" "Hasura.RQL.Types.Common" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "Automatic" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Explicit" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe NonEmptyText)))) |
commentToMaybeText :: Comment -> Maybe Text Source #
commentFromMaybeText :: Maybe Text -> Comment Source #
We use the following type, after we resolve the env var. | This will store both the env var name and the resolved value.
EnvRecord | |
|
Instances
data ApolloFederationVersion Source #
Instances
data ApolloFederationConfig Source #