User-Defined Functions
Subtopics
EdgeDB allows users to create their own custom functions
using EdgeQL. Currently only non-aggregate functions
(without any set of
parameters) can be created by the
user. Let's create a simple function that converts a word
into "pig Latin":
Input
Run
Output Objects
Press the 'Run' button to evaluate the input
Note that the tutorial is set to allow direct DDL commands to
create functions via the create
keyword. In practice, you
will add functions to your schema without using create
.
Now let's try the pig_latin
function out:
Input
Run
Output Objects
Press the 'Run' button to evaluate the input