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.

17 lines (16 loc) 594 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.defaultUpdateOptions = exports.isUpdateValues = void 0; const types_1 = require("../types"); const isUpdateValues = (val) => val !== undefined && val !== null && !Array.isArray(val) && typeof val === 'object' && Object.values(val).every((v) => (0, types_1.isSqlValues)(v) || v === undefined || (0, types_1.isSqlExpressionPreparedStatement)(v)); exports.isUpdateValues = isUpdateValues; exports.defaultUpdateOptions = { ignore: false, returnPreparedStatement: false, };