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

Add support for custom SQL aggregates #881

Merged
merged 7 commits into from
Aug 23, 2021

Conversation

kasei
Copy link
Contributor

@kasei kasei commented Feb 22, 2019

Would there be interest in supporting SQLite custom aggregates (and if so, possibly also custom window functions)? This PR adds support for custom aggregates implemented in swift, allowing both a relatively low-level API requiring unsafe pointers to maintain state, as well as a more user-friendly, reduce-style API. I've attempted to follow the style of the existing code implementing custom SQL functions, and added tests for both API styles.

@kasei kasei marked this pull request as ready for review March 21, 2019 04:07
@nathanfallet nathanfallet merged commit 09d8534 into stephencelis:master Aug 23, 2021
@jberkel
Copy link
Collaborator

jberkel commented Aug 23, 2021

This wasn't quite ready for merging yet. The tests crash intermittently, investigating.

@jberkel
Copy link
Collaborator

jberkel commented Aug 23, 2021

Do not assign an instance of a nontrivial type through pointee to uninitialized memory. Instead, use an initializing method, such as initialize(to:count:).

6d5bb0c

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.

3 participants