<commit_before>#ifndef __DATABASE_PQ_DRIVER_HPP__
#define __DATABASE_PQ_DRIVER_HPP__

#include <memory>
#include <wspp/util/dictionary.hpp>

namespace wspp { namespace db {

class ConnectionHandle ;

class PQDriver {

public:

    PQDriver() = default ;

    static const PQDriver &instance() {
        static PQDriver instance ;
        return instance ;
    }

    std::shared_ptr<ConnectionHandle> open(const util::Dictionary &params) const ;
};

}
}
<commit_msg>pgsql backend<commit_after>#ifndef __DATABASE_PQ_DRIVER_HPP__
#define __DATABASE_PQ_DRIVER_HPP__

#include <memory>
#include <wspp/util/dictionary.hpp>

namespace wspp { namespace db {

class ConnectionHandle ;

// The PostgreSQL driver
//
// The connections string is of the form pgsql:<; delimited option list>
//
// for available options see:
// https://www.postgresql.org/docs/9.4/static/libpq-connect.html

class PQDriver {

public:

    PQDriver() = default ;

    static const PQDriver &instance() {
        static PQDriver instance ;
        return instance ;
    }

    std::shared_ptr<ConnectionHandle> open(const util::Dictionary &params) const ;
};

}
}

{'fraction_non_alphanumeric': 0.10335689045936396, 'fraction_numerical': 0.0017667844522968198, 'mean_word_length': 3.8626609442060085, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, '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': '3383434', 'n_tokens_mistral': 387, 'n_tokens_neox': 364, 'n_words': 86}