[#1391] Add support for the Postgres "every" aggregate function
This commit is contained in:
parent
b0b04d753a
commit
dc0cbb09c8
@ -9800,6 +9800,22 @@ public class DSL {
|
||||
return new Function<Integer>("count", true, SQLDataType.INTEGER, nullSafe(fields));
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the every value over a field: every(field).
|
||||
*/
|
||||
@Support(POSTGRES)
|
||||
public static AggregateFunction<Boolean> every(Field<Boolean> field) {
|
||||
return new Function<Boolean>("every", SQLDataType.BOOLEAN, nullSafe(field));
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the every value over a condition: every(condition).
|
||||
*/
|
||||
@Support(POSTGRES)
|
||||
public static AggregateFunction<Boolean> every(Condition condition) {
|
||||
return every(field(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the max value over a field: max(field).
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user