Loading...
npx @bytebase/dbhub@latest --transport http --port 8080 --dsn "postgres://user:password@localhost:5432/dbname?sslmode=disable"execute_sqlExecutes SQL queries against the configured databases, supporting transactions.
Allows arbitrary SQL execution, potentially leading to data modification or deletion.
search_objectsSearches and explores database schemas, tables, columns, and other database objects.
Read-only operation that does not modify data.
Custom ToolsExecutes user-defined SQL operations defined in the configuration file.
The danger level depends entirely on the SQL defined in the custom tool, which could be anything.
DBHub offers several safety features, but the ability to execute arbitrary SQL queries means careful configuration and monitoring are necessary. It's safer in read-only mode with strict row limits and query timeouts. Risks increase with write access and custom tools.