Returns new or existing data sql builder class for this table.

@return DataSQLBuilder
769628
public function getDataSQLBuilder()
    {
        if (!isset($this->dataSqlBuilder)) {
            $this->dataSqlBuilder = $this->getGeneratorConfig()->getConfiguredBuilder($this->getTable(), 'datasql');
        }

        return $this->dataSqlBuilder;
    }
849197
protected function newBaseQueryBuilder()
    {
        $connection = $this->getConnection();

        return new QueryBuilder($connection, $connection->getQueryGrammar(), $connection->getPostProcessor());
    }
116212
public function newQuery()
    {
        $builder = new self($this->mapper, $this->adapter);

        return $this->applyGlobalScopes($builder);
    }
156556
public function getNewBuilder(Table $table, $classname)
    {
        /** @var DataModelBuilder $builder */
        $builder = new $classname($table);
        $builder->setGeneratorConfig($this);

        return $builder;
    }
297967
public SqlBuilder builder() {
        List<IRuleParser> sqlRuleParsers = new ArrayList<>();
        for (IRuleParser parser : ruleParsers) {
            if (parser instanceof AbstractSqlRuleParser) {
                sqlRuleParsers.add(parser);
            }
        }
        return new SqlBuilder(groupParser, sqlRuleParsers, filters);
    }
1150106
public Builder newBuilder() {
        return new Builder()
                .name(name)
                .addColumn(columns)
                .addFk(fks)
                .pkFields(pkFields)
                .addIndexes(indexes);
    }
19580
public function getSQLAdapter() {
		return $this->sqlAdapter ? $this->sqlAdapter :
			($this->transactionOperationSet ? $this->transactionOperationSet->getSQLAdapter() : null);
	}
1018921
public function getSql()
    {
        $table = $this->table;

        if ($this->hasTable($table)) {
            $this->isChange = true;
        }

        $columnSql = $this->getCreateDefinition();

        if ($this->isChange) {
            $sql = "ALTER TABLE $table" . $columnSql;
        } else {
            $sql = "CREATE TABLE $table ($columnSql)";
            $sql .= $this->getTableOptionSql();
        }

        return $sql;
    }
1086216
public function getBuilder()
    {
        if (!empty($this->builder)) {
            return $this->builder;
        } else {
            return $this->getConfig('builder') ?: '\\tpr\\db\\builder\\' . ucfirst($this->getConfig('type'));
        }
    }
819265
protected function newBaseQueryBuilder()
    {
        $conn = $this->getConnection();

        $grammar = $conn->getQueryGrammar();

        return new MbDatabaseQueryBuilder($conn, $grammar, $conn->getPostProcessor());
    }
691708
protected function createDatabaseDriver()
    {
        $table = $this->app['config']['session.table'];

        $lifetime = $this->app['config']['session.lifetime'];

        return $this->buildSession(new DatabaseSessionHandler(
            $this->getDatabaseConnection(), $table, $lifetime, $this->app
        ));
    }
481026
public function getQueryBuilder()
    {
        if (!isset($this->queryBuilder)) {
            $this->queryBuilder = $this->getGeneratorConfig()->getConfiguredBuilder($this->getTable(), 'query');
        }

        return $this->queryBuilder;
    }
258861
public static function getSQLAdapter() {
		$classData = null;
		static::getClassData($classData);
		if( !isset($classData->sqlAdapter) || !$classData->sqlAdapter ) {
			$classData->sqlAdapter = SQLAdapter::getInstance(static::$DBInstance);
		}
		// This after $knownClassData classData
		return $classData->sqlAdapter;
	}
704008
protected function _buildSelect()
        {
            // If the query is raw, just set the $this->_values to be
            // the raw query parameters and return the raw query
            if ($this->_is_raw_query) {
                $this->_values = $this->_raw_parameters;
                return $this->_raw_query;
            }

            // Build and return the full SELECT statement by concatenating
            // the results of calling each separate builder method.
            return $this->_joinIfNotEmpty(
                " ",
                array(
                    $this->_buildSelectStart(),
                    $this->_buildJoin(),
                    $this->_buildWhere(),
                    $this->_buildGroupBy(),
                    $this->_buildHaving(),
                    $this->_buildOrderBy(),
                    $this->_buildLimit(),
                    $this->_buildOffset(),
                )
            );
        }
1007343
public function html(): Builder
    {
        /** @var Builder $table */
        $table = app('datatables.html');

        return $table
            ->columns($this->getColumns())
            ->ajax($this->getAjaxOptions())
            ->parameters($this->getParameters());
    }
1198849
public function query() : Builder
	{
		if (trim($seed = $this->seed) !== '') {
			$this->builder->where(function ($query) use ($seed) {
				return $this->resolveQuery($query, $seed);
			});
		}

		return $this->builder;
	}
1223806
public function getDataProvidor() {
		$option = $this->options;
		$cfg    = isset($this->options['dsCfg']) ? $this->options['dsCfg'] : '';
		if (!is_array($cfg)) {
			$cfg = trim($cfg);
		}
		if (!isset($option['dataSource']) && is_string($cfg)) {
			$cfg1 = ltrim($cfg, ':');
			if (strlen($cfg) - strlen($cfg1) == 2) {
				return new FieldDataProvidor($this->form, $this, $cfg1);
			}

			return FieldDataProvidor::emptyDatasource();
		}

		$dsp = trim($option['dataSource'], '()\\');
		if ($dsp == 'json') {
			return new JsonDataProvidor($this->form, $this, $cfg);
		}

		if ($dsp == 'table') {
			return new TableDataProvidor($this->form, $this, $cfg);
		}

		if ($dsp == 'text') {
			return new LineDataProvidor($this->form, $this, $cfg);
		}

		if ($dsp == 'param' || $dsp == 'parse_str') {
			return new ParamDataProvidor($this->form, $this, $cfg);
		}

		if (!is_subclass_of($dsp, FieldDataProvidor::class)) {
			return FieldDataProvidor::emptyDatasource();
		}

		return new $dsp($this->form, $this, $cfg);
	}