Module
Type.SQL
- Package
- purescript-sql
- Repository
- joneshf/purescript-typelevel-sql
#FROM Source
data FROM :: TABLE -> SQL -> SQLInstances
(SQLColumns sql columns) => SQLColumns (FROM table sql) columns(AppendSymbol tableName "." dottedTableName, IsSymbol tableName, ListToRow prefixedTableColumns prefixedTableRow, ListToRow sqlColumns sqlRow, ListToRow tableColumns tableRow, Prefixed dottedTableName tableColumns prefixedTableColumns, SQLColumns sql sqlColumns, TableColumns table tableColumns, TableName table tableName, Union prefixedTableRow tableRow allTableRows, Union sqlRow who_cares allTableRows) => TableRow (FROM table sql) allTableRows(AppendSymbol tableName "." dottedTableName, IsSymbol tableName, ListToRow prefixedTableColumns prefixedTableRow, ListToRow sqlColumns sqlRow, ListToRow tableColumns tableRow, Prefixed dottedTableName tableColumns prefixedTableColumns, SQLColumns sql sqlColumns, TableColumns table tableColumns, TableName table tableName, ToSQL sql additionalRows, Union allTableRows rows additionalRows, Union prefixedTableRow tableRow allTableRows, Union sqlRow who_cares additionalRows) => ToSQL (FROM table sql) rows
#JOIN Source
data JOIN :: TABLE -> SQL -> SQLInstances
(AppendSymbol tableName "." dottedTableName, IsSymbol tableName, ListToRow prefixedTableColumns prefixedTableRow, ListToRow tableColumns tableRow, ListToRow sqlColumns sqlRow, Prefixed dottedTableName tableColumns prefixedTableColumns, SQLColumns sql sqlColumns, TableColumns table tableColumns, TableName table tableName, ToSQL sql allTableRows, Union allTableRows rows additionalRows, Union prefixedTableRow tableRow allTableRows, Union sqlRow who_cares additionalRows) => ToSQL (JOIN table sql) rows
#SQLColumns Source
class SQLColumns (sql :: SQL) (columns :: RowList) | sql -> columnsInstances
(RowToList cs columns) => SQLColumns (SELECT cs) columns(SQLColumns sql columns) => SQLColumns (FROM table sql) columns
#TableRow Source
class TableRow (sql :: SQL) (row :: Row Type) | sql -> rowInstances
(AppendSymbol tableName "." dottedTableName, IsSymbol tableName, ListToRow prefixedTableColumns prefixedTableRow, ListToRow sqlColumns sqlRow, ListToRow tableColumns tableRow, Prefixed dottedTableName tableColumns prefixedTableColumns, SQLColumns sql sqlColumns, TableColumns table tableColumns, TableName table tableName, Union prefixedTableRow tableRow allTableRows, Union sqlRow who_cares allTableRows) => TableRow (FROM table sql) allTableRows
#ToSQL Source
class ToSQL (sql :: SQL) (columns :: Row Type) whereMembers
Instances
(RowToList columns rl, ToSQLSELECT rl) => ToSQL (SELECT columns) don't_care(AppendSymbol tableName "." dottedTableName, IsSymbol tableName, ListToRow prefixedTableColumns prefixedTableRow, ListToRow sqlColumns sqlRow, ListToRow tableColumns tableRow, Prefixed dottedTableName tableColumns prefixedTableColumns, SQLColumns sql sqlColumns, TableColumns table tableColumns, TableName table tableName, ToSQL sql additionalRows, Union allTableRows rows additionalRows, Union prefixedTableRow tableRow allTableRows, Union sqlRow who_cares additionalRows) => ToSQL (FROM table sql) rows(AppendSymbol tableName "." dottedTableName, IsSymbol tableName, ListToRow prefixedTableColumns prefixedTableRow, ListToRow tableColumns tableRow, ListToRow sqlColumns sqlRow, Prefixed dottedTableName tableColumns prefixedTableColumns, SQLColumns sql sqlColumns, TableColumns table tableColumns, TableName table tableName, ToSQL sql allTableRows, Union allTableRows rows additionalRows, Union prefixedTableRow tableRow allTableRows, Union sqlRow who_cares additionalRows) => ToSQL (JOIN table sql) rows(ToInt count, ToSQL sql don't_care) => ToSQL (LIMIT count sql) don't_care
#ToSQLSELECT Source
class ToSQLSELECT (columns :: RowList) whereMembers
Instances
ToSQLSELECT Nil(IsSymbol column, ToSQLSELECT rest) => ToSQLSELECT (Cons column don't_care rest)
- Modules
- Main
- SQL.
Table - Type.
Nat - Type.
SQL - Type.
SQL. Function