Skip to content

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