MCPcopy
hub / github.com/prisma/prisma / rewriteConnectionString

Function rewriteConnectionString

packages/adapter-mariadb/src/mariadb.ts:312–317  ·  view source on GitHub ↗
(url: URL)

Source from the content-addressed store, hash-verified

310 * This allows users to use mysql:// connection strings with the MariaDB adapter.
311 */
312export function rewriteConnectionString(url: URL): URL {
313 if (url.protocol === 'mysql:') {
314 url.protocol = 'mariadb:'
315 }
316 return url
317}
318
319type ArrayModeResult = unknown[][] & { meta?: mariadb.FieldInfo[]; affectedRows?: number; insertId?: BigInt }

Callers 2

mariadb.test.tsFile · 0.90
constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…