| Copyright | 2013-2019 Kei Hibino | 
|---|---|
| License | BSD3 | 
| Maintainer | [email protected] | 
| Stability | experimental | 
| Portability | unknown | 
| Safe Haskell | None | 
| Language | Haskell2010 | 
Database.Relational.Table
Description
This module defines table type which has table metadatas.
Synopsis
- 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)
- recordWidth :: Table r -> PersistableRecordWidth r
- toSubQuery :: Table r -> SubQuery
- class PersistableWidth r => TableDerivable r where- derivedTable :: Table r
 
Phantom typed table type
Phantom typed table type
Column name string in SQL specified by index
recordWidth :: Table r -> PersistableRecordWidth r Source #
PersistableRecordWidth of table
Table existence inference
class PersistableWidth r => TableDerivable r where Source #
Inference rule of Table existence.
Methods
derivedTable :: Table r Source #