eq method

PostgrestFilterBuilder<T> eq(
  1. String column,
  2. Object value
)

Finds all rows whose value on the stated column exactly matches the specified value.

await supabase
    .from('users')
    .select()
    .eq('username', 'supabot');

Implementation

PostgrestFilterBuilder<T> eq(String column, Object value) {
  final Uri url;
  if (value is List) {
    url = appendSearchParams(column, 'eq.{${_cleanFilterArray(value)}}');
  } else {
    url = appendSearchParams(column, 'eq.$value');
  }
  return copyWithUrl(url);
}