"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = checkIfIsMaster;
function checkIfIsMaster({ dbContext, dbFullName }) {
    return (dbContext === null || dbContext === void 0 ? void 0 : dbContext.match(/dsql.user/i))
        ? false
        : global.DSQL_USE_LOCAL
            ? true
            : dbFullName && !dbFullName.match(/^datasquirel$/)
                ? false
                : true;
}