<commit_before><commit_msg>Added query factory builder class<commit_after><?php

namespace Database;

use Aura\SqlQuery\QueryFactory;

class Query
{
    /**
     * @var Connect
     */
    protected $_connection;

    /**
     * @var QueryFactory
     */
    protected $_factory;

    /**
     * Create sql query factory
     */
    public function __construct()
    {
        $this->_connection = new Connect;
        $this->_factory = new QueryFactory('mysql');
    }

    /**
     * return select object
     *
     * @return \Aura\SqlQuery\Common\SelectInterface
     */
    public function select()
    {
        return $this->_factory->newSelect();
    }

    /**
     * return insert object
     *
     * @return \Aura\SqlQuery\Common\InsertInterface
     */
    public function insert()
    {
        return  $this->_factory->newInsert();
    }
}
{'fraction_non_alphanumeric': 0.12412177985948478, 'fraction_numerical': 0.0, 'mean_word_length': 2.0427046263345194, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 9, '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': '5358801', 'n_tokens_mistral': 245, 'n_tokens_neox': 241, 'n_words': 52}