hasql-interpolate-0.1.0.0: QuasiQuoter that supports expression interpolation for hasql
Safe HaskellNone
LanguageHaskell2010

Hasql.Interpolate.Internal.Sql

Synopsis

Documentation

data Sql Source #

A SQL string with interpolated expressions.

Constructors

Sql 

Fields

  • sqlTxt :: State Int Builder

    The sql string. It is stateful over an Int in order to assign the postgresql parameter placeholders (e.g. $1, $2)

  • encoder :: Params ()

    The encoders associated with the sql string. Already applied to their parameters.

Instances

Instances details
IsString Sql Source # 
Instance details

Defined in Hasql.Interpolate.Internal.Sql

Methods

fromString :: String -> Sql #

Semigroup Sql Source # 
Instance details

Defined in Hasql.Interpolate.Internal.Sql

Methods

(<>) :: Sql -> Sql -> Sql #

sconcat :: NonEmpty Sql -> Sql #

stimes :: Integral b => b -> Sql -> Sql #

Monoid Sql Source # 
Instance details

Defined in Hasql.Interpolate.Internal.Sql

Methods

mempty :: Sql #

mappend :: Sql -> Sql -> Sql #

mconcat :: [Sql] -> Sql #