Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我只想使用flyway的解析器来解析SQL脚本并通过JDBC执行它们。目前我自己做了一个简单的解析器来完成这项工作。但仅限于我迄今为止遇到的情况。我想使用 flyway 解析器,因为我认为它更复杂。有没有办法使用一些飞行类来实现这一点?
目前没有明确支持。但是,如果您愿意接受版本之间出现问题的风险(因为这不是已发布 api 的一部分),请查看 com.googlecode.flyway.core.dbsupport 包和 SqlScript 类。您可以通过查看 com.googlecode.flyway.core.metadatatable 包中的元数据表格式迁移代码来了解如何独立实例化它。