selectWhere method
Implementation
VaudbTableRows selectWhere(String table, String column, String value) {
final t = table.toNativeUtf8();
final c = column.toNativeUtf8();
final v = value.toNativeUtf8();
try {
final ptr = _selectWhereJson(_handle, t, c, v);
if (ptr.address == 0) {
throw Exception(lastError());
}
try {
final map = jsonDecode(ptr.toDartString()) as Map<String, dynamic>;
return VaudbTableRows.fromJson(map);
} finally {
_freeString(ptr);
}
} finally {
malloc.free(t);
malloc.free(c);
malloc.free(v);
}
}