DB readText -> col_text

This commit is contained in:
relikd
2020-06-27 00:54:50 +02:00
parent c7d0dc7c5f
commit 2312187670
3 changed files with 9 additions and 9 deletions

View File

@@ -71,7 +71,7 @@ extension SQLiteDatabase {
return try? run(sql: "SELECT domain, opt FROM filter \(rv>0 ? "WHERE opt & ?" : "");",
bind: rv>0 ? [BindInt32(rv)] : []) {
allRowsKeyed($0) {
(key: readText($0, 0) ?? "",
(key: col_text($0, 0) ?? "",
value: FilterOptions(rawValue: sqlite3_column_int($0, 1)))
}
}