diff options
author | Adam Chlipala <adam@chlipala.net> | 2012-06-02 16:00:50 -0400 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2012-06-02 16:00:50 -0400 |
commit | 8b6941ac380392e36a30a06fb558c47a8fe7d2d8 (patch) | |
tree | da888caf3fa14afe2943de2d9c8c82830c209de1 /lib | |
parent | f4dab2b31d11cc6957c1a64a3ffe6261816d96d4 (diff) |
Compiled a window function use
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ur/basis.urs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/ur/basis.urs b/lib/ur/basis.urs index 27b6393b..2a4d28cf 100644 --- a/lib/ur/basis.urs +++ b/lib/ur/basis.urs @@ -564,6 +564,22 @@ val sql_maxable_option : t ::: Type -> sql_maxable t -> sql_maxable (option t) val sql_max : t ::: Type -> nt ::: Type -> sql_maxable t -> nullify t nt -> sql_aggregate t nt val sql_min : t ::: Type -> nt ::: Type -> sql_maxable t -> nullify t nt -> sql_aggregate t nt +con sql_window :: {{Type}} -> {{Type}} -> {Type} -> Type -> Type +val sql_window : tables ::: {{Type}} -> agg ::: {{Type}} -> exps ::: {Type} + -> t ::: Type + -> sql_window tables agg exps t + -> sql_exp tables agg exps allow_window t + +val sql_window_aggregate : tables ::: {{Type}} -> agg ::: {{Type}} -> exps ::: {Type} + -> t ::: Type -> nt ::: Type + -> sql_aggregate t nt + -> sql_exp tables agg exps allow_window t + -> sql_window tables agg exps nt +val sql_window_count : tables ::: {{Type}} -> agg ::: {{Type}} -> exps ::: {Type} + -> sql_window tables agg exps int +val sql_window_rank : tables ::: {{Type}} -> agg ::: {{Type}} -> exps ::: {Type} + -> sql_window tables agg exps int + con sql_nfunc :: Type -> Type val sql_nfunc : tables ::: {{Type}} -> agg ::: {{Type}} -> exps ::: {Type} -> aw ::: {Unit} -> t ::: Type |