Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add get, head and count parameters to the rpc method. #444

Merged
merged 4 commits into from
Jun 1, 2024

Conversation

silentworks
Copy link
Contributor

What kind of change does this PR introduce?

feature update

What is the current behavior?

You can't perform get, head or count on a rpc method

What is the new behavior?

You can perform get, head or count on a rpc method

Additional context

Add any other context or screenshots.

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've reviewed this pull request using the Sourcery rules engine. If you would also like our AI-powered code review then let us know.

@@ -78,12 +80,22 @@ def from_table(self, table: str) -> AsyncRequestBuilder:
"""Alias to :meth:`from_`."""
return self.from_(table)

def rpc(self, func: str, params: dict) -> AsyncRPCFilterRequestBuilder[Any]:
def rpc(
self,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (code-quality): We've found these issues:

@@ -78,12 +80,22 @@ def from_table(self, table: str) -> SyncRequestBuilder:
"""Alias to :meth:`from_`."""
return self.from_(table)

def rpc(self, func: str, params: dict) -> SyncRPCFilterRequestBuilder[Any]:
def rpc(
self,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (code-quality): We've found these issues:

@silentworks silentworks changed the title add get, head and count parameters to the rpc method. fix: add get, head and count parameters to the rpc method. May 28, 2024
postgrest/_sync/client.py Outdated Show resolved Hide resolved
J0
J0 previously approved these changes May 29, 2024
Copy link
Contributor

@J0 J0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM if tested

@silentworks silentworks requested a review from J0 June 1, 2024 12:17
@silentworks silentworks merged commit b1d48bc into master Jun 1, 2024
6 checks passed
@silentworks silentworks deleted the silentworks/update-rpc-method branch June 1, 2024 19:34
@silentworks silentworks linked an issue Jun 1, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add get, head and count properties to the rpc method.
2 participants