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.

16 lines (15 loc) 943 B
import type { QueryRunner } from "../queryRunners/QueryRunner"; import type { MariaDBSqlBuilder } from "../sqlBuilders/MariaDBSqlBuilder"; import type { MariaDB, TypeSafeDB, TypeUnsafeDB } from "../databases"; import { AbstractMySqlMariaDBConnection } from "./AbstractMySqlMariaDBConnection"; export declare abstract class AbstractMariaDBConnection<DB extends MariaDB & (TypeUnsafeDB | TypeSafeDB)> extends AbstractMySqlMariaDBConnection<DB> { protected uuidStrategy: 'string' | 'uuid'; /** * MariaBD 10.5 added support to the returning clause when insert or delete. * If you set this flag to true, the insert returning last inserted id will * generate the returning clause instead of use the last inserted id provided * by the connector after the execution of the query. */ protected alwaysUseReturningClauseWhenInsert: boolean; constructor(queryRunner: QueryRunner, sqlBuilder: MariaDBSqlBuilder); }