Safe Haskell | None |
---|---|
Language | Haskell2010 |
Planning MySQL queries and subscriptions.
Synopsis
- queryToActionForest :: MonadError QErr m => UserInfo -> QueryDB 'MySQL Void (UnpreparedValue 'MySQL) -> m (HeadAndTail, Forest PlannedAction)
- planQuery :: MonadError QErr m => SessionVariables -> QueryDB 'MySQL Void (UnpreparedValue 'MySQL) -> m Select
- prepareValueQuery :: MonadError QErr m => SessionVariables -> UnpreparedValue 'MySQL -> m Expression
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.
planQuery :: MonadError QErr m => SessionVariables -> QueryDB 'MySQL Void (UnpreparedValue 'MySQL) -> m Select Source #
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.