mysql-all-in-one
Version:
A package that allows you to have a complete interaction with a MYSQL database, allowing to connect to the database, retrieve data and create queries.
18 lines (17 loc) • 684 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.defaultSelectOptions = exports.isSelectOptions = exports.isExpressionObject = void 0;
const isExpressionObject = (val) => {
return typeof (val === null || val === void 0 ? void 0 : val.__expression) === 'string';
};
exports.isExpressionObject = isExpressionObject;
const isSelectOptions = (val) => val !== undefined &&
val !== null &&
!Array.isArray(val) &&
typeof val === 'object' &&
(val.columns !== undefined || val.from !== undefined);
exports.isSelectOptions = isSelectOptions;
exports.defaultSelectOptions = {
prependAlias: true,
returnPreparedStatement: false,
};
;