-
Hello, is there a way to add a change that would be performed by a dedicated database client? Depending on SQL INSERT INTO/DELETE FROM /TRUNCATE to (un)load data is an important constraint in case of large objects (e.g. loading XML document) and geospatial objects (gdal/ogr tools). Is there a possibility to indicate to the Thanks ! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
No, there is not. The pattern that has emerged to try to address the need for custom clients is to add something like a shell script to your repository that knows what things it must do, and then set the sqitch engine alter pg --client ./bin/psql_wrapper.sh Then teach your script to do the right thing based on some criteria, like parsing the first few lines of each change script, or perhaps knowing to do something for changes with a particular name. Note that the client will be called with Sqitch with the arguments required for your CLI. For Postgres, for example, it assumes you're using sqitch/lib/App/Sqitch/Engine/pg.pm Lines 63 to 68 in aace1e8 As well as these options for every invocation: sqitch/lib/App/Sqitch/Engine/pg.pm Lines 91 to 96 in aace1e8 And then to run a change script, it passes sqitch/lib/App/Sqitch/Engine/pg.pm Line 329 in aace1e8 So you could write a shell script to parse out the |
Beta Was this translation helpful? Give feedback.
-
thanks for the support ! |
Beta Was this translation helpful? Give feedback.
thanks for the support !