Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data TableIndex = TableIndex {
- idxColumns :: [RawSQL ()]
- idxMethod :: IndexMethod
- idxUnique :: Bool
- idxWhere :: Maybe (RawSQL ())
- data IndexMethod
- tblIndex :: TableIndex
- indexOnColumn :: RawSQL () -> TableIndex
- indexOnColumns :: [RawSQL ()] -> TableIndex
- indexOnColumnWithMethod :: RawSQL () -> IndexMethod -> TableIndex
- indexOnColumnsWithMethod :: [RawSQL ()] -> IndexMethod -> TableIndex
- uniqueIndexOnColumn :: RawSQL () -> TableIndex
- uniqueIndexOnColumnWithCondition :: RawSQL () -> RawSQL () -> TableIndex
- uniqueIndexOnColumns :: [RawSQL ()] -> TableIndex
- indexName :: RawSQL () -> TableIndex -> RawSQL ()
- sqlCreateIndex :: RawSQL () -> TableIndex -> RawSQL ()
- sqlDropIndex :: RawSQL () -> TableIndex -> RawSQL ()
Documentation
data TableIndex Source #
TableIndex | |
|
data IndexMethod Source #
indexOnColumn :: RawSQL () -> TableIndex Source #
indexOnColumns :: [RawSQL ()] -> TableIndex Source #
indexOnColumnWithMethod :: RawSQL () -> IndexMethod -> TableIndex Source #
Create an index on the given column with the specified method. No checks are made that the method is appropriate for the type of the column.
indexOnColumnsWithMethod :: [RawSQL ()] -> IndexMethod -> TableIndex Source #
Create an index on the given columns with the specified method. No checks are made that the method is appropriate for the type of the column; cf. the PostgreSQL manual.
uniqueIndexOnColumn :: RawSQL () -> TableIndex Source #
uniqueIndexOnColumnWithCondition :: RawSQL () -> RawSQL () -> TableIndex Source #
uniqueIndexOnColumns :: [RawSQL ()] -> TableIndex Source #
sqlCreateIndex :: RawSQL () -> TableIndex -> RawSQL () Source #
sqlDropIndex :: RawSQL () -> TableIndex -> RawSQL () Source #