Copyright | 2013-2017 Kei Hibino |
---|---|
License | BSD3 |
Maintainer | ex8k.hibino@gmail.com |
Stability | experimental |
Portability | unknown |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This module defines functions to generate simple SQL strings.
Synopsis
- type QuerySuffix = [Keyword]
- showsQuerySuffix :: QuerySuffix -> StringSQL
- updatePrefixSQL :: Table r -> StringSQL
- updateOtherThanKeySQL :: Table r -> Pi r p -> String
- insertPrefixSQL :: Pi r r' -> Table r -> StringSQL
- deletePrefixSQL :: Table r -> StringSQL
Query suffix
type QuerySuffix = [Keyword] Source #
Type for query suffix words
showsQuerySuffix :: QuerySuffix -> StringSQL Source #
Expand query suffix words
Update SQL
updatePrefixSQL :: Table r -> StringSQL Source #
Generate prefix string of update SQL.
updateOtherThanKeySQL Source #
Generate update SQL specified by single key.
Insert SQL
Delete SQL
Generate all column delete SQL by specified table.