Copyright | 2013 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 Untyped
- name' :: Untyped -> String
- width' :: Untyped -> Int
- columns' :: Untyped -> [ColumnSQL]
- (!) :: Untyped -> Int -> ColumnSQL
- data Table r
- unType :: Table t -> Untyped
- name :: Table r -> String
- shortName :: Table r -> String
- width :: Table r -> Int
- columns :: Table r -> [ColumnSQL]
- index :: Table r -> Int -> ColumnSQL
- table :: String -> [String] -> Table r
- toMaybe :: Table r -> Table (Maybe r)
- class PersistableWidth r => TableDerivable r where
Untyped table type
Column name string in SQL specified by index
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 #