from method
Perform a table operation.
Implementation
SupabaseQueryBuilder from(String table) {
late final String url;
StreamPostgrestFilter? streamFilter;
/// Check whether there is realtime filter or not
if (RegExp(r'^.*:.*\=eq\..*$').hasMatch(table)) {
final tableName = table.split(':').first;
url = '$restUrl/$tableName';
final colVals = table.split(':').last.split('=eq.');
streamFilter =
StreamPostgrestFilter(column: colVals.first, value: colVals.last);
} else {
url = '$restUrl/$table';
}
return SupabaseQueryBuilder(
url,
realtime,
headers: _getAuthHeaders(),
schema: schema,
table: table,
streamFilter: streamFilter,
);
}