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

How to make group by request?? #1421

Closed
irg1008 opened this issue Mar 26, 2024 · 2 comments
Closed

How to make group by request?? #1421

irg1008 opened this issue Mar 26, 2024 · 2 comments

Comments

@irg1008
Copy link

irg1008 commented Mar 26, 2024

Is your feature request related to a problem? Please describe.

Describe the solution you'd like

Describe alternatives you've considered

Additional context

@kostasb
Copy link
Contributor

kostasb commented Mar 28, 2024

The closest equivalent of group by in the Xata API is summarize.

If no aggregation function is specified in it, summarize returns results as a "distinct" - equivalent to SELECT name FROM "users" GROUP BY name;

In case you need to execute a grouping statement that is not supported by the summarize API, you can instead run SQL. The SQL-over-HTTP API is available in the TypeScript SDK: https://xata.io/docs/sdk/sql/overview#examples

Also, Beta access was just launched for wire protocol Postgres (SQL) connectivity: https://xata.io/blog/serverless-postgres-platform which enables using Xata with ORMs (Prisma, Drizzle).

We try to keep the scope of issues in this repo around SDK bugs and enhancement requests. Please consider using discord or contact support for questions!

@kostasb kostasb closed this as completed Mar 28, 2024
@irg1008
Copy link
Author

irg1008 commented Mar 28, 2024

I see thats very helpful. I love the sdk, of course is missing things like nested inserts (inserting link). And it gives some issues when using cloudflare. (node:buffer not found)

Great work and the platform is very promising. Best of luck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants