mirror of
https://github.com/Sosokker/B2D-Ventures.git
synced 2025-12-18 21:44:06 +01:00
feat: query function for dropdown
This commit is contained in:
parent
bc0d347e18
commit
a2b90d9fb9
16
src/lib/data/dropdownQuery.ts
Normal file
16
src/lib/data/dropdownQuery.ts
Normal file
@ -0,0 +1,16 @@
|
||||
import { SupabaseClient } from "@supabase/supabase-js";
|
||||
|
||||
|
||||
function getAllTagsQuery(client: SupabaseClient) {
|
||||
return client.from("Tag").select("id, value");
|
||||
}
|
||||
|
||||
function getALlFundedStatusQuery(client: SupabaseClient) {
|
||||
return client.from("FundedStatus").select("id, value, description");
|
||||
}
|
||||
|
||||
function getAllBusinessTypeQuery(client: SupabaseClient) {
|
||||
return client.from("BusinessType").select("id, value, description");
|
||||
}
|
||||
|
||||
export { getAllTagsQuery, getALlFundedStatusQuery, getAllBusinessTypeQuery };
|
||||
Loading…
Reference in New Issue
Block a user