【发布时间】:2019-08-24 23:04:38
【问题描述】:
我正在使用 flyway 和 maven 编写一个数据库,以将迁移脚本应用到 Postgres 11 数据库。
我希望能够在 PL/pgSQL 中编写 flyway 可以在其 JDBC 连接上运行的语句,就像常规 ansi SQL 一样。
例如,
--some regular sql statements
create table test(id bigint);
select * from test;
--etc
--switch to plpgsql
language plpgsql;
--some plpgsql code goes here
这可能吗?
【问题讨论】:
标签: postgresql jdbc plpgsql