chatdesk-ui/postgres_15.8.1.044/nix/tests/sql/z_15_plv8.sql

21 lines
401 B
PL/PgSQL

/*
This test is excluded from the Postgres 17 suite because it does not ship
with the Supabase PG17 image
*/
create extension if not exists plv8;
create schema v;
-- create a function to perform some JavaScript operations
create function v.multiply_numbers(a integer, b integer)
returns integer
language plv8
as $$
return a * b;
$$;
select
v.multiply_numbers(3, 4);
drop schema v cascade;