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

Hasura.Backends.MySQL.Plan

Description

Planning MySQL queries and subscriptions.

Synopsis

Documentation

queryToActionForest :: MonadError QErr m => UserInfo -> QueryDB 'MySQL Void (UnpreparedValue 'MySQL) -> m (HeadAndTail, Forest PlannedAction) Source #

Plan the query and then produce a forest of actions for the executor.

prepareValueQuery :: MonadError QErr m => SessionVariables -> UnpreparedValue 'MySQL -> m Expression Source #

Prepare a value without any query planning; we just execute the query with the values embedded.