Skip to content

Commit

Permalink
📝 update example to match new functions
Browse files Browse the repository at this point in the history
  • Loading branch information
thepmsquare committed Oct 31, 2024
1 parent d6e88f9 commit 4fb44e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions example.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,29 @@
insert_data = [
{"test_text": "example"},
]
insert_output = square_database_helper.insert_rows(
insert_output = square_database_helper.insert_rows_v0(
insert_data, "square", "public", "test"
)
print(insert_output)

# Example: Get Rows
get_filters = {}
get_output = square_database_helper.get_rows(
get_output = square_database_helper.get_rows_v0(
get_filters, "square", "public", "test", ignore_filters_and_get_all=True, limit=1
)
print(get_output)

# Example: Edit Rows
edit_data = {"test_text": "edited"}
edit_filters = {"test_text": "example"}
edit_output = square_database_helper.edit_rows(
edit_output = square_database_helper.edit_rows_v0(
edit_data, edit_filters, "square", "public", "test"
)
print(edit_output)

# Example: Delete Rows
delete_filters = {"test_text": "edited"}
delete_output = square_database_helper.delete_rows(
delete_output = square_database_helper.delete_rows_v0(
delete_filters, "square", "public", "test"
)
print(delete_output)

0 comments on commit 4fb44e0

Please sign in to comment.