graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellNone
LanguageHaskell2010

Hasura.Backends.DataConnector.IR.Name

Synopsis

Documentation

newtype Name ty Source #

A tagged, opaque wrapper around Text that provides a number of derived derived instances (primarily as required by the Backend typeclass).

This wrapper is indexed by NameType so that different "names" can be represented as semantically distinct types without the boilerplate of actually defining these wrappers separately.

Constructors

Name 

Fields

Instances

Instances details
From RelationshipName (Name 'Relationship) Source # 
Instance details

Defined in Hasura.Backends.DataConnector.IR.Name

From ColumnName (Name 'Column) Source # 
Instance details

Defined in Hasura.Backends.DataConnector.IR.Name

Methods

from :: ColumnName -> Name 'Column

From Text (Name 'Column) Source # 
Instance details

Defined in Hasura.Backends.DataConnector.IR.Name

Methods

from :: Text -> Name 'Column

From Text (Name 'Relationship) Source # 
Instance details

Defined in Hasura.Backends.DataConnector.IR.Name

Methods

from :: Text -> Name 'Relationship

Eq (Name ty) Source # 
Instance details

Defined in Hasura.Backends.DataConnector.IR.Name

Methods

(==) :: Name ty -> Name ty -> Bool #

(/=) :: Name ty -> Name ty -> Bool #

Typeable ty => Data (Name ty) Source # 
Instance details

Defined in Hasura.Backends.DataConnector.IR.Name

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Name ty -> c (Name ty) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (Name ty) #

toConstr :: Name ty -> Constr #

dataTypeOf :: Name ty -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (Name ty)) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (Name ty)) #

gmapT :: (forall b. Data b => b -> b) -> Name ty -> Name ty #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Name ty -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Name ty -> r #

gmapQ :: (forall d. Data d => d -> u) -> Name ty -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Name ty -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Name ty -> m (Name ty) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Name ty -> m (Name ty) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Name ty -> m (Name ty) #

Ord (Name ty) Source # 
Instance details

Defined in Hasura.Backends.DataConnector.IR.Name

Methods

compare :: Name ty -> Name ty -> Ordering #

(<) :: Name ty -> Name ty -> Bool #

(<=) :: Name ty -> Name ty -> Bool #

(>) :: Name ty -> Name ty -> Bool #

(>=) :: Name ty -> Name ty -> Bool #

max :: Name ty -> Name ty -> Name ty #

min :: Name ty -> Name ty -> Name ty #

Show (Name ty) Source # 
Instance details

Defined in Hasura.Backends.DataConnector.IR.Name

Methods

showsPrec :: Int -> Name ty -> ShowS #

show :: Name ty -> String #

showList :: [Name ty] -> ShowS #

Generic (Name ty) Source # 
Instance details

Defined in Hasura.Backends.DataConnector.IR.Name

Associated Types

type Rep (Name ty) :: Type -> Type #

Methods

from :: Name ty -> Rep (Name ty) x #

to :: Rep (Name ty) x -> Name ty #

NFData (Name ty) Source # 
Instance details

Defined in Hasura.Backends.DataConnector.IR.Name

Methods

rnf :: Name ty -> () #

ToErrorValue (Name ty) Source # 
Instance details

Defined in Hasura.Backends.DataConnector.IR.Name

Hashable (Name ty) Source # 
Instance details

Defined in Hasura.Backends.DataConnector.IR.Name

Methods

hashWithSalt :: Int -> Name ty -> Int

hash :: Name ty -> Int

FromJSONKey (Name ty) Source # 
Instance details

Defined in Hasura.Backends.DataConnector.IR.Name

Methods

fromJSONKey :: FromJSONKeyFunction (Name ty)

fromJSONKeyList :: FromJSONKeyFunction [Name ty]

FromJSON (Name ty) Source # 
Instance details

Defined in Hasura.Backends.DataConnector.IR.Name

Methods

parseJSON :: Value -> Parser (Name ty)

parseJSONList :: Value -> Parser [Name ty]

ToJSONKey (Name ty) Source # 
Instance details

Defined in Hasura.Backends.DataConnector.IR.Name

Methods

toJSONKey :: ToJSONKeyFunction (Name ty)

toJSONKeyList :: ToJSONKeyFunction [Name ty]

ToJSON (Name ty) Source # 
Instance details

Defined in Hasura.Backends.DataConnector.IR.Name

Methods

toJSON :: Name ty -> Value

toEncoding :: Name ty -> Encoding

toJSONList :: [Name ty] -> Value

toEncodingList :: [Name ty] -> Encoding

ToTxt (Name ty) Source # 
Instance details

Defined in Hasura.Backends.DataConnector.IR.Name

Methods

toTxt :: Name ty -> Text Source #

Cacheable (Name ty) Source # 
Instance details

Defined in Hasura.Backends.DataConnector.IR.Name

Methods

unchanged :: Accesses -> Name ty -> Name ty -> Bool Source #

From (Name 'Column) ColumnName Source # 
Instance details

Defined in Hasura.Backends.DataConnector.IR.Name

Methods

from :: Name 'Column -> ColumnName

From (Name 'Relationship) RelationshipName Source # 
Instance details

Defined in Hasura.Backends.DataConnector.IR.Name

type Rep (Name ty) Source # 
Instance details

Defined in Hasura.Backends.DataConnector.IR.Name

type Rep (Name ty) = D1 ('MetaData "Name" "Hasura.Backends.DataConnector.IR.Name" "graphql-engine-1.0.0-inplace" 'True) (C1 ('MetaCons "Name" 'PrefixI 'True) (S1 ('MetaSel ('Just "unName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data NameType Source #

The "type" of "name" that the Name type is meant to provide a textual representation for.

In other words: an enumeration of all the types for which Name acts as a shared abstraction.

Constructors

Column 
Relationship