Add custom SQL operators to MemCP

From MemCP
Revision as of 14:59, 15 June 2025 by Carli (talk | contribs) (Created page with "Some special applications need user defined custom functions. You can define them in scheme like: (sql_builtins "ADD_1" (lambda (x) (+ x 1))) Now you can call the function by: SELECT ADD_1(4) AS result")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Some special applications need user defined custom functions.

You can define them in scheme like:

(sql_builtins "ADD_1" (lambda (x) (+ x 1)))

Now you can call the function by:

SELECT ADD_1(4) AS result