UNPKG

lakutata

Version:

An IoC-based universal application framework.

74 lines (70 loc) 1.85 kB
import { BaseDataSourceOptions } from './TypeDef.internal.33.js'; /** * MySQL specific connection credential options. * * @see https://github.com/mysqljs/mysql#connection-options */ interface AuroraMysqlConnectionCredentialsOptions { /** * Connection url where the connection is performed. */ readonly url?: string; /** * Database host. */ readonly host?: string; /** * Database host port. */ readonly port?: number; /** * Database username. */ readonly username?: string; /** * Database password. */ readonly password?: string; /** * Database name to connect to. */ readonly database?: string; /** * Object with ssl parameters or a string containing name of ssl profile. */ readonly ssl?: any; } /** * MySQL specific connection options. * * @see https://github.com/mysqljs/mysql#connection-options */ interface AuroraMysqlConnectionOptions extends BaseDataSourceOptions, AuroraMysqlConnectionCredentialsOptions { /** * Database type. */ readonly type: "aurora-mysql"; readonly region: string; readonly secretArn: string; readonly resourceArn: string; readonly database: string; /** * The driver object * This defaults to require("typeorm-aurora-data-api-driver") */ readonly driver?: any; readonly serviceConfigOptions?: { [key: string]: any; }; readonly formatOptions?: { [key: string]: any; castParameters: boolean; }; /** * Use spatial functions like GeomFromText and AsText which are removed in MySQL 8. * (Default: true) */ readonly legacySpatialSupport?: boolean; readonly poolSize?: never; } export type { AuroraMysqlConnectionCredentialsOptions, AuroraMysqlConnectionOptions };