A TypeScript-based database server that provides a unified interface for connecting to multiple database systems (SQLite, PostgreSQL, SQL Server, and MongoDB). Built by cuongtl1992, this implementation offers flexible database interactions through a consistent API, supporting both server-sent events and standard I/O communication modes. Useful for AI assistants and applications that need to query, update, and explore database schemas across different database technologies.
暂无评论. 成为第一个评论的人!
登录以参与讨论
Connect to a database. Parameters: connectionId (string), type (string) - Database type ('sqlite', 'postgres', 'mssql', or 'mongodb').
Disconnect from a database. Parameters: connectionId (string) - The connection ID to disconnect.
Execute a query that returns results. Parameters: connectionId (string), query (string) - SQL query or MongoDB aggregation pipeline (as JSON string), params (optional array) - Array of parameters for the query.
Execute a query that doesn't return results (INSERT, UPDATE, DELETE). Parameters: connectionId (string), query (string) - SQL query or MongoDB command (as JSON string), params (optional array) - Array of parameters for the query.