| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Math functions are introduced from sqlite 3.35. Refer https://www.sqlite.org/lang_mathfunc.html FYI, it need to compile sqlite with -DSQLITE_ENABLE_MATH_FUNCTIONS
| << "first_value" + tr("(expr) This built-in window function calculates the window frame for each row in the same way as an aggregate window function. It returns the value of expr evaluated against the first row in the window frame for each row.") | ||
| << "last_value" + tr("(expr) This built-in window function calculates the window frame for each row in the same way as an aggregate window function. It returns the value of expr evaluated against the last row in the window frame for each row.") | ||
| << "nth_value" + tr("(expr,N) This built-in window function calculates the window frame for each row in the same way as an aggregate window function. It returns the value of expr evaluated against the row N of the window frame. Rows are numbered within the window frame starting from 1 in the order defined by the ORDER BY clause if one is present, or in arbitrary order otherwise. If there is no Nth row in the partition, then NULL is returned.") | ||
| // Math functions introduced from SQLite 3.3.5 |
There was a problem hiding this comment.
3.3.5 → 3.35
Sorry, something went wrong.
There was a problem hiding this comment.
typo. good catch :)
Sorry, something went wrong.
|
Seems like a good idea in concept. Am kind of wondering if there should be a check for the running SQLite version though, before enabling them? |
Sorry, something went wrong.
Math function can be used when sqlite is equal or higher than 3.35 and compiled with SQLITE_ENABLE_MATH_FUNCTIONS. When sqlite is compiled with SQLITE_OMIT_COMPILEOPTION_DIAGS, there is no way to check the compile options. In this case, we'll check only the sqlite version. Otherwise, it will check whether sqlite was built with SQLITE_ENABLE_MATH_FUNCTIONS.
|
@lucydodo @MKleusberg @mgrojo This seems like a good idea to me. Hopefully someone has time to review it. 😄 |
Sorry, something went wrong.
|
Awesome! Thank you very much, @neozest! This is very much appreciated 😄 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Math functions are introduced from sqlite 3.35.
Refer https://www.sqlite.org/lang_mathfunc.html
FYI, it need to be compiled with -DSQLITE_ENABLE_MATH_FUNCTIONS.