Autobase Plugin

Use Raw Body

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major 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
'''
}

Activity

Hide
Robert Fischer added a comment -

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

Show
Robert Fischer added a comment - 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
Hide
Robert Fischer added a comment -

Due to the sql hack and the waiting on Liquibase 1.10, I'm demoting this to "major" (from "blocker").

Show
Robert Fischer added a comment - Due to the sql hack and the waiting on Liquibase 1.10, I'm demoting this to "major" (from "blocker").
Hide
Burt Beckwith added a comment -

Project is abandoned

Show
Burt Beckwith added a comment - Project is abandoned

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: