Liquibase删除所有功能-PostgreSQL [英] Liquibase drop all functions - postgresql
问题描述
我需要一些有关如何为Liquibase定义自定义工作者"或个人资料"的提示.我想使用Maven(3.3.5)中的drop-all任务,但它不会从数据库中删除函数.(PostgreSQL)
I need some tips on how to how define a custom "worker" or "profile" for Liquibase. I would like to use the drop-all task from Maven(3.3.5), but it does not remove functions from the database. (PostgreSQL)
推荐答案
您需要为Liquibase编写一个扩展,该扩展能够查询Postgres的功能列表,以及为Postgres生成正确的SQL的代码.放弃功能.这不是小事.
You would need to write an extension to Liquibase that would be able to query Postgres for the list of functions, as well as code to generate the correct SQL for Postgres to drop functions. This will not be a trivial exercise.
在Liquibase网站上 ,但这需要大量的学习才能了解Liquibase的内部原理.
The basics of writing a Liquibase extension are described on the Liquibase website, but it would require a fair amount of learning to understand the Liquibase internals.
这篇关于Liquibase删除所有功能-PostgreSQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!