Skip to content

Commit

Permalink
[WIP] Logging for JDBC_Connection
Browse files Browse the repository at this point in the history
  • Loading branch information
Akirathan committed Jan 18, 2023
1 parent 1085f66 commit 8b7979b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,11 @@ type JDBC_Connection
create : Text -> Vector -> JDBC_Connection
create url properties = handle_sql_errors <|
java_props = Properties.new
IO.println <| "[mylog] (1) properties = " + properties.to_text
properties.each pair->
if pair.second.is_nothing.not then java_props.insert pair.first pair.second else
java_props.remove pair.first
IO.println <| "[mylog] (2) java_props = " + java_props.to_text
java_connection = JDBCProxy.getConnection url java_props

resource = Managed_Resource.register java_connection close_connection
Expand Down

0 comments on commit 8b7979b

Please sign in to comment.