MCPcopy
hub / github.com/remix-run/remix / createMysqlDatabaseAdapter

Function createMysqlDatabaseAdapter

packages/data-table-mysql/src/lib/adapter.ts:343–345  ·  view source on GitHub ↗
(client: MysqlQueryable)

Source from the content-addressed store, hash-verified

341 * ```
342 */
343export function createMysqlDatabaseAdapter(client: MysqlQueryable): MysqlDatabaseAdapter {
344 return new MysqlDatabaseAdapter(client)
345}
346
347function isMysqlPool(client: MysqlQueryable): client is MysqlPool {
348 return 'getConnection' in client && typeof client.getConnection === 'function'

Callers 2

adapter.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…