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

SQLite 3.44.0, FILTER and ORDER BY clauses in aggregate functions #1452

Merged
merged 5 commits into from
Nov 2, 2023

Conversation

groue
Copy link
Owner

@groue groue commented Nov 2, 2023

This pull request bumps custom SQLite builds to SQLite 3.44.0.

It also brings support for FILTER and ORDER BY clauses in aggregate functions, with the filter and orderBy arguments (available depending on the SQLite and operating system versions).

For example:

// SELECT JSON_GROUP_ARRAY(name) FROM player
Player.select(Database.jsonGroupArray(Column("name")))

// SELECT JSON_GROUP_ARRAY(name) FILTER (WHERE score > 0) FROM player
Player.select(Database.jsonGroupArray(Column("name"), filter: Column("score") > 0))

// SELECT JSON_GROUP_ARRAY(name ORDER BY name) FROM player
Player.select(Database.jsonGroupArray(Column("name"), orderBy: Column("name")))

@groue groue merged commit 753d7db into development Nov 2, 2023
22 checks passed
@groue groue deleted the dev/SQLite-3.44.0 branch November 2, 2023 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant