is_()

is_()用于检查是否完全相等(null, true, false),找到所有在所述列(column)上的值与指定的值(value)完全匹配的记录。

is_in_过滤方法的后缀是_,以避免与保留的关键字发生冲突。

案例教程

案例1 (使用select)#

1final data = await supabase
2  .from('cities')
3  .select('name, country_id')
4  .is_('name', null);

案例2 (使用update)#

1final data = await supabase
2  .from('cities')
3  .update({ 'name': 'Mordor' })
4  .is_('name', null);

案例3 (使用delete)#

1final data = await supabase
2  .from('cities')
3  .delete()
4  .is_('name', null);

案例4 (使用rpc)#

1// Only valid if the Stored Procedure returns a table type.
2final data = await supabase
3  .rpc('echo_all_cities')
4  .is_('name', null);