code: function wrap(field, type, packet, encoding) {
      return {
        type: type,
        length: field.columnLength,
        db: field.schema,
        table: field.table,
        name: field.name,
        string: function() {
          return packet.readLengthCodedString(encoding);
        },
        buffer: function() {
          return packet.readLengthCodedBuffer();
        },
        geometry: function() {
          return packet.parseGeometryValue();
        }
      };
    }
docs: node-mysql typeCast compatibility wrapper see https://github.com/mysqljs/mysql/blob/96fdd0566b654436624e2375c7b6604b1f50f825/lib/protocol/packets/Field.js