UNPKG

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.

14 lines (13 loc) 579 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isJoinObject = exports.isAliasExpressionObject = void 0; const isAliasExpressionObject = (val) => val !== undefined && val !== null && !Array.isArray(val) && typeof val === 'object' && Object.keys(val).length !== 0; exports.isAliasExpressionObject = isAliasExpressionObject; const isJoinObject = (val) => { return typeof (val === null || val === void 0 ? void 0 : val.table) === 'string' || (0, exports.isAliasExpressionObject)(val); }; exports.isJoinObject = isJoinObject;