Copyright | 2013-2018 Kei Hibino |
---|---|
License | BSD3 |
Maintainer | ex8k.hibino@gmail.com |
Stability | experimental |
Portability | unknown |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This module defines operators on various projected records.
Synopsis
- class SqlContext c where
- unsafeProjectSqlTerms :: [StringSQL] -> Record c t
- unsafeProjectSql' :: SqlContext c => StringSQL -> Record c t
- unsafeProjectSql :: SqlContext c => String -> Record c t
- value :: (LiteralSQL t, OperatorContext c) => t -> Record c t
- valueTrue :: OperatorContext c => Record c (Maybe Bool)
- valueFalse :: OperatorContext c => Record c (Maybe Bool)
- values :: (LiteralSQL t, OperatorContext c) => [t] -> RecordList (Record c) t
- nothing :: (OperatorContext c, SqlContext c, PersistableWidth a) => Record c (Maybe a)
- data PlaceHolders p
- unsafeAddPlaceHolders :: Functor f => f a -> f (PlaceHolders p, a)
- unsafePlaceHolders :: PlaceHolders p
- pwPlaceholder :: SqlContext c => PersistableRecordWidth a -> (Record c a -> b) -> (PlaceHolders a, b)
- placeholder' :: (PersistableWidth t, SqlContext c) => (Record c t -> a) -> (PlaceHolders t, a)
- placeholder :: (PersistableWidth t, SqlContext c, Monad m) => (Record c t -> m a) -> m (PlaceHolders t, a)
- unitPlaceHolder :: PlaceHolders ()
- unitPH :: PlaceHolders ()
- unsafeShowSql' :: Record c a -> StringSQL
- unsafeShowSql :: Record c a -> String
- (.=.) :: OperatorContext c => Record c ft -> Record c ft -> Record c (Maybe Bool)
- (.<.) :: OperatorContext c => Record c ft -> Record c ft -> Record c (Maybe Bool)
- (.<=.) :: OperatorContext c => Record c ft -> Record c ft -> Record c (Maybe Bool)
- (.>.) :: OperatorContext c => Record c ft -> Record c ft -> Record c (Maybe Bool)
- (.>=.) :: OperatorContext c => Record c ft -> Record c ft -> Record c (Maybe Bool)
- (.<>.) :: OperatorContext c => Record c ft -> Record c ft -> Record c (Maybe Bool)
- and' :: OperatorContext c => Record c (Maybe Bool) -> Record c (Maybe Bool) -> Record c (Maybe Bool)
- or' :: OperatorContext c => Record c (Maybe Bool) -> Record c (Maybe Bool) -> Record c (Maybe Bool)
- in' :: OperatorContext c => Record c t -> RecordList (Record c) t -> Record c (Maybe Bool)
- (.||.) :: OperatorContext c => Record c a -> Record c a -> Record c a
- (?||?) :: (OperatorContext c, IsString a) => Record c (Maybe a) -> Record c (Maybe a) -> Record c (Maybe a)
- like :: (OperatorContext c, IsString a, LiteralSQL a) => Record c a -> a -> Record c (Maybe Bool)
- likeMaybe :: (OperatorContext c, IsString a, LiteralSQL a) => Record c (Maybe a) -> a -> Record c (Maybe Bool)
- like' :: (OperatorContext c, IsString a) => Record c a -> Record c a -> Record c (Maybe Bool)
- likeMaybe' :: (OperatorContext c, IsString a) => Record c (Maybe a) -> Record c (Maybe a) -> Record c (Maybe Bool)
- (.+.) :: (OperatorContext c, Num a) => Record c a -> Record c a -> Record c a
- (.-.) :: (OperatorContext c, Num a) => Record c a -> Record c a -> Record c a
- (.*.) :: (OperatorContext c, Num a) => Record c a -> Record c a -> Record c a
- (./.) :: (OperatorContext c, Num a) => Record c a -> Record c a -> Record c a
- (?+?) :: (OperatorContext c, Num a) => Record c (Maybe a) -> Record c (Maybe a) -> Record c (Maybe a)
- (?-?) :: (OperatorContext c, Num a) => Record c (Maybe a) -> Record c (Maybe a) -> Record c (Maybe a)
- (?*?) :: (OperatorContext c, Num a) => Record c (Maybe a) -> Record c (Maybe a) -> Record c (Maybe a)
- (?/?) :: (OperatorContext c, Num a) => Record c (Maybe a) -> Record c (Maybe a) -> Record c (Maybe a)
- isNothing :: (OperatorContext c, HasColumnConstraint NotNull r) => Record c (Maybe r) -> Predicate c
- isJust :: (OperatorContext c, HasColumnConstraint NotNull r) => Record c (Maybe r) -> Predicate c
- fromMaybe :: (OperatorContext c, HasColumnConstraint NotNull r) => Record c r -> Record c (Maybe r) -> Record c r
- not' :: OperatorContext c => Record c (Maybe Bool) -> Record c (Maybe Bool)
- exists :: OperatorContext c => RecordList (Record Exists) r -> Record c (Maybe Bool)
- negate' :: (OperatorContext c, Num a) => Record c a -> Record c a
- fromIntegral' :: (SqlContext c, Integral a, Num b) => Record c a -> Record c b
- showNum :: (SqlContext c, Num a, IsString b) => Record c a -> Record c b
- negateMaybe :: (OperatorContext c, Num a) => Record c (Maybe a) -> Record c (Maybe a)
- fromIntegralMaybe :: (SqlContext c, Integral a, Num b) => Record c (Maybe a) -> Record c (Maybe b)
- showNumMaybe :: (SqlContext c, Num a, IsString b) => Record c (Maybe a) -> Record c (Maybe b)
- casesOrElse :: OperatorContext c => [(Predicate c, Record c a)] -> Record c a -> Record c a
- casesOrElse' :: OperatorContext c => (Record c a, [(Record c a, Record c b)]) -> Record c b -> Record c b
- caseSearch :: OperatorContext c => [(Predicate c, Record c a)] -> Record c a -> Record c a
- caseSearchMaybe :: (OperatorContext c, PersistableWidth a) => [(Predicate c, Record c (Maybe a))] -> Record c (Maybe a)
- case' :: OperatorContext c => Record c a -> [(Record c a, Record c b)] -> Record c b -> Record c b
- caseMaybe :: (OperatorContext c, PersistableWidth b) => Record c a -> [(Record c a, Record c (Maybe b))] -> Record c (Maybe b)
- type SqlBinOp = Keyword -> Keyword -> Keyword
- unsafeBinOp :: SqlContext k => SqlBinOp -> Record k a -> Record k b -> Record k c
- unsafeUniOp :: SqlContext c2 => (Keyword -> Keyword) -> Record c1 a -> Record c2 b
- rank :: Integral a => Record OverWindow a
- denseRank :: Integral a => Record OverWindow a
- rowNumber :: Integral a => Record OverWindow a
- percentRank :: Record OverWindow Double
- cumeDist :: Record OverWindow Double
- projectZip :: ProductIsoApplicative p => p a -> p b -> p (a, b)
- (><) :: ProductIsoApplicative p => p a -> p b -> p (a, b)
- class ProjectableMaybe p where
- class ProjectableFlattenMaybe a b where
- flatten :: ProjectableMaybe p => p a -> p b
- flattenPiMaybe :: (PersistableWidth a, ProjectableFlattenMaybe (Maybe b) c) => Record cont (Maybe a) -> Pi a b -> Record cont c
- (!) :: PersistableWidth a => Record c a -> Pi a b -> Record c b
- (?) :: PersistableWidth a => Record c (Maybe a) -> Pi a b -> Record c (Maybe b)
- (??) :: PersistableWidth a => Record c (Maybe a) -> Pi a (Maybe b) -> Record c (Maybe b)
- (?!) :: PersistableWidth a => Record c (Maybe a) -> Pi a b -> Record c (Maybe b)
- (?!?) :: PersistableWidth a => Record c (Maybe a) -> Pi a (Maybe b) -> Record c (Maybe b)
- (!??) :: (PersistableWidth a, ProjectableFlattenMaybe (Maybe b) c) => Record cont (Maybe a) -> Pi a b -> Record cont c
- unsafeAggregateOp :: (AggregatedContext ac, SqlContext ac) => Keyword -> Record Flat a -> Record ac b
- count :: (Integral b, AggregatedContext ac, SqlContext ac) => Record Flat a -> Record ac b
- sum' :: (Num a, AggregatedContext ac, SqlContext ac) => Record Flat a -> Record ac (Maybe a)
- sumMaybe :: (Num a, AggregatedContext ac, SqlContext ac) => Record Flat (Maybe a) -> Record ac (Maybe a)
- avg :: (Num a, Fractional b, AggregatedContext ac, SqlContext ac) => Record Flat a -> Record ac (Maybe b)
- avgMaybe :: (Num a, Fractional b, AggregatedContext ac, SqlContext ac) => Record Flat (Maybe a) -> Record ac (Maybe b)
- max' :: (Ord a, AggregatedContext ac, SqlContext ac) => Record Flat a -> Record ac (Maybe a)
- maxMaybe :: (Ord a, AggregatedContext ac, SqlContext ac) => Record Flat (Maybe a) -> Record ac (Maybe a)
- min' :: (Ord a, AggregatedContext ac, SqlContext ac) => Record Flat a -> Record ac (Maybe a)
- minMaybe :: (Ord a, AggregatedContext ac, SqlContext ac) => Record Flat (Maybe a) -> Record ac (Maybe a)
- every :: (AggregatedContext ac, SqlContext ac) => Predicate Flat -> Record ac (Maybe Bool)
- any' :: (AggregatedContext ac, SqlContext ac) => Predicate Flat -> Record ac (Maybe Bool)
- some' :: (AggregatedContext ac, SqlContext ac) => Predicate Flat -> Record ac (Maybe Bool)
Projectable from SQL strings
class SqlContext c where Source #
Interface to project SQL terms unsafely.
unsafeProjectSqlTerms :: [StringSQL] -> Record c t Source #
Unsafely project from SQL expression terms.
Instances
SqlContext Aggregated Source # | Unsafely make |
Defined in Database.Relational.Projectable.Instances unsafeProjectSqlTerms :: [StringSQL] -> Record Aggregated t Source # | |
SqlContext Flat Source # | Unsafely make |
Defined in Database.Relational.Projectable.Instances | |
SqlContext OverWindow Source # | Unsafely make |
Defined in Database.Relational.Projectable.Instances unsafeProjectSqlTerms :: [StringSQL] -> Record OverWindow t Source # |
unsafeProjectSql' :: SqlContext c => StringSQL -> Record c t Source #
Unsafely Project single SQL term.
unsafeProjectSql :: SqlContext c => String -> Record c t Source #
Unsafely Project single SQL string. String interface of unsafeProjectSql''
.
Records of values
value :: (LiteralSQL t, OperatorContext c) => t -> Record c t Source #
Generate record with polymorphic type of SQL constant values from Haskell value.
valueTrue :: OperatorContext c => Record c (Maybe Bool) Source #
Record with polymorphic type of SQL true value.
valueFalse :: OperatorContext c => Record c (Maybe Bool) Source #
Record with polymorphic type of SQL false value.
values :: (LiteralSQL t, OperatorContext c) => [t] -> RecordList (Record c) t Source #
RecordList with polymorphic type of SQL set value from Haskell list.
nothing :: (OperatorContext c, SqlContext c, PersistableWidth a) => Record c (Maybe a) Source #
Record with polymorphic phantom type of SQL null value. Semantics of comparing is unsafe.
Placeholders
data PlaceHolders p Source #
Placeholder parameter type which has real parameter type argument p
.
Instances
unsafeAddPlaceHolders :: Functor f => f a -> f (PlaceHolders p, a) Source #
Unsafely add placeholder parameter to queries.
unsafePlaceHolders :: PlaceHolders p Source #
Unsafely get placeholder parameter
pwPlaceholder :: SqlContext c => PersistableRecordWidth a -> (Record c a -> b) -> (PlaceHolders a, b) Source #
Provide scoped placeholder from width and return its parameter object.
placeholder' :: (PersistableWidth t, SqlContext c) => (Record c t -> a) -> (PlaceHolders t, a) Source #
Provide scoped placeholder and return its parameter object.
placeholder :: (PersistableWidth t, SqlContext c, Monad m) => (Record c t -> m a) -> m (PlaceHolders t, a) Source #
Provide scoped placeholder and return its parameter object. Monadic version.
unitPlaceHolder :: PlaceHolders () Source #
No placeholder semantics
unitPH :: PlaceHolders () Source #
No placeholder semantics. Same as unitPlaceHolder
Projectable into SQL strings
unsafeShowSql' :: Record c a -> StringSQL Source #
Unsafely generate SQL expression term from record object.
Unsafely generate SQL expression string from record object.
String interface of unsafeShowSql'
.
Operators
(.=.) :: OperatorContext c => Record c ft -> Record c ft -> Record c (Maybe Bool) infix 4 Source #
Compare operator corresponding SQL = .
(.<.) :: OperatorContext c => Record c ft -> Record c ft -> Record c (Maybe Bool) infix 4 Source #
Compare operator corresponding SQL < .
(.<=.) :: OperatorContext c => Record c ft -> Record c ft -> Record c (Maybe Bool) infix 4 Source #
Compare operator corresponding SQL <= .
(.>.) :: OperatorContext c => Record c ft -> Record c ft -> Record c (Maybe Bool) infix 4 Source #
Compare operator corresponding SQL > .
(.>=.) :: OperatorContext c => Record c ft -> Record c ft -> Record c (Maybe Bool) infix 4 Source #
Compare operator corresponding SQL >= .
(.<>.) :: OperatorContext c => Record c ft -> Record c ft -> Record c (Maybe Bool) infix 4 Source #
Compare operator corresponding SQL <> .
and' :: OperatorContext c => Record c (Maybe Bool) -> Record c (Maybe Bool) -> Record c (Maybe Bool) infixr 3 Source #
Logical operator corresponding SQL AND .
or' :: OperatorContext c => Record c (Maybe Bool) -> Record c (Maybe Bool) -> Record c (Maybe Bool) infixr 2 Source #
Logical operator corresponding SQL OR .
in' :: OperatorContext c => Record c t -> RecordList (Record c) t -> Record c (Maybe Bool) infix 4 Source #
Binary operator corresponding SQL IN .
(.||.) :: OperatorContext c => Record c a -> Record c a -> Record c a infixl 5 Source #
Concatenate operator corresponding SQL || .
(?||?) :: (OperatorContext c, IsString a) => Record c (Maybe a) -> Record c (Maybe a) -> Record c (Maybe a) infixl 5 Source #
Concatenate operator corresponding SQL || . Maybe type version.
like :: (OperatorContext c, IsString a, LiteralSQL a) => Record c a -> a -> Record c (Maybe Bool) infix 4 Source #
String-compare operator corresponding SQL LIKE .
likeMaybe :: (OperatorContext c, IsString a, LiteralSQL a) => Record c (Maybe a) -> a -> Record c (Maybe Bool) infix 4 Source #
String-compare operator corresponding SQL LIKE . Maybe type version.
like' :: (OperatorContext c, IsString a) => Record c a -> Record c a -> Record c (Maybe Bool) infix 4 Source #
String-compare operator corresponding SQL LIKE .
likeMaybe' :: (OperatorContext c, IsString a) => Record c (Maybe a) -> Record c (Maybe a) -> Record c (Maybe Bool) infix 4 Source #
String-compare operator corresponding SQL LIKE .
(.+.) :: (OperatorContext c, Num a) => Record c a -> Record c a -> Record c a infixl 6 Source #
Number operator corresponding SQL + .
(.-.) :: (OperatorContext c, Num a) => Record c a -> Record c a -> Record c a infixl 6 Source #
Number operator corresponding SQL - .
(.*.) :: (OperatorContext c, Num a) => Record c a -> Record c a -> Record c a infixl 7 Source #
Number operator corresponding SQL * .
(./.) :: (OperatorContext c, Num a) => Record c a -> Record c a -> Record c a infixl 7 Source #
Number operator corresponding SQL /// .
(?+?) :: (OperatorContext c, Num a) => Record c (Maybe a) -> Record c (Maybe a) -> Record c (Maybe a) infixl 6 Source #
Number operator corresponding SQL + .
(?-?) :: (OperatorContext c, Num a) => Record c (Maybe a) -> Record c (Maybe a) -> Record c (Maybe a) infixl 6 Source #
Number operator corresponding SQL - .
(?*?) :: (OperatorContext c, Num a) => Record c (Maybe a) -> Record c (Maybe a) -> Record c (Maybe a) infixl 7 Source #
Number operator corresponding SQL * .
(?/?) :: (OperatorContext c, Num a) => Record c (Maybe a) -> Record c (Maybe a) -> Record c (Maybe a) infixl 7 Source #
Number operator corresponding SQL /// .
isNothing :: (OperatorContext c, HasColumnConstraint NotNull r) => Record c (Maybe r) -> Predicate c Source #
Operator corresponding SQL IS NULL , and extended against record types.
isJust :: (OperatorContext c, HasColumnConstraint NotNull r) => Record c (Maybe r) -> Predicate c Source #
Operator corresponding SQL NOT (... IS NULL) , and extended against record type.
fromMaybe :: (OperatorContext c, HasColumnConstraint NotNull r) => Record c r -> Record c (Maybe r) -> Record c r Source #
Operator from maybe type using record extended isNull
.
not' :: OperatorContext c => Record c (Maybe Bool) -> Record c (Maybe Bool) Source #
Logical operator corresponding SQL NOT .
exists :: OperatorContext c => RecordList (Record Exists) r -> Record c (Maybe Bool) Source #
Logical operator corresponding SQL EXISTS .
negate' :: (OperatorContext c, Num a) => Record c a -> Record c a Source #
Number negate uni-operator corresponding SQL -.
fromIntegral' :: (SqlContext c, Integral a, Num b) => Record c a -> Record c b Source #
Number fromIntegral uni-operator.
showNum :: (SqlContext c, Num a, IsString b) => Record c a -> Record c b Source #
Unsafely show number into string-like type in records.
negateMaybe :: (OperatorContext c, Num a) => Record c (Maybe a) -> Record c (Maybe a) Source #
Number negate uni-operator corresponding SQL -.
fromIntegralMaybe :: (SqlContext c, Integral a, Num b) => Record c (Maybe a) -> Record c (Maybe b) Source #
Number fromIntegral uni-operator.
showNumMaybe :: (SqlContext c, Num a, IsString b) => Record c (Maybe a) -> Record c (Maybe b) Source #
Unsafely show number into string-like type in records.
:: OperatorContext c | |
=> [(Predicate c, Record c a)] | Each when clauses |
-> Record c a | Else result record |
-> Record c a | Result record |
Same as caseSearch
, but you can write like list casesOrElse
clause.
:: OperatorContext c | |
=> (Record c a, [(Record c a, Record c b)]) | Record value to match and each when clauses list |
-> Record c b | Else result record |
-> Record c b | Result record |
Uncurry version of case'
, and you can write like ... casesOrElse
` clause.
:: OperatorContext c | |
=> [(Predicate c, Record c a)] | Each when clauses |
-> Record c a | Else result record |
-> Record c a | Result record |
Search case operator correnponding SQL search CASE. Like, CASE WHEN p0 THEN a WHEN p1 THEN b ... ELSE c END
:: (OperatorContext c, PersistableWidth a) | |
=> [(Predicate c, Record c (Maybe a))] | Each when clauses |
-> Record c (Maybe a) | Result record |
Null default version of caseSearch
.
:: OperatorContext c | |
=> Record c a | Record value to match |
-> [(Record c a, Record c b)] | Each when clauses |
-> Record c b | Else result record |
-> Record c b | Result record |
Simple case operator correnponding SQL simple CASE. Like, CASE x WHEN v THEN a WHEN w THEN b ... ELSE c END
:: (OperatorContext c, PersistableWidth b) | |
=> Record c a | Record value to match |
-> [(Record c a, Record c (Maybe b))] | Each when clauses |
-> Record c (Maybe b) | Result record |
Null default version of case'
.
unsafeBinOp :: SqlContext k => SqlBinOp -> Record k a -> Record k b -> Record k c Source #
Unsafely make binary operator for records from string binary operator.
unsafeUniOp :: SqlContext c2 => (Keyword -> Keyword) -> Record c1 a -> Record c2 b Source #
Unsafely make unary operator for records from SQL keyword.
Terms for Window function types
percentRank :: Record OverWindow Double Source #
PERCENT_RANK() term.
Zipping projections
projectZip :: ProductIsoApplicative p => p a -> p b -> p (a, b) Source #
Zipping projections.
(><) :: ProductIsoApplicative p => p a -> p b -> p (a, b) infixl 1 Source #
Binary operator the same as projectZip
.
Maybe
type projecitoins
class ProjectableMaybe p where Source #
Interface to control Maybe
of phantom type in records.
just :: p a -> p (Maybe a) Source #
Cast record phantom type into Maybe
.
flattenMaybe :: p (Maybe (Maybe a)) -> p (Maybe a) Source #
Compose nested Maybe
phantom type on record.
Instances
ProjectableMaybe PlaceHolders Source # | Control phantom |
Defined in Database.Relational.Projectable just :: PlaceHolders a -> PlaceHolders (Maybe a) Source # flattenMaybe :: PlaceHolders (Maybe (Maybe a)) -> PlaceHolders (Maybe a) Source # | |
ProjectableMaybe (Record c) Source # | |
Projection for nested Maybe
s
class ProjectableFlattenMaybe a b where Source #
Interface to compose phantom Maybe
nested type.
flatten :: ProjectableMaybe p => p a -> p b Source #
Instances
ProjectableFlattenMaybe (Maybe a) b => ProjectableFlattenMaybe (Maybe (Maybe a)) b Source # | Compose |
Defined in Database.Relational.Projectable | |
ProjectableFlattenMaybe (Maybe a) (Maybe a) Source # | Not |
Defined in Database.Relational.Projectable |
:: (PersistableWidth a, ProjectableFlattenMaybe (Maybe b) c) | |
=> Record cont (Maybe a) | |
-> Pi a b | Projection path |
-> Record cont c |
Get narrower record with flatten leaf phantom Maybe types along with projection path.
Get narrower records
:: PersistableWidth a | |
=> Record c a | Source |
-> Pi a b | Record path |
-> Record c b | Narrower projected object |
Get narrower record along with projection path.
:: PersistableWidth a | |
=> Record c (Maybe a) | |
-> Pi a b | Record path |
-> Record c (Maybe b) | Narrower projected object. |
Same as (?!)
. Use this operator like '(? #foo) mayX'.
:: PersistableWidth a | |
=> Record c (Maybe a) | |
-> Pi a (Maybe b) | Record path. |
-> Record c (Maybe b) | Narrower projected object. |
Same as (?!?)
. Use this operator like '(?? #foo) mayX'.
:: (PersistableWidth a, ProjectableFlattenMaybe (Maybe b) c) | |
=> Record cont (Maybe a) | |
-> Pi a b | Projection path |
-> Record cont c | Narrower flatten and projected object. |
Get narrower record with flatten leaf phantom Maybe types along with projection path.
Aggregate functions
unsafeAggregateOp :: (AggregatedContext ac, SqlContext ac) => Keyword -> Record Flat a -> Record ac b Source #
Unsafely make aggregation uni-operator from SQL keyword.
count :: (Integral b, AggregatedContext ac, SqlContext ac) => Record Flat a -> Record ac b Source #
Aggregation function COUNT.
sum' :: (Num a, AggregatedContext ac, SqlContext ac) => Record Flat a -> Record ac (Maybe a) Source #
Aggregation function SUM.
sumMaybe :: (Num a, AggregatedContext ac, SqlContext ac) => Record Flat (Maybe a) -> Record ac (Maybe a) Source #
Aggregation function SUM.
avg :: (Num a, Fractional b, AggregatedContext ac, SqlContext ac) => Record Flat a -> Record ac (Maybe b) Source #
Aggregation function AVG.
avgMaybe :: (Num a, Fractional b, AggregatedContext ac, SqlContext ac) => Record Flat (Maybe a) -> Record ac (Maybe b) Source #
Aggregation function AVG.
max' :: (Ord a, AggregatedContext ac, SqlContext ac) => Record Flat a -> Record ac (Maybe a) Source #
Aggregation function MAX.
maxMaybe :: (Ord a, AggregatedContext ac, SqlContext ac) => Record Flat (Maybe a) -> Record ac (Maybe a) Source #
Aggregation function MAX.
min' :: (Ord a, AggregatedContext ac, SqlContext ac) => Record Flat a -> Record ac (Maybe a) Source #
Aggregation function MIN.
minMaybe :: (Ord a, AggregatedContext ac, SqlContext ac) => Record Flat (Maybe a) -> Record ac (Maybe a) Source #
Aggregation function MIN.
every :: (AggregatedContext ac, SqlContext ac) => Predicate Flat -> Record ac (Maybe Bool) Source #
Aggregation function EVERY.
any' :: (AggregatedContext ac, SqlContext ac) => Predicate Flat -> Record ac (Maybe Bool) Source #
Aggregation function ANY.
some' :: (AggregatedContext ac, SqlContext ac) => Predicate Flat -> Record ac (Maybe Bool) Source #
Aggregation function SOME.