Structuregrdb 7.1.0GRDB
EmptyRowAdapter
EmptyRowAdapter
is a row adapter that hides all columns.
struct EmptyRowAdapter
For example:
let adapter = EmptyRowAdapter()
let sql = "SELECT 0 AS a, 1 AS b, 2 AS c"
let row = try Row.fetchOne(db, sql: sql, adapter: adapter)!
row.isEmpty // true
This limit adapter may turn out useful in some narrow use cases. You’ll be happy to find it when you need it.