by langgenius · v0.0.6
Universal SQLite database tool for AI agents to query and manage databases. Supports local files, cloud databases, and in-memory databases with comprehensive SQL operations.
This community listing does not yet include every recommended support, privacy, pricing, and permission disclosure. Review the available package permissions before installing.
Available inside your emploidai workspace after installation.
Available inside your emploidai workspace after installation.
Author: langgenius
Version: 0.0.1
Type: Dify Plugin Tool
A universal SQLite database tool for AI agents to query, manage, and analyze databases. Supports both SQL and JSON-based actions for easy, safe, and flexible data operations. Works with local files, cloud databases, and in-memory databases.
.db fileCreates a new table in the SQLite database using SQL CREATE TABLE statements.
Parameters:
create_table_sql (required): SQL CREATE TABLE statementExample:
CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT, email TEXT UNIQUE)
Executes SQL SELECT statements to query data from tables.
Parameters:
select_sql (required): SQL SELECT statementExamples:
SELECT * FROM users WHERE name = 'Alice'
SELECT name, COUNT(*) as count FROM users GROUP BY name
Inserts data using SQL INSERT statements.
Parameters:
insert_sql (required): SQL INSERT statementExamples:
INSERT INTO users (id, name, email) VALUES (1, 'Alice', 'alice@example.com')
INSERT INTO users (name, email) VALUES ('Bob', 'bob@example.com'), ('Charlie', 'charlie@example.com')
Inserts data using JSON format for easier programmatic access.
Parameters:
table (required): Name of the table to insert intodata (required): JSON string of data to insert (single object or array of objects)Examples:
Single row:
{
"table": "users",
"data": "{\"id\": 2, \"name\": \"Bob\", \"email\": \"bob@example.com\"}"
}
Multiple rows:
{
"table": "users",
"data": "[{\"id\": 3, \"name\": \"Charlie\", \"email\": \"charlie@example.com\"}, {\"id\": 4, \"name\": \"Dana\", \"email\": \"dana@example.com\"}]"
}
Updates data using SQL UPDATE statements.
Parameters:
update_sql (required): SQL UPDATE statementExample:
UPDATE users SET name = 'Alice Smith', email = 'alice.smith@example.com' WHERE id = 1
Updates data using JSON format with separate data and condition parameters.
Parameters:
table (required): Name of the table to updatedata (required): JSON string with columns and new valueswhere (required): JSON string with conditions for selecting rows to updateExample:
{
"table": "users",
"data": "{\"name\": \"Alice Smith\", \"email\": \"alice.smith@example.com\"}",
"where": "{\"id\": 1}"
}
Deletes rows or entire tables using SQL DELETE or DROP statements.
Parameters:
delete_sql (required): SQL DELETE or DROP statementExamples:
Delete specific rows:
DELETE FROM users WHERE id = 1
Delete all rows:
DELETE FROM users
Drop entire table:
DROP TABLE users
SELECT u.name, COUNT(o.id) as order_count
FROM users u
LEFT JOIN orders o ON u.id = o.user_id
GROUP BY u.id, u.name
HAVING order_count > 0
ORDER BY order_count DESC
SELECT name, salary,
ROW_NUMBER() OVER (PARTITION BY department ORDER BY salary DESC) as rank
FROM employees
WITH RECURSIVE categories AS (
SELECT id, name, parent_id, 0 as level
FROM category
WHERE parent_id IS NULL
UNION ALL
SELECT c.id, c.name, c.parent_id, cat.level + 1
FROM category c
JOIN categories cat ON c.parent_id = cat.id
)
SELECT * FROM categories
The plugin provides detailed error messages for common issues:
SELECT *For issues, questions, or contributions, please refer to the Dify plugin documentation or contact the development team.