import { BaseDataSourceOptions } from "../../data-source/BaseDataSourceOptions" import { SapConnectionCredentialsOptions } from "./SapConnectionCredentialsOptions" /** * SAP Hana specific connection options. */ export interface SapConnectionOptions extends BaseDataSourceOptions, SapConnectionCredentialsOptions { /** * Database type. */ readonly type: "sap" /** * Database schema. */ readonly schema?: string /** * The driver objects * This defaults to require("hdb-pool") */ readonly driver?: any /** * The driver objects * This defaults to require("@sap/hana-client") */ readonly hanaClientDriver?: any /** * Pool options. */ readonly pool?: { /** * Max number of connections. */ readonly max?: number /** * Minimum number of connections. */ readonly min?: number /** * Maximum number of waiting requests allowed. (default=0, no limit). */ readonly maxWaitingRequests?: number /** * Max milliseconds a request will wait for a resource before timing out. (default=5000) */ readonly requestTimeout?: number /** * How often to run resource timeout checks. (default=0, disabled) */ readonly checkInterval?: number /** * Idle timeout */ readonly idleTimeout?: number /** * Function handling errors thrown by drivers pool. * Defaults to logging error with `warn` level. */ readonly poolErrorHandler?: (err: any) => any } readonly poolSize?: never }