Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data TsQuery (a :: QueryType) where
- type Words = 'Words
- type Lexemes = 'Lexemes
- data TsVector
- data RegConfig
- data NormalizationOption
- data Weight
- data Weights = Weights {}
- data Position
- word :: Text -> TsQuery Words
- queryToText :: TsQuery a -> Text
- textToQuery :: Text -> Either ParseError (TsQuery Lexemes)
- def :: Default a => a
Documentation
data TsQuery (a :: QueryType) where Source #
Lexeme :: Position -> [Weight] -> Text -> TsQuery Lexemes | |
Word :: Position -> [Weight] -> Text -> TsQuery Words | |
(:&) :: TsQuery a -> TsQuery a -> TsQuery a infixr 3 | |
(:|) :: TsQuery a -> TsQuery a -> TsQuery a infixr 2 | |
Not :: TsQuery a -> TsQuery a |
Instances
a ~ Words => IsString (TsQuery a) Source # | |
Defined in Database.Esqueleto.TextSearch.Types fromString :: String -> TsQuery a # | |
Show (TsQuery a) Source # | |
Eq (TsQuery a) Source # | |
PersistField (TsQuery Lexemes) Source # | |
Defined in Database.Esqueleto.TextSearch.Types toPersistValue :: TsQuery Lexemes -> PersistValue # fromPersistValue :: PersistValue -> Either Text (TsQuery Lexemes) # | |
PersistField (TsQuery Words) Source # | |
Defined in Database.Esqueleto.TextSearch.Types toPersistValue :: TsQuery Words -> PersistValue # fromPersistValue :: PersistValue -> Either Text (TsQuery Words) # | |
PersistFieldSql (TsQuery Lexemes) Source # | |
PersistFieldSql (TsQuery Words) Source # | |
Instances
IsString TsVector Source # | |
Defined in Database.Esqueleto.TextSearch.Types fromString :: String -> TsVector # | |
Show TsVector Source # | |
Default TsVector Source # | |
Defined in Database.Esqueleto.TextSearch.Types | |
Eq TsVector Source # | |
PersistField TsVector Source # | |
Defined in Database.Esqueleto.TextSearch.Types | |
PersistFieldSql TsVector Source # | |
data NormalizationOption Source #
Instances
Instances
Instances
queryToText :: TsQuery a -> Text Source #
textToQuery :: Text -> Either ParseError (TsQuery Lexemes) Source #