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.
20 lines (19 loc) • 945 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AbstractMariaDBConnection = void 0;
const AbstractMySqlMariaDBConnection_1 = require("./AbstractMySqlMariaDBConnection");
class AbstractMariaDBConnection extends AbstractMySqlMariaDBConnection_1.AbstractMySqlMariaDBConnection {
constructor(queryRunner, sqlBuilder) {
super(queryRunner, sqlBuilder);
this.uuidStrategy = '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.
*/
this.alwaysUseReturningClauseWhenInsert = false;
queryRunner.useDatabase('mariaDB');
}
}
exports.AbstractMariaDBConnection = AbstractMariaDBConnection;