Safe Haskell | None |
---|
Database.PostgreSQL.Sequel
Documentation
Constructors
Sequel | |
Fields
|
drop_table :: String -> Sequel ()Source
create_table :: String -> CreateTable a -> Sequel ()Source
type ColumnType = StringSource
varchar :: Integer -> ColumnTypeSource
data ColumnConstraint Source
Constructors
NOT_NULL | |
UNIQUE | |
PRIMARY_KEY | |
DEFAULT String | |
REFERENCES String String |
drop_column :: String -> String -> Sequel ()Source
add_column :: String -> String -> ColumnType -> [ColumnConstraint] -> Sequel ()Source
type CreateTable = StateT [(ColumnType, String, [ColumnConstraint])] IdentitySource
runCreateTable :: CreateTable a -> StringSource
column :: String -> ColumnType -> [ColumnConstraint] -> CreateTable ()Source
sqlExecute :: ToRow q => Query -> q -> Sequel ()Source
sqlExecute_ :: Query -> Sequel ()Source