postgrest-0.3.0.4: REST API for any Postgres database

Safe HaskellNone
LanguageHaskell2010

PostgREST.QueryBuilder

Description

This module provides functions to consume data types that represent database objects (e.g. Relation, Schema, SqlQuery) and produces SQL Statements.

Any function that outputs a SQL fragment should be in this module.

Synopsis

Documentation

inTransaction :: Isolation -> Session a -> Session a Source

Wrap a session in a transaction of desired isolation level

type ResultsWithCount = (Maybe Int64, Int64, ByteString, ByteString) Source

The generic query result format used by API responses