Copyright | 2013-2017 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.
- type Untyped = 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
type Untyped = Untyped Source #
Deprecated: prepare to drop public interface. internally use Database.Relational.Query.Internal.UntypedTable.*
Untyped typed table type
name' :: Untyped -> String Source #
Deprecated: prepare to drop public interface. internally use Database.Relational.Query.Internal.UntypedTable.*
Name string of table in SQL
width' :: Untyped -> Int Source #
Deprecated: prepare to drop public interface. internally use Database.Relational.Query.Internal.UntypedTable.*
Width of table
columns' :: Untyped -> [ColumnSQL] Source #
Deprecated: prepare to drop public interface. internally use Database.Relational.Query.Internal.UntypedTable.*
Column name strings in SQL
(!) :: Untyped -> Int -> ColumnSQL Source #
Deprecated: prepare to drop public interface. internally use Database.Relational.Query.Internal.UntypedTable.*
Column name strings in SQL
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 #