Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
<createView viewName="personView">
select id, firstname from person
</createView>
In the autobase DSL, how do I specify the body of the XML tag? I tried
the following
createView(viewName:'personView') {
''' select id, firstname from person
'''
}
To get this to work right, there needs to be upstream fixes to Liquibase. Those should be coming in 1.10, which will be the basis of Autobase 1.0.
For the moment, find your change in the Liquibase AP[1]. You can set the property explicitly. In this case, the text body is for the "selectQuery" property.
As of Autobase 0.8.1, the "sql" property is set if a string is passed in as an argument to the method call. So anything extending AbstractSQLChange[1] can work that way.
[1] http://www.liquibase.org/api/index.html
[2] http://www.liquibase.org/api/liquibase/change/AbstractSQLChange.html