Postgresql Flyway和Postgres元命令
我想使用psql元命令(http://www.postgresql.org/docs/9.1/static/app-psql.htm)用flyway。然而,当我做一些像Postgresql Flyway和Postgres元命令,postgresql,flyway,Postgresql,Flyway,我想使用psql元命令(http://www.postgresql.org/docs/9.1/static/app-psql.htm)用flyway。然而,当我做一些像 \set foo bar 我得到一个例外: [flyway:migrate] com.googlecode.flyway.core.exception.FlywayException: Error executing statement at line 4: \set foo bar [flyway:migrate] Caus
\set foo bar
我得到一个例外:
[flyway:migrate] com.googlecode.flyway.core.exception.FlywayException: Error executing statement at line 4: \set foo bar
[flyway:migrate] Caused by org.postgresql.util.PSQLException: ERROR: syntax error at or near "\"
[flyway:migrate] Position: 1
我想psql解释器没有运行。对吗?有没有一种方法可以使用元命令之类的东西?我应该更广泛地使用flyway占位符吗?psql命令只能通过psql客户端工作。客户端驱动程序不实现这些命令