Skip to content

Commit

Permalink
fix: connect_database doc string
Browse files Browse the repository at this point in the history
  • Loading branch information
John2360 committed Aug 22, 2024
1 parent 2f6fba3 commit 7246a61
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/fortress.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ def delete_tenant(id)
_ = make_request(:delete, endpoint)
end

# Connect to a database.
# @param id [String] The database ID.
# @return [PG::Connection] The connection to the database.
def connect_database(id)
connection_details = get_connection_uri(id, 'database')
PG::Connection.new(dbname: connection_details.database, user: connection_details.username,
Expand Down

0 comments on commit 7246a61

Please sign in to comment.