SQL
Lightrail can also connect to a PostgresDB and run lightweight SQL queries. NoSQL databases are not supported at this time.
Action:
Query DB: Write and optionally run a SQL query against a database. Needs to be used in conjunction with the SQL Tokens (/sql.tableor/sql.db) & reference a database connection URL.
Tokens:
/sql.table: reference a specific table in the PostgresDB - requires a database connection URL./sql.db: reference a PostgresDB - requires a database connection URL.
Recipe
Run a lightweight SQL query against your Supabase instance in Lightrail:
- Select the
Query DBAction - Reference the database that you would like run the query against with
/sql.db
- Find the DB URL in Supabase & paste that into Lightrail

- Describe in natural language the query you would like to run

- Run the SQL query
