supabase-client-query
Query builder, filters, modifiers, and SQL/PostgREST execution for supabase-client.
Note: This crate is part of the
supabase-client-sdkworkspace. Most users should depend onsupabase-client-sdkwith thequeryfeature (enabled by default) rather than using this crate directly.
Key Features
SupabaseClientQueryExtextension trait — adds.from(),.from_typed(),.rpc(),.rpc_typed()toSupabaseClient- Fluent builders:
SelectBuilder,InsertBuilder,UpdateBuilder,DeleteBuilder,UpsertBuilder,RpcBuilder - 20+ filter methods:
eq,neq,gt,lt,gte,lte,like,ilike,in_,is,contains,overlaps,text_search,or_,not_, and more - Modifiers:
order,limit,range,single,count,head,explain - Response format overrides:
.csv()and.geojson() - Count options:
exact,planned,estimatedviacount_option() - RPC dry-run with
.rollback() - Optional
direct-sqlfeature for direct PostgreSQL execution via sqlx
Usage
use SupabaseClientQueryExt;
let response = client.from
.select
.eq
.order
.limit
.execute
.await;
let rows = response.into_result?;
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.