UNPKG

ts-sql-query

Version:

Type-safe SQL query builder like QueryDSL or JOOQ in Java or Linq in .Net for TypeScript with MariaDB, MySql, Oracle, PostgreSql, Sqlite and SqlServer support.

18 lines (17 loc) 885 B
import type { MySql, TypeSafeDB, TypeUnsafeDB } from "../databases"; import type { QueryRunner } from "../queryRunners/QueryRunner"; import type { MySqlSqlBuilder } from "../sqlBuilders/MySqlSqlBuilder"; import { AbstractMySqlMariaDBConnection } from "./AbstractMySqlMariaDBConnection"; export declare abstract class AbstractMySqlConnection<DB extends MySql & (TypeUnsafeDB | TypeSafeDB)> extends AbstractMySqlMariaDBConnection<DB> { protected uuidStrategy: 'string' | 'binary'; constructor(queryRunner: QueryRunner, sqlBuilder: MySqlSqlBuilder); /** * The compatibility mode try to maximize the compatibility with older versions of MySQL (MySQL 5) * * The syntax avoided are: * - With clause, instead the query is directly included in the from * * Note: Recursive queries are not supported */ protected compatibilityMode: boolean; }