B2D-Ventures/src/lib/data/dropdownQuery.ts

20 lines
668 B
TypeScript

import { SupabaseClient } from "@supabase/supabase-js";
function getAllTagsQuery(client: SupabaseClient) {
return client.from("tag").select("id, value");
}
function getALlFundedStatusQuery(client: SupabaseClient) {
return client.from("funded_status").select("id, value, description");
}
function getAllBusinessTypeQuery(client: SupabaseClient) {
return client.from("business_type").select("id, value, description");
}
function getAllProjectStatusQuery(client: SupabaseClient) {
return client.from("project_status").select("id, value, description");
}
export { getAllBusinessTypeQuery, getALlFundedStatusQuery, getAllTagsQuery, getAllProjectStatusQuery };