Copyright | 2013 Kei Hibino |
---|---|
License | BSD3 |
Maintainer | ex8k.hibino@gmail.com |
Stability | experimental |
Portability | unknown |
Safe Haskell | None |
Language | Haskell2010 |
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
- derivedTable :: Table r
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.
derivedTable :: Table r Source