Skip to content

Commit

Permalink
Merge pull request #207 from MarketSquare/improve-query-docs
Browse files Browse the repository at this point in the history
Improve query docs
  • Loading branch information
amochin authored Dec 19, 2023
2 parents 6780772 + 29197dd commit deb1db2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/DatabaseLibrary/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,12 @@ def query(
parameters: Optional[List] = None,
):
"""
Uses the input ``selectStatement`` to query for the values that will be returned as a list of tuples.
Set optional input ``returnAsDict`` to True to return values as a list of dictionaries.
Runs a query with the ``selectStatement`` and returns the result as a list of rows.
The type of row values depends on the database module -
usually they are tuples or tuple-like objects.
Set optional input ``returnAsDict`` to _True_ to explicitely convert the return values
into a list of dictionaries.
Use optional ``alias`` parameter to specify what connection should be used for the query if you have more
than one connection open.
Expand Down
2 changes: 1 addition & 1 deletion src/DatabaseLibrary/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = "1.4.1"
VERSION = "1.4.2"

0 comments on commit deb1db2

Please sign in to comment.