export const db = drizzle(poolConnection); and my Inversify config is pretty simple: container.bind<MySql2Database>(TYPES.Database).toConstantValue(db);, and then my repository class constructor simply has a field @inject(TYPES.Database) private db: MySql2Database,. I'm pretty sure this is all a standard setupMySql2Database is not exported, sort of... the driver.ts file has MySql2Database defined, but the driver.js file doesn't have it exported - instead it is exported like this: MySql2Database as MySqlDatabase. 