Skip to main content

Function: isSqlDataSource()

isSqlDataSource(conn): boolean

Defined in: service-core/src/database/ConnectionKinds.ts:12

Determines whether the given connection object is a TypeORM DataSource for a SQL database. This check is performed without importing the optional typeorm package by duck-typing the connection object.

Parameters

conn

any

The connection object to inspect.

Returns

boolean