Connect directly to your CockroachDB database and execute SQL queries seamlessly. Retrieve table structures, manage connections, and utilize SQL query templates to enhance your database interactions. Experience automatic reconnection and detailed logging for troubleshooting.
Tools
connect_database
连接到CockroachDB数据库。 Args: jdbc_url: JDBC连接URL (例如: jdbc:postgresql://localhost:26257/defaultdb) username: 数据库用户名 password: 数据库密码
disconnect_database
断开与数据库的连接。 Returns: 断开连接的结果
get_tables
获取数据库中的所有表。 Returns: 包含表信息的字典
get_table_schema
获取指定表的结构信息。 Args: table_name: 表名 Returns: 包含表结构信息的字典
View 2 more tools