Update docs
This commit is contained in:
parent
a9184fd779
commit
8339419c46
@ -55,11 +55,13 @@ def add(
|
|||||||
|
|
||||||
|
|
||||||
def update(
|
def update(
|
||||||
new_data: dict | list, table: str = "", force: bool = False
|
id: int,
|
||||||
|
new_data: dict, table: str = "", force: bool = False
|
||||||
) -> dict[int, int, dict]:
|
) -> dict[int, int, dict]:
|
||||||
"""Update data in the database
|
"""Update data in the database
|
||||||
Args:
|
Args:
|
||||||
new_data (dict|list): The data to update
|
id (int): The id of the data to update.
|
||||||
|
new_data (dict): The data to update
|
||||||
table (str, optional): The table to update. Defaults to "".
|
table (str, optional): The table to update. Defaults to "".
|
||||||
force (bool, optional): Force the update. Defaults to False.
|
force (bool, optional): Force the update. Defaults to False.
|
||||||
Returns:
|
Returns:
|
||||||
|
Loading…
Reference in New Issue
Block a user