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

Support for the CAST SQLite function #1515

Merged
merged 7 commits into from Mar 23, 2024
Merged

Support for the CAST SQLite function #1515

merged 7 commits into from Mar 23, 2024

Conversation

groue
Copy link
Owner

@groue groue commented Mar 23, 2024

This pull request adds built-in support for the SQLite CAST function. The cast(_:as:) Swift function accepts expressions, and association aggregates.

cast(Column("wins"), as: .real)
cast(Player.games.count, as: .real)

Fixes #1514

@groue groue merged commit 0434567 into development Mar 23, 2024
21 checks passed
@groue groue deleted the dev/cast branch March 23, 2024 10:43
@leotumwattana
Copy link

There is a more complex case where using cast will not work.

Please see: #1514 (comment)

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.

None yet

2 participants