import { Knex } from 'knex'; /** * Manages access to databases that plugins get. * * See the {@link https://backstage.io/docs/backend-system/core-services/database | service documentation} for more details. * * @public */ export interface DatabaseService { /** * getClient provides backend plugins database connections for itself. * * The purpose of this method is to allow plugins to get isolated data * stores so that plugins are discouraged from database integration. */ getClient(): Promise; /** * This property is used to control the behavior of database migrations. */ migrations?: { /** * skip database migrations. Useful if connecting to a read-only database. * * @defaultValue false */ skip?: boolean; }; }