graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hasura.Backends.BigQuery.DDL.RunSQL

Description

Working example:

$ curl -XPOST http://localhost:8080/v2/query -d @- <<EOF { "type":"bigquery_run_sql", "args": { "sql":"select 3 * 4 as foo, "Hello, World!" as bar", "source":"chinook" } } EOF {"result_type":TuplesOk,"result":[["foo","bar"],["12","Hello, World!"]]}

Synopsis

Documentation

data BigQueryRunSQL Source #

Instances

Instances details
FromJSON BigQueryRunSQL Source # 
Instance details

Defined in Hasura.Backends.BigQuery.DDL.RunSQL

ToJSON BigQueryRunSQL Source # 
Instance details

Defined in Hasura.Backends.BigQuery.DDL.RunSQL

Generic BigQueryRunSQL Source # 
Instance details

Defined in Hasura.Backends.BigQuery.DDL.RunSQL

Associated Types

type Rep BigQueryRunSQL :: Type -> Type #

Show BigQueryRunSQL Source # 
Instance details

Defined in Hasura.Backends.BigQuery.DDL.RunSQL

Eq BigQueryRunSQL Source # 
Instance details

Defined in Hasura.Backends.BigQuery.DDL.RunSQL

type Rep BigQueryRunSQL Source # 
Instance details

Defined in Hasura.Backends.BigQuery.DDL.RunSQL

type Rep BigQueryRunSQL = D1 ('MetaData "BigQueryRunSQL" "Hasura.Backends.BigQuery.DDL.RunSQL" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "BigQueryRunSQL" 'PrefixI 'True) (S1 ('MetaSel ('Just "_mrsSql") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "_mrsSource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SourceName)))

runDatabaseInspection :: (MonadIO m, CacheRWM m, MonadError QErr m, MetadataM m) => BigQueryRunSQL -> m EncJSON Source #

The SQL query in the request is ignored