Safe Haskell | None |
---|---|
Language | Haskell2010 |
Hasura.RQL.Types.Common
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
Constructors
RelName | |
Fields |
Instances
relNameToTxt :: RelName -> Text Source #
Instances
Eq RelType Source # | |
Data RelType Source # | |
Defined in Hasura.RQL.Types.Common Methods 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 | |
ToJSON RelType Source # | |
Defined in Hasura.RQL.Types.Common Methods toEncoding :: RelType -> Encoding toJSONList :: [RelType] -> Value toEncodingList :: [RelType] -> Encoding | |
FromCol RelType Source # | |
Defined in Hasura.RQL.Types.Common Methods fromCol :: Maybe ByteString -> Either Text RelType | |
Cacheable RelType Source # | |
type Rep RelType Source # | |
relTypeToTxt :: RelType -> Text Source #
data JsonAggSelect Source #
Constructors
JASMultipleRows | |
JASSingleObject |
Instances
Eq JsonAggSelect Source # | |
Defined in Hasura.RQL.Types.Common Methods (==) :: JsonAggSelect -> JsonAggSelect -> Bool # (/=) :: JsonAggSelect -> JsonAggSelect -> Bool # | |
Show JsonAggSelect Source # | |
Defined in Hasura.RQL.Types.Common Methods showsPrec :: Int -> JsonAggSelect -> ShowS # show :: JsonAggSelect -> String # showList :: [JsonAggSelect] -> ShowS # | |
Generic JsonAggSelect Source # | |
Defined in Hasura.RQL.Types.Common Associated Types type Rep JsonAggSelect :: Type -> Type # | |
Hashable JsonAggSelect Source # | |
Defined in Hasura.RQL.Types.Common | |
ToJSON JsonAggSelect Source # | |
Defined in Hasura.RQL.Types.Common Methods 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 #
Constructors
BeforeParent | |
AfterParent |
Instances
Eq InsertOrder Source # | |
Defined in Hasura.RQL.Types.Common | |
Show InsertOrder Source # | |
Defined in Hasura.RQL.Types.Common Methods showsPrec :: Int -> InsertOrder -> ShowS # show :: InsertOrder -> String # showList :: [InsertOrder] -> ShowS # | |
Generic InsertOrder Source # | |
Defined in Hasura.RQL.Types.Common Associated Types type Rep InsertOrder :: Type -> Type # | |
NFData InsertOrder Source # | |
Defined in Hasura.RQL.Types.Common Methods rnf :: InsertOrder -> () # | |
Hashable InsertOrder Source # | |
Defined in Hasura.RQL.Types.Common | |
FromJSON InsertOrder Source # | |
Defined in Hasura.RQL.Types.Common | |
ToJSON InsertOrder Source # | |
Defined in Hasura.RQL.Types.Common Methods toJSON :: InsertOrder -> Value toEncoding :: InsertOrder -> Encoding toJSONList :: [InsertOrder] -> Value toEncodingList :: [InsertOrder] -> Encoding | |
Cacheable InsertOrder Source # | |
Defined in Hasura.RQL.Types.Common Methods unchanged :: Accesses -> InsertOrder -> InsertOrder -> Bool Source # | |
type Rep InsertOrder Source # | |
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 | |
ToJSON OID Source # | |
Defined in Hasura.RQL.Types.Common | |
FromCol OID Source # | |
Defined in Hasura.RQL.Types.Common Methods fromCol :: Maybe ByteString -> Either Text OID | |
Cacheable OID Source # | |
Constructors
FieldName | |
Fields
|
Instances
class ToAesonPairs a where Source #
Methods
toAesonPairs :: KeyValue v => a -> [v] Source #
Instances
ToJSON a => ToAesonPairs (RelDef a) Source # | |
Defined in Hasura.RQL.Types.Relationships.Local Methods toAesonPairs :: KeyValue v => RelDef a -> [v] Source # | |
Backend b => ToAesonPairs (PermDef b perm) Source # | |
Defined in Hasura.RQL.Types.Permission Methods toAesonPairs :: KeyValue v => PermDef b perm -> [v] Source # |
data SourceName Source #
Constructors
SNDefault | |
SNName NonEmptyText |
Instances
sourceNameToText :: SourceName -> Text Source #
data InpValInfo Source #
Constructors
InpValInfo | |
Instances
newtype SystemDefined Source #
Constructors
SystemDefined | |
Fields |
Instances
isSystemDefined :: SystemDefined -> Bool Source #
successMsg :: EncJSON Source #
newtype ResolvedWebhook Source #
Constructors
ResolvedWebhook | |
Fields
|
Instances
newtype InputWebhook Source #
Constructors
InputWebhook | |
Fields |
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 | |
ToJSON Timeout Source # | |
Defined in Hasura.RQL.Types.Common Methods 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
Constructors
PGConnectionParams | |
Fields
|
Instances
Constructors
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
Constructors
MetricsConfig | |
Fields
|
Instances
Constructors
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 | |
ToJSON Comment Source # | |
Defined in Hasura.RQL.Types.Common Methods 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.
Constructors
EnvRecord | |
Fields
|
Instances
data ApolloFederationVersion Source #
Constructors
V1 |
Instances
data ApolloFederationConfig Source #
Constructors
ApolloFederationConfig | |
Fields |