yeshql-core-4.1.0.2: YesQL-style SQL database abstraction (core)

Safe HaskellNone
LanguageHaskell2010

Database.YeshQL.Backend

Description

Backend abstractions for YeshQL.

Synopsis

Documentation

data YeshBackend Source #

A backend provides just the information required to build query functions from a parsed query.

Constructors

YeshBackend 

Fields

data YeshImpl Source #

A YeshQL implementation. From this, we can build both TH splices and quasiquoters.

Constructors

YeshImpl 

Fields

class Yesh a where Source #

We want to be able to call the yesh family of functions in both QQ and TH contexts, so unfortunately we need some typeclass polymorphism.

Minimal complete definition

yeshWith, yesh1With

yeshAllWith :: YeshBackend -> Either ParsedQuery [ParsedQuery] -> YeshImpl Source #

This is where much of the magic happens: this function asks the backend for some building blocks, and assembles a YeshImpl of the provided query or queries.