Conversation
…nd MSSQL Co-authored-by: danhab99 <13894263+danhab99@users.noreply.github.com>
Co-authored-by: danhab99 <13894263+danhab99@users.noreply.github.com>
…result handling Co-authored-by: danhab99 <13894263+danhab99@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add SQL connector for MySQL, PostgreSQL, and others
Add SQL connector with multi-flavor support (MySQL, PostgreSQL, SQLite, MSSQL)
Jan 21, 2026
danhab99
requested changes
Jan 21, 2026
Owner
danhab99
left a comment
There was a problem hiding this comment.
I would like for it to have access to all of the databases available in the server given permissions
Co-authored-by: danhab99 <13894263+danhab99@users.noreply.github.com>
…tility Co-authored-by: danhab99 <13894263+danhab99@users.noreply.github.com>
Contributor
Author
Done! The SQL connector now supports multi-database access with these new capabilities: New Tools:
Enhanced Tools:
Security:
The connector can now access all databases on the server given appropriate permissions. Implementation in commits b5977cf and b230cd8. |
Copilot
AI
changed the title
Add SQL connector with multi-flavor support (MySQL, PostgreSQL, SQLite, MSSQL)
Add SQL connector with multi-flavor and multi-database access support (MySQL, PostgreSQL, SQLite, MSSQL)
Jan 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements a universal SQL database connector supporting MySQL, PostgreSQL, SQLite, and Microsoft SQL Server through a unified interface with multi-database access capabilities.
Core Implementation
Client Factory Pattern (
connections/sql/src/lib.ts)SQLClientinterface abstracts database-specific implementations?→$1, $2...(PostgreSQL),@param0, @param1...(MSSQL)changesfor SQLite,rowCountfor PostgreSQL)Tools (
connections/sql/src/queries/)listDatabases: Lists all databases available on the server with appropriate permissionsswitchDatabase: Switches between databases at runtime (MySQL, MSSQL)executeQuery: Parameterized query execution with SQL injection protection and optional per-query database selectionlistTables: Flavor-aware table enumeration with optional database parameterdescribeTable: Schema introspection with optional database parameterMulti-Database Access
The connector now supports accessing multiple databases on a single server connection:
Support by Flavor:
Configuration
Supports flavor-specific connection parameters:
Security
Integration
server/src/lib/connection.tsalongside existing connectorsmysql2,pg,better-sqlite3,mssqlOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.