code: function $formatQuery(query, values, raw, options) {
      if (typeof query !== 'string') {
          throw new TypeError('Parameter \'query\' must be a text string.');
      }
      const ctf = getCTF(values);
      if (ctf) {
          // Custom Type Formatting
          return $formatQuery(query, resolveFunc(ctf.toPostgres, values), raw || ctf.rawType, options);
      }
      if (typeof values === 'object' && values !== null) {
          if (values instanceof Array) {
              // $1, $2,... formatting to be applied;
              return formatAs.array(query, values, raw, options);
          }
          if (!(values instanceof Date || values instanceof Buffer)) {
              // $*propName* formatting to be applied;
              return formatAs.object(query, values, raw, options);
          }
      }
      // $1 formatting to be applied, if values != undefined;
      return values === undefined ? query : formatAs.value(query, values, raw);
  }
docs: ///////////////////////////////////////////////////////////////////////////////// It implements two types of formatting, depending on the 'values' passed:  1. format '$1, $2, etc', when 'values' is of type string, boolean, number, date, function or null (or an array of the same types, plus undefined values); 2. format $*propName*, when 'values' is an object (not null and not Date), and where * is any of the supported open-close pairs: {}, (), [], <>, //