Skip to content

Commit

Permalink
Factor away all dbsteward logging and flow control
Browse files Browse the repository at this point in the history
  • Loading branch information
williammoran committed May 6, 2024
1 parent 0f7e5a0 commit 25b7121
Show file tree
Hide file tree
Showing 75 changed files with 3,410 additions and 1,721 deletions.
2 changes: 1 addition & 1 deletion example/run
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function _help_post {
}

function run { # <...args>: Run DBSteward
cmd go run .. "$@"
cmd go run .. --debug "$@"
}

function run-format { # <format> <...args>: Run DBSteward, injecting format-specific arguments
Expand Down
4 changes: 3 additions & 1 deletion example/someapp_v1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<database>
<role>
<application>someapp</application>
<owner>pgsql</owner>
<owner>postgres</owner>
<replication>someapp_slony</replication>
<readonly>someapp_readonly</readonly>
</role>
Expand All @@ -24,12 +24,14 @@
</database>
<schema name="public" owner="ROLE_OWNER">
<table name="sql_user" owner="ROLE_OWNER" primaryKey="user_id" slonyId="10" description="user table comment">
<!--
<tablePartition type="MODULO">
<tablePartitionOption name="number" value="4" />
<tablePartitionOption name="column" value="user_id" />
<tablePartitionOption name="firstSlonyId" value="347" />
<tablePartitionOption name="lastSlonyId" value="350" />
</tablePartition>
-->
<column name="user_id" type="bigserial" slonyId="10" />
<column name="user_name" type="character varying(40)" />
<column name="password" type="text" />
Expand Down
4 changes: 3 additions & 1 deletion example/someapp_v2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<database>
<role>
<application>someapp</application>
<owner>pgsql</owner>
<owner>postgres</owner>
<replication>someapp_slony</replication>
<readonly>someapp_readonly</readonly>
</role>
Expand All @@ -33,12 +33,14 @@
</database>
<schema name="public" owner="ROLE_OWNER">
<table name="sql_user" owner="ROLE_OWNER" primaryKey="user_id" slonyId="10">
<!--
<tablePartition type="MODULO">
<tablePartitionOption name="number" value="4" />
<tablePartitionOption name="column" value="user_id" />
<tablePartitionOption name="firstSlonyId" value="347" />
<tablePartitionOption name="lastSlonyId" value="350" />
</tablePartition>
-->
<column name="user_id" type="bigserial" slonyId="10" />
<column name="user_name" type="character varying(40)" />
<column name="password" type="text" />
Expand Down
Loading

0 comments on commit 25b7121

Please sign in to comment.