Closed calebkleveter closed 4 years ago
What if we added a method to DatabaseRow
that attempted to cast it to a _PostgresDatabaseRow
and then extract the PostgresRow
from that?
extension DatabaseRow {
public func postgresRow() -> PostgresRow? {
return (self as? _PostgresDatabaseRow)?.row
}
}
Relies on https://github.com/vapor/postgres-kit/pull/159