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

Hasura.RQL.DDL.Schema.Table

Description

 
Synopsis

Documentation

data TrackTable b Source #

Instances

Instances details
Backend b => Eq (TrackTable b) Source # 
Instance details

Defined in Hasura.RQL.DDL.Schema.Table

Methods

(==) :: TrackTable b -> TrackTable b -> Bool #

(/=) :: TrackTable b -> TrackTable b -> Bool #

Backend b => Show (TrackTable b) Source # 
Instance details

Defined in Hasura.RQL.DDL.Schema.Table

Backend b => FromJSON (TrackTable b) Source # 
Instance details

Defined in Hasura.RQL.DDL.Schema.Table

Methods

parseJSON :: Value -> Parser (TrackTable b)

parseJSONList :: Value -> Parser [TrackTable b]

data SetTableIsEnum Source #

Instances

Instances details
Eq SetTableIsEnum Source # 
Instance details

Defined in Hasura.RQL.DDL.Schema.Table

Show SetTableIsEnum Source # 
Instance details

Defined in Hasura.RQL.DDL.Schema.Table

FromJSON SetTableIsEnum Source # 
Instance details

Defined in Hasura.RQL.DDL.Schema.Table

Methods

parseJSON :: Value -> Parser SetTableIsEnum

parseJSONList :: Value -> Parser [SetTableIsEnum]

data UntrackTable b Source #

Constructors

UntrackTable 

Instances

Instances details
Backend b => Eq (UntrackTable b) Source # 
Instance details

Defined in Hasura.RQL.DDL.Schema.Table

Backend b => Show (UntrackTable b) Source # 
Instance details

Defined in Hasura.RQL.DDL.Schema.Table

Backend b => FromJSON (UntrackTable b) Source # 
Instance details

Defined in Hasura.RQL.DDL.Schema.Table

Methods

parseJSON :: Value -> Parser (UntrackTable b)

parseJSONList :: Value -> Parser [UntrackTable b]

isTableTracked :: forall b. Backend b => SourceInfo b -> TableName b -> Bool Source #

trackExistingTableOrViewP1 :: forall b m. (QErrM m, CacheRWM m, Backend b, MetadataM m) => SourceName -> TableName b -> m () Source #

Track table/view, Phase 1: Validate table tracking operation. Fails if table is already being tracked, or if a function with the same name is being tracked.

checkConflictingNode :: forall m. MonadError QErr m => SchemaCache -> Text -> m () Source #

Check whether a given name would conflict with the current schema by doing an internal introspection

data TrackTableV2 b Source #

Instances

Instances details
Backend b => Eq (TrackTableV2 b) Source # 
Instance details

Defined in Hasura.RQL.DDL.Schema.Table

Backend b => Show (TrackTableV2 b) Source # 
Instance details

Defined in Hasura.RQL.DDL.Schema.Table

Backend b => FromJSON (TrackTableV2 b) Source # 
Instance details

Defined in Hasura.RQL.DDL.Schema.Table

Methods

parseJSON :: Value -> Parser (TrackTableV2 b)

parseJSONList :: Value -> Parser [TrackTableV2 b]

unTrackExistingTableOrViewP1 :: forall b m. (CacheRM m, QErrM m, Backend b) => UntrackTable b -> m () Source #

buildTableCache :: forall arr m b. (ArrowChoice arr, ArrowDistribute arr, ArrowWriter (Seq CollectedInfo) arr, ArrowCache m arr, MonadIO m, MonadBaseControl IO m, BackendMetadata b) => (SourceName, SourceConfig b, DBTablesMetadata b, [TableBuildInput b], Dependency InvalidationKey, NamingCase) `arr` HashMap (TableName b) (TableCoreInfoG b (ColumnInfo b) (ColumnInfo b)) Source #

Builds an initial table cache. Does not fill in permissions or event triggers, and the returned FieldInfoMaps only contain columns, not relationships; those pieces of information are filled in later.

data SetApolloFederationConfig b Source #

Constructors

SetApolloFederationConfig 

Fields

Instances

Instances details
Backend b => FromJSON (SetApolloFederationConfig b) Source # 
Instance details

Defined in Hasura.RQL.DDL.Schema.Table

Methods

parseJSON :: Value -> Parser (SetApolloFederationConfig b)

parseJSONList :: Value -> Parser [SetApolloFederationConfig b]