Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Validate native queries against postgres-like flavors.
Synopsis
- validateNativeQuery :: forall m pgKind. (MonadIO m, MonadError QErr m) => InsOrdHashMap PGScalarType Oid -> Environment -> PostgresConnConfiguration -> LogicalModelInfo ('Postgres pgKind) -> NativeQueryMetadata ('Postgres pgKind) -> m (InterpolatedQuery ArgumentName)
- nativeQueryToPreparedStatement :: forall m pgKind. MonadError QErr m => LogicalModelInfo ('Postgres pgKind) -> NativeQueryMetadata ('Postgres pgKind) -> m (ByteString, Text)
Documentation
validateNativeQuery :: forall m pgKind. (MonadIO m, MonadError QErr m) => InsOrdHashMap PGScalarType Oid -> Environment -> PostgresConnConfiguration -> LogicalModelInfo ('Postgres pgKind) -> NativeQueryMetadata ('Postgres pgKind) -> m (InterpolatedQuery ArgumentName) Source #
Prepare a native query query against a postgres-like database to validate it.
nativeQueryToPreparedStatement :: forall m pgKind. MonadError QErr m => LogicalModelInfo ('Postgres pgKind) -> NativeQueryMetadata ('Postgres pgKind) -> m (ByteString, Text) Source #
Convert a native query to a prepared statement to be validate.
Used by validateNativeQuery
. Exported for testing.