Skip to content

Commit

Permalink
docs(db): fix docstrings
Browse files Browse the repository at this point in the history
Signed-off-by: César Román <[email protected]>
  • Loading branch information
cesarcoatl committed Sep 3, 2022
1 parent 2562208 commit 4d2f1a6
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions src/incendium/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,8 @@ def execute_non_query(
connection will be used. Optional.
transaction: A transaction identifier. If omitted, the call will
be executed in its own transaction. Optional.
params: A Dictionary containing all INPUT parameters. Optional.
params: A list containing all INPUT parameters as InParam
objects. Optional.
Returns:
The number of rows modified by the stored procedure, or -1 if
Expand Down Expand Up @@ -339,7 +340,8 @@ def get_data(
database: The name of the database connection to execute
against. If omitted or "", the project's default database
connection will be used. Optional.
params: A Dictionary containing all INPUT parameters. Optional.
params: A list containing all INPUT parameters as InParam
objects. Optional.
Returns:
A Dataset that is the resulting data of the stored procedure
Expand Down Expand Up @@ -367,16 +369,21 @@ def get_output_params(
Args:
stored_procedure: The name of the stored procedure to execute.
output: A Dictionary containing all OUTPUT parameters.
output: A list containing all OUTPUT parameters as OutParam
objects.
database: The name of the database connection to execute
against. If omitted or "", the project's default database
connection will be used. Optional.
transaction: A transaction identifier. If omitted, the call will
be executed in its own transaction. Optional.
params: A Dictionary containing all INPUT parameters. Optional.
params: A list containing all INPUT parameters as InParam
objects. Optional.
get_update_count: A flag indicating whether to return the number
of rows modified by the stored procedure, or -1 if not
applicable. Defaults to False. Optional.
Returns:
Result's output_params.
A Python dictionary of OUTPUT paramaters.
"""
result = _execute_sp(
stored_procedure,
Expand Down Expand Up @@ -408,7 +415,8 @@ def get_return_value(
connection will be used. Optional.
transaction: A transaction identifier. If omitted, the call will
be executed in its own transaction. Optional.
params: A Dictionary containing all INPUT parameters. Optional.
params: A list containing all INPUT parameters as InParam
objects. Optional.
Returns:
The return value.
Expand Down

0 comments on commit 4d2f1a6

Please sign in to comment.