Selecting a table
Selecting a table from your database using the Supabase client.
from(tableName: string)
The from() method is your entry point to database operations in Supabase. It selects a table from your PostgreSQL database and returns a query builder that enables you to construct and execute SQL queries using a fluent, chainable API.
Parameters
Prop
Type
Return Value
The from() method returns a RootQuery object, which serves as the foundation for building database queries.
Usage
-- Assuming you've defined your Supabase client beforehand
local data, error = client
:from("TableName")
-- Then select the operation you want to execute (i.e. select, insert, update, delete)