package macaque
Module Sql.Op
standard SQL operators (usable from user code, in pa_comp expressions)
val nullable :
< t : 't ; nul : non_nullable.. > t ->
< t : 't ; nul : nullable > tval is_null : < nul : nullable.. > t -> < t : bool_t ; nul : non_nullable > tval is_not_null :
< nul : nullable.. > t ->
< t : bool_t ; nul : non_nullable > tval of_option :
< t : 't ; nul : non_nullable.. > t option ->
< t : 't ; nul : nullable > tval (+) : _ arith_opval (-) : _ arith_opval (/) : _ arith_opval (*) : _ arith_opval (<) : _ comp_opval (<=) : _ comp_opval (=) : _ comp_opval (<>) : _ comp_opval (>=) : _ comp_opval (>) : _ comp_opval is_distinct_from :
< nul : 'n ; t : 't.. > t ->
< nul : 'n ; t : 't.. > t ->
< nul : non_nullable ; t : bool_t > tval is_not_distinct_from :
< nul : 'n ; t : 't.. > t ->
< nul : 'n ; t : 't.. > t ->
< nul : non_nullable ; t : bool_t > tval (&&) : _ logic_opval (||) : _ logic_opval count : _ group -> < t : int64_t ; nul : non_nullable > taggregate functions
val nextval : 'a sequence -> < t : 'a ; nul : non_nullable > tsequence functions
val currval : 'a sequence -> < t : 'a ; nul : non_nullable > tval current_timestamp : < t : unit_t.. > t -> < t : timestamptz_t ; nul : _ > ttimestamp
val localtimestamp : < t : unit_t.. > t -> < t : timestamp_t ; nul : _ > t