MCPcopy Create free account
hub / github.com/bytebase/dbhub / parse

Method parse

src/connectors/interface.ts:118–118  ·  view source on GitHub ↗

* Parse a connection string into connector-specific configuration * @param dsn - Database connection string * @param config - Optional database-specific configuration options * Example DSN formats: * - PostgreSQL: "postgres://user:password@localhost:5432/dbname?sslmode=disable" * - Ma

(dsn: string, config?: ConnectorConfig)

Source from the content-addressed store, hash-verified

116 * - SQLite: "sqlite:///path/to/database.db" or "sqlite:///:memory:"
117 */
118 parse(dsn: string, config?: ConnectorConfig): Promise<any>;
119
120 /**
121 * Generate a sample DSN string for this connector type

Callers 15

executeToolFunction · 0.65
server.tsFile · 0.65
createCustomToolHandlerFunction · 0.65
parseToolResponseFunction · 0.65
parseToolResponseFunction · 0.65
parseSSHConfigFunction · 0.65
connectMethod · 0.65
connectMethod · 0.65
connectMethod · 0.65

Implementers 5

SQLServerDSNParsersrc/connectors/sqlserver/index.ts
PostgresDSNParsersrc/connectors/postgres/index.ts
MariadbDSNParsersrc/connectors/mariadb/index.ts
MySQLDSNParsersrc/connectors/mysql/index.ts
SQLiteDSNParsersrc/connectors/sqlite/index.ts

Calls

no outgoing calls

Tested by 2

parseToolResponseFunction · 0.52
parseToolResponseFunction · 0.52