Skip to content

Commit

Permalink
make when_output_enabled private
Browse files Browse the repository at this point in the history
  • Loading branch information
GregoryTravis committed Jan 31, 2025
1 parent fa7dfcc commit 2b0f670
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ type Generic_JDBC_Connection
connection = Generic_JDBC_Connection.connect "jdbc:h2:~/my_database"
connection.execute "create table foo (a int)"
execute self (sql : Text = (Missing_Argument.throw "sql")) -> Integer =
when_output_enabled <|
when_output_enabled_ <|
self.jdbc_connection.with_prepared_statement sql Statement_Setter.default stmt->
stmt.executeUpdate

Expand Down Expand Up @@ -297,6 +297,6 @@ private rs_to_table_ rs =

## PRIVATE
Run the action if Output is enabled, otherwise raise a dataflow error
when_output_enabled ~action =
private when_output_enabled_ ~action =
if Context.Output.is_enabled then action else
Error.throw (Forbidden_Operation.Error ("As writing is disabled, this operation was not executed. Press the Write button ▶ to execute it."))

0 comments on commit 2b0f670

Please sign in to comment.