<commit_before>/* LiteSQL - MySQL-backend implementation
 * 
 * The list of contributors at http://litesql.sf.net/ 
 * 
 * See LICENSE for copyright information. */
//#include "compatibility.hpp"
#include "mysql.hpp"
#ifdef HAVE_LIBMYSQLCLIENT
#include <string>

#include "config-win.h"
#include <mysql.h>

using namespace litesql;
using namespace std;


/** MySQL - result */
class MySQL::Result : public Backend::Result {
  MYSQL_RES * res;
  size_t nFields;
public:
  Result(MYSQL_RES * _res) : res(_res) 
  {     nFields = (!res) ? 0 : mysql_num_fields(res);  };
  
  virtual ~Result();
  virtual size_t fieldNum() const;<commit_msg>replaced platform dependent config-win.h by config.h<commit_after>/* LiteSQL - MySQL-backend implementation
 * 
 * The list of contributors at http://litesql.sf.net/ 
 * 
 * See LICENSE for copyright information. */
#include "mysql.hpp"
#include "config.h"

#ifdef HAVE_LIBMYSQLCLIENT

#ifdef WIN32
#include <winsock2.h>				/* For windows */
#endif

#include <string>
#include <mysql.h>

using namespace litesql;
using namespace std;


/** MySQL - result */
class MySQL::Result : public Backend::Result {
  MYSQL_RES * res;
  size_t nFields;
public:
  Result(MYSQL_RES * _res) : res(_res) 
  {     nFields = (!res) ? 0 : mysql_num_fields(res);  };
  
  virtual ~Result();
  virtual size_t fieldNum() const;
{'fraction_non_alphanumeric': 0.1325390915860015, 'fraction_numerical': 0.0037230081906180195, 'mean_word_length': 3.9051094890510947, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3704041', 'n_tokens_mistral': 472, 'n_tokens_neox': 454, 'n_words': 123}