yashmakan's picture
files added
bf2bf0e
raw
history blame contribute delete
394 Bytes
from core.constants import Tables
from core.interface.supabase_client import supabase_config, async_supabase_client
class BrandDataSource:
@staticmethod
async def fetch_brands():
supabase = await async_supabase_client(supabase_config)
response = await supabase.table(Tables.BRAND_TABLE) \
.select('*') \
.execute()
return response.data