This is an n8n community node for interacting with Turso databases using the libSQL client.
- n8n instance (v0.107.0 or later)
- Turso account and database
You can install this package from npm:
# For n8n global installation
npm install -g n8n-nodes-turso
# For n8n installed as npm package
npm install n8n-nodes-turso
After installation, restart your n8n instance for the new node to be recognized.
- Go to Settings > Community Nodes
- Click Install
- Enter
n8n-nodes-turso
in the "Install npm package" field - Click Install
Interact directly with your Turso database using the libSQL client:
- Execute Query: Run SQL queries against your Turso database with support for parameterized queries
- Execute Batch: Run multiple SQL queries in sequence
-
Insert Rows: Insert data into tables with support for data types (e.g.,
id:int,name:text
) - Update Rows: Update table data with WHERE clause filtering
- Delete Rows: Delete rows with WHERE clause filtering
- List Tables: Get a list of all tables in your database
- Describe Table: View schema information about a specific table
This node requires Turso Database credentials:
-
Database URL: The URL of your Turso database (obtained with
turso db show --url <database-name>
) -
Auth Token: The authentication token for your database (obtained with
turso db tokens create <database-name>
)
- Create a new workflow
- Add the Turso node
- Select "Execute Query" as the operation
- Enter your SQL query (e.g.,
SELECT * FROM users
) - Configure credentials and run the workflow
- Create a new workflow
- Add the Turso node
- Select "Insert Rows" as the operation
- Enter your table name and column definitions
- Choose data source (Input Items or Manual Input)
- Provide values to insert
- Configure credentials and run the workflow
- Create a new workflow
- Add the Turso node
- Select "Execute Batch" as the operation
- Add multiple queries you want to execute
- Configure credentials and run the workflow
- If the node doesn't appear after installation, restart your n8n instance
- Check that your Turso database URL and authentication token are correct
- Ensure your Turso database is online and accessible
Feel free to contribute to this node by opening issues or submitting pull requests on the GitHub repository.