UNPKG

typeorm

Version:

Data-Mapper ORM for TypeScript, ES7, ES6, ES5. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, MongoDB databases.

50 lines (49 loc) 2.13 kB
import { DefaultAuthentication } from "./authentication/DefaultAuthentication"; import { AzureActiveDirectoryAccessTokenAuthentication } from "./authentication/AzureActiveDirectoryAccessTokenAuthentication"; import { AzureActiveDirectoryMsiAppServiceAuthentication } from "./authentication/AzureActiveDirectoryMsiAppServiceAuthentication"; import { AzureActiveDirectoryMsiVmAuthentication } from "./authentication/AzureActiveDirectoryMsiVmAuthentication"; import { AzureActiveDirectoryPasswordAuthentication } from "./authentication/AzureActiveDirectoryPasswordAuthentication"; import { AzureActiveDirectoryServicePrincipalSecret } from "./authentication/AzureActiveDirectoryServicePrincipalSecret"; import { NtlmAuthentication } from "./authentication/NtlmAuthentication"; export declare type SqlServerConnectionCredentialsAuthenticationOptions = DefaultAuthentication | NtlmAuthentication | AzureActiveDirectoryAccessTokenAuthentication | AzureActiveDirectoryMsiAppServiceAuthentication | AzureActiveDirectoryMsiVmAuthentication | AzureActiveDirectoryPasswordAuthentication | AzureActiveDirectoryServicePrincipalSecret; /** * SqlServer specific connection credential options. */ export interface SqlServerConnectionCredentialsOptions { /** * Connection url where perform connection to. */ readonly url?: string; /** * Database host. */ readonly host?: string; /** * Database host port. */ readonly port?: number; /** * Database name to connect to. */ readonly database?: string; /** * Database username. */ readonly username?: string; /** * Database password. */ readonly password?: string; /** * Authentication settings * It overrides username and password, when passed. */ readonly authentication?: SqlServerConnectionCredentialsAuthenticationOptions; /** * Once you set domain, driver will connect to SQL Server using domain login. * @see SqlServerConnectionCredentialsOptions.authentication * @see NtlmAuthentication * @deprecated */ readonly domain?: string; }