We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Procedural languages can be emulated in H2 using Java code. For example, this PostgreSQL program:
DO $$ BEGIN FOR i IN 1 .. 10 LOOP RAISE INFO '%', i; END LOOP; END; $$
... can be written as follows in H2
CREATE ALIAS x AS $$ void x() { for (int i = 1; i <= 10; i++) System.out.println(i); } $$; CALL x(); DROP ALIAS x;
A future version might even support a DO syntax, akin to PostgreSQL: h2database/h2database#1723
DO
DO $$ void x() { for (int i = 1; i <= 10; i++) System.out.println(i); } $$;
The text was updated successfully, but these errors were encountered:
This first implementation is clearly experimental. The following follow up issues need to be addressed:
Sorry, something went wrong.
[#8302] Emulate procedural languages in H2
d3dc0ac
No branches or pull requests
Procedural languages can be emulated in H2 using Java code. For example, this PostgreSQL program:
... can be written as follows in H2
A future version might even support a
DO
syntax, akin to PostgreSQL: h2database/h2database#1723The text was updated successfully, but these errors were encountered: