Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data DataConnectorRunSQL = DataConnectorRunSQL {
- _dcSource :: SourceName
- _dcSql :: Text
- runSQL :: forall m. (MonadIO m, CacheRWM m, MonadError QErr m, MetadataM m) => DataConnectorName -> DataConnectorRunSQL -> m EncJSON
Documentation
data DataConnectorRunSQL Source #
Instances
FromJSON DataConnectorRunSQL Source # | |
Defined in Hasura.Backends.DataConnector.Adapter.RunSQL parseJSON :: Value -> Parser DataConnectorRunSQL Source # parseJSONList :: Value -> Parser [DataConnectorRunSQL] Source # | |
ToJSON DataConnectorRunSQL Source # | |
Defined in Hasura.Backends.DataConnector.Adapter.RunSQL toJSON :: DataConnectorRunSQL -> Value Source # toEncoding :: DataConnectorRunSQL -> Encoding Source # toJSONList :: [DataConnectorRunSQL] -> Value Source # toEncodingList :: [DataConnectorRunSQL] -> Encoding Source # | |
Show DataConnectorRunSQL Source # | |
Defined in Hasura.Backends.DataConnector.Adapter.RunSQL showsPrec :: Int -> DataConnectorRunSQL -> ShowS # show :: DataConnectorRunSQL -> String # showList :: [DataConnectorRunSQL] -> ShowS # | |
Eq DataConnectorRunSQL Source # | |
Defined in Hasura.Backends.DataConnector.Adapter.RunSQL (==) :: DataConnectorRunSQL -> DataConnectorRunSQL -> Bool # (/=) :: DataConnectorRunSQL -> DataConnectorRunSQL -> Bool # |
It is brittle: Not as type-safe as it could be
It is slow: Doesn't reuse schema-cache
It is verbose: Code duplication i.e. templates
It is incorrect: Uses runClientM directly without tracing capabilities
runSQL :: forall m. (MonadIO m, CacheRWM m, MonadError QErr m, MetadataM m) => DataConnectorName -> DataConnectorRunSQL -> m EncJSON Source #