Creates a mock factory for the
@backstage/backend-plugin-api#coreServices.database. Just returns
the given knex instance if you supply one, which is useful in
combination with the TestDatabases facility. Otherwise, it
returns the regular default database factory which reads config settings.
Creates a mock factory for the @backstage/backend-plugin-api#coreServices.database. Just returns the given
knexinstance if you supply one, which is useful in combination with the TestDatabases facility. Otherwise, it returns the regular default database factory which reads config settings.