Closed groue closed 3 months ago
This pull request adds built-in support for the SQLite CAST function. The cast(_:as:) Swift function accepts expressions, and association aggregates.
CAST
cast(_:as:)
cast(Column("wins"), as: .real) cast(Player.games.count, as: .real)
Fixes #1514
There is a more complex case where using cast will not work.
cast
Please see: https://github.com/groue/GRDB.swift/issues/1514#issuecomment-2016600794
This pull request adds built-in support for the SQLite
CAST
function. Thecast(_:as:)
Swift function accepts expressions, and association aggregates.Fixes #1514