opaleye-sqlite-0.0.1.0: An SQL-generating DSL targeting SQLite

Safe HaskellNone
LanguageHaskell98

Opaleye.SQLite.Internal.RunQuery

Synopsis

Documentation

data QueryRunnerColumn sqlType haskellType Source

A QueryRunnerColumn pgType haskellType encodes how to turn a value of Postgres type pgType into a value of Haskell type haskellType. For example a value of type QueryRunnerColumn PGText String encodes how to turn a PGText result from the database into a Haskell String.

Constructors

QueryRunnerColumn (Unpackspec (Column sqlType) ()) (FieldParser haskellType) 

data QueryRunner columns haskells Source

Constructors

QueryRunner (Unpackspec columns ()) (columns -> RowParser haskells) (columns -> Bool)

Have we actually requested any columns? If we asked for zero columns then the SQL generator will have to put a dummy 0 into the SELECT statement, since we can't select zero columns. In that case we have to make sure we read a single Int.