-
Notifications
You must be signed in to change notification settings - Fork 418
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
21507f4
commit 90f204c
Showing
11 changed files
with
3,458 additions
and
3,465 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,178 @@ | ||
-- | ||
-- Scalar Functions | ||
-- | ||
|
||
CREATE FUNCTION ag_catalog.age_id(agtype) | ||
RETURNS agtype | ||
LANGUAGE c | ||
IMMUTABLE | ||
RETURNS NULL ON NULL INPUT | ||
PARALLEL SAFE | ||
AS 'MODULE_PATHNAME'; | ||
|
||
CREATE FUNCTION ag_catalog.age_start_id(agtype) | ||
RETURNS agtype | ||
LANGUAGE c | ||
IMMUTABLE | ||
RETURNS NULL ON NULL INPUT | ||
PARALLEL SAFE | ||
AS 'MODULE_PATHNAME'; | ||
|
||
CREATE FUNCTION ag_catalog.age_end_id(agtype) | ||
RETURNS agtype | ||
LANGUAGE c | ||
IMMUTABLE | ||
RETURNS NULL ON NULL INPUT | ||
PARALLEL SAFE | ||
AS 'MODULE_PATHNAME'; | ||
|
||
CREATE FUNCTION ag_catalog.age_head(agtype) | ||
RETURNS agtype | ||
LANGUAGE c | ||
IMMUTABLE | ||
RETURNS NULL ON NULL INPUT | ||
PARALLEL SAFE | ||
AS 'MODULE_PATHNAME'; | ||
|
||
CREATE FUNCTION ag_catalog.age_last(agtype) | ||
RETURNS agtype | ||
LANGUAGE c | ||
IMMUTABLE | ||
RETURNS NULL ON NULL INPUT | ||
PARALLEL SAFE | ||
AS 'MODULE_PATHNAME'; | ||
|
||
CREATE FUNCTION ag_catalog.age_properties(agtype) | ||
RETURNS agtype | ||
LANGUAGE c | ||
IMMUTABLE | ||
RETURNS NULL ON NULL INPUT | ||
PARALLEL SAFE | ||
AS 'MODULE_PATHNAME'; | ||
|
||
CREATE FUNCTION ag_catalog.age_startnode(agtype, agtype) | ||
RETURNS agtype | ||
LANGUAGE c | ||
STABLE | ||
RETURNS NULL ON NULL INPUT | ||
PARALLEL SAFE | ||
AS 'MODULE_PATHNAME'; | ||
|
||
CREATE FUNCTION ag_catalog.age_endnode(agtype, agtype) | ||
RETURNS agtype | ||
LANGUAGE c | ||
STABLE | ||
RETURNS NULL ON NULL INPUT | ||
PARALLEL SAFE | ||
AS 'MODULE_PATHNAME'; | ||
|
||
CREATE FUNCTION ag_catalog.age_length(agtype) | ||
RETURNS agtype | ||
LANGUAGE c | ||
IMMUTABLE | ||
RETURNS NULL ON NULL INPUT | ||
PARALLEL SAFE | ||
AS 'MODULE_PATHNAME'; | ||
|
||
CREATE FUNCTION ag_catalog.age_toboolean(variadic "any") | ||
RETURNS agtype | ||
LANGUAGE c | ||
IMMUTABLE | ||
RETURNS NULL ON NULL INPUT | ||
PARALLEL SAFE | ||
AS 'MODULE_PATHNAME'; | ||
|
||
CREATE FUNCTION ag_catalog.age_tobooleanlist(variadic "any") | ||
RETURNS agtype | ||
LANGUAGE c | ||
IMMUTABLE | ||
RETURNS NULL ON NULL INPUT | ||
PARALLEL SAFE | ||
AS 'MODULE_PATHNAME'; | ||
|
||
CREATE FUNCTION ag_catalog.age_tofloat(variadic "any") | ||
RETURNS agtype | ||
LANGUAGE c | ||
IMMUTABLE | ||
RETURNS NULL ON NULL INPUT | ||
PARALLEL SAFE | ||
AS 'MODULE_PATHNAME'; | ||
|
||
CREATE FUNCTION ag_catalog.age_tofloatlist(variadic "any") | ||
RETURNS agtype | ||
LANGUAGE c | ||
IMMUTABLE | ||
RETURNS NULL ON NULL INPUT | ||
PARALLEL SAFE | ||
AS 'MODULE_PATHNAME'; | ||
|
||
CREATE FUNCTION ag_catalog.age_tointeger(variadic "any") | ||
RETURNS agtype | ||
LANGUAGE c | ||
IMMUTABLE | ||
RETURNS NULL ON NULL INPUT | ||
PARALLEL SAFE | ||
AS 'MODULE_PATHNAME'; | ||
|
||
CREATE FUNCTION ag_catalog.age_tointegerlist(variadic "any") | ||
RETURNS agtype | ||
LANGUAGE c | ||
IMMUTABLE | ||
RETURNS NULL ON NULL INPUT | ||
PARALLEL SAFE | ||
AS 'MODULE_PATHNAME'; | ||
|
||
CREATE FUNCTION ag_catalog.age_tostring(variadic "any") | ||
RETURNS agtype | ||
LANGUAGE c | ||
IMMUTABLE | ||
RETURNS NULL ON NULL INPUT | ||
PARALLEL SAFE | ||
AS 'MODULE_PATHNAME'; | ||
|
||
CREATE FUNCTION ag_catalog.age_tostringlist(variadic "any") | ||
RETURNS agtype | ||
LANGUAGE c | ||
IMMUTABLE | ||
RETURNS NULL ON NULL INPUT | ||
PARALLEL SAFE | ||
AS 'MODULE_PATHNAME'; | ||
|
||
CREATE FUNCTION ag_catalog.age_size(variadic "any") | ||
RETURNS agtype | ||
LANGUAGE c | ||
IMMUTABLE | ||
RETURNS NULL ON NULL INPUT | ||
PARALLEL SAFE | ||
AS 'MODULE_PATHNAME'; | ||
|
||
CREATE FUNCTION ag_catalog.age_type(agtype) | ||
RETURNS agtype | ||
LANGUAGE c | ||
STABLE | ||
RETURNS NULL ON NULL INPUT | ||
PARALLEL SAFE | ||
AS 'MODULE_PATHNAME'; | ||
|
||
CREATE FUNCTION ag_catalog.age_exists(agtype) | ||
RETURNS boolean | ||
LANGUAGE c | ||
STABLE | ||
PARALLEL SAFE | ||
AS 'MODULE_PATHNAME'; | ||
|
||
CREATE FUNCTION ag_catalog.age_isempty(agtype) | ||
RETURNS boolean | ||
LANGUAGE c | ||
IMMUTABLE | ||
RETURNS NULL ON NULL INPUT | ||
PARALLEL SAFE | ||
AS 'MODULE_PATHNAME'; | ||
|
||
CREATE FUNCTION ag_catalog.age_label(agtype) | ||
RETURNS agtype | ||
LANGUAGE c | ||
STABLE | ||
RETURNS NULL ON NULL INPUT | ||
PARALLEL SAFE | ||
AS 'MODULE_PATHNAME'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
-- | ||
-- String functions | ||
-- | ||
CREATE FUNCTION ag_catalog.age_reverse(variadic "any") | ||
RETURNS agtype | ||
LANGUAGE c | ||
IMMUTABLE | ||
RETURNS NULL ON NULL INPUT | ||
PARALLEL SAFE | ||
AS 'MODULE_PATHNAME'; | ||
|
||
CREATE FUNCTION ag_catalog.age_toupper(variadic "any") | ||
RETURNS agtype | ||
LANGUAGE c | ||
IMMUTABLE | ||
RETURNS NULL ON NULL INPUT | ||
PARALLEL SAFE | ||
AS 'MODULE_PATHNAME'; | ||
|
||
CREATE FUNCTION ag_catalog.age_tolower(variadic "any") | ||
RETURNS agtype | ||
LANGUAGE c | ||
IMMUTABLE | ||
RETURNS NULL ON NULL INPUT | ||
PARALLEL SAFE | ||
AS 'MODULE_PATHNAME'; | ||
|
||
CREATE FUNCTION ag_catalog.age_ltrim(variadic "any") | ||
RETURNS agtype | ||
LANGUAGE c | ||
IMMUTABLE | ||
RETURNS NULL ON NULL INPUT | ||
PARALLEL SAFE | ||
AS 'MODULE_PATHNAME'; | ||
|
||
CREATE FUNCTION ag_catalog.age_rtrim(variadic "any") | ||
RETURNS agtype | ||
LANGUAGE c | ||
IMMUTABLE | ||
RETURNS NULL ON NULL INPUT | ||
PARALLEL SAFE | ||
AS 'MODULE_PATHNAME'; | ||
|
||
CREATE FUNCTION ag_catalog.age_trim(variadic "any") | ||
RETURNS agtype | ||
LANGUAGE c | ||
IMMUTABLE | ||
RETURNS NULL ON NULL INPUT | ||
PARALLEL SAFE | ||
AS 'MODULE_PATHNAME'; | ||
|
||
CREATE FUNCTION ag_catalog.age_right(variadic "any") | ||
RETURNS agtype | ||
LANGUAGE c | ||
IMMUTABLE | ||
PARALLEL SAFE | ||
AS 'MODULE_PATHNAME'; | ||
|
||
CREATE FUNCTION ag_catalog.age_left(variadic "any") | ||
RETURNS agtype | ||
LANGUAGE c | ||
IMMUTABLE | ||
PARALLEL SAFE | ||
AS 'MODULE_PATHNAME'; | ||
|
||
CREATE FUNCTION ag_catalog.age_substring(variadic "any") | ||
RETURNS agtype | ||
LANGUAGE c | ||
IMMUTABLE | ||
PARALLEL SAFE | ||
AS 'MODULE_PATHNAME'; | ||
|
||
CREATE FUNCTION ag_catalog.age_split(variadic "any") | ||
RETURNS agtype | ||
LANGUAGE c | ||
IMMUTABLE | ||
PARALLEL SAFE | ||
AS 'MODULE_PATHNAME'; | ||
|
||
CREATE FUNCTION ag_catalog.age_replace(variadic "any") | ||
RETURNS agtype | ||
LANGUAGE c | ||
IMMUTABLE | ||
PARALLEL SAFE | ||
AS 'MODULE_PATHNAME'; |
Oops, something went wrong.