<commit_before><?php namespace ClanCats\Hydrahon\Query;

/**
 * SQL query object
 ** 
 * @package         Hydrahon
 * @copyright       2015 <NAME>
 */

use ClanCats\Hydrahon\BaseQuery;

use ClanCats\Hydrahon\Query\Sql\Select;
use ClanCats\Hydrahon\Query\Sql\Insert;
use ClanCats\Hydrahon\Query\Sql\Update;
use ClanCats\Hydrahon\Query\Sql\Delete;
use ClanCats\Hydrahon\Query\Sql\Drop;
use ClanCats\Hydrahon\Query\Sql\Truncate;
use ClanCats\Hydrahon\Query\Sql\Table;

class Sql extends BaseQuery
{
    /**
     * Create a new table instance
     * 
     *     $h->table('users')
     *
     * @param string|array                              $fields
     * @return Select
     */
    public function table($table = null, $alias = null)
    {
        $query = new Table($this); return $query->table($table, $alias);
    }

    /**
     * Create a new select query builder
     * 
     *     $h->select('users', ['name', 'age'])
     *
     * @param string|array                              $fields
     * @return Select
     */
    public function select($table = null, $fields = null)
    {
        return $this->table($table)->select($fields);
    }

    /**
     * Create a new insert query builder
     * 
     *     $h->insert('users', ['name' => 'Lucas', 'age' => 21])
     *
     * @param array                                     $values
     * @return Insert<commit_msg>IDE doesn't autocomplete<commit_after><?php namespace ClanCats\Hydrahon\Query;

/**
 * SQL query object
 ** 
 * @package         Hydrahon
 * @copyright       2015 <NAME>
 */

use ClanCats\Hydrahon\BaseQuery;

use ClanCats\Hydrahon\Query\Sql\Select;
use ClanCats\Hydrahon\Query\Sql\Insert;
use ClanCats\Hydrahon\Query\Sql\Update;
use ClanCats\Hydrahon\Query\Sql\Delete;
use ClanCats\Hydrahon\Query\Sql\Drop;
use ClanCats\Hydrahon\Query\Sql\Truncate;
use ClanCats\Hydrahon\Query\Sql\Table;

class Sql extends BaseQuery
{
    /**
     * Create a new table instance
     * 
     *     $h->table('users')
     *
     * @param string|array                              $fields
     * @return Table
     */
    public function table($table = null, $alias = null)
    {
        $query = new Table($this); return $query->table($table, $alias);
    }

    /**
     * Create a new select query builder
     * 
     *     $h->select('users', ['name', 'age'])
     *
     * @param string|array                              $fields
     * @return Select
     */
    public function select($table = null, $fields = null)
    {
        return $this->table($table)->select($fields);
    }

    /**
     * Create a new insert query builder
     * 
     *     $h->insert('users', ['name' => 'Lucas', 'age' => 21])
     *
     * @param array                                     $values
     * @return Insert
{'fraction_non_alphanumeric': 0.1385672937771346, 'fraction_numerical': 0.004341534008683068, 'mean_word_length': 1.9699248120300752, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6049147', 'n_tokens_mistral': 925, 'n_tokens_neox': 900, 'n_words': 185}