Skip to content

Commit

Permalink
Add delete_rows
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanFauble committed Jan 7, 2025
1 parent c48bb94 commit ea4e27e
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion synapseclient/models/protocols/table_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from synapseclient import Synapse

if TYPE_CHECKING:
from synapseclient.models.table import Table
from synapseclient.models.table import Row, Table


class ColumnSynchronousProtocol(Protocol):
Expand Down Expand Up @@ -77,6 +77,24 @@ def store_rows(
"""
return None

def delete_rows(
self, rows: List["Row"], *, synapse_client: Optional[Synapse] = None
) -> None:
"""Delete rows from a table.
Arguments:
rows: The rows to delete.
synapse_client: If not passed in and caching was not disabled by
`Synapse.allow_client_caching(False)` this will use the last created
instance from the Synapse class constructor.
Returns:
None
# TODO: Add example of how to delete rows
"""
return None

def get(
self,
include_columns: bool = False,
Expand Down

0 comments on commit ea4e27e

Please sign in to comment.