graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellNone
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 #

Constructors

BigQueryRunSQL 

Fields

Instances

Instances details
Eq BigQueryRunSQL Source # 
Instance details

Defined in Hasura.Backends.BigQuery.DDL.RunSQL

Show BigQueryRunSQL Source # 
Instance details

Defined in Hasura.Backends.BigQuery.DDL.RunSQL

FromJSON BigQueryRunSQL Source # 
Instance details

Defined in Hasura.Backends.BigQuery.DDL.RunSQL

Methods

parseJSON :: Value -> Parser BigQueryRunSQL

parseJSONList :: Value -> Parser [BigQueryRunSQL]

ToJSON BigQueryRunSQL Source # 
Instance details

Defined in Hasura.Backends.BigQuery.DDL.RunSQL

Methods

toJSON :: BigQueryRunSQL -> Value

toEncoding :: BigQueryRunSQL -> Encoding

toJSONList :: [BigQueryRunSQL] -> Value

toEncodingList :: [BigQueryRunSQL] -> Encoding

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

The SQL query in the request is ignored