Copyright | 2013-2017 Kei Hibino |
---|---|
License | BSD3 |
Maintainer | [email protected] |
Stability | experimental |
Portability | unknown |
Safe Haskell | None |
Language | Haskell2010 |
Database.Relational.Query.Table
Description
This module defines table type which has table metadatas.
- data Table r
- unType :: Table t -> Untyped
- name :: Table r -> String
- shortName :: Table r -> String
- width :: Table r -> Int
- columns :: Table r -> [StringSQL]
- index :: Table r -> Int -> StringSQL
- table :: String -> [String] -> Table r
- toMaybe :: Table r -> Table (Maybe r)
- class PersistableWidth r => TableDerivable r where
Phantom typed table type
Column name string in SQL specified by index
Table existence inference
class PersistableWidth r => TableDerivable r where Source #
Inference rule of Table
existence.
Minimal complete definition
Methods
derivedTable :: Table r Source #