作者:timpressiv
项目:art-auctio
/**
* Set the table prefix and return the grammar.
*
* @param \Illuminate\Database\Grammar $grammar
* @return \Illuminate\Database\Grammar
*/
public function withTablePrefix(Grammar $grammar)
{
$grammar->setTablePrefix($this->tablePrefix);
return $grammar;
}
作者:yajr
项目:laravel-oci
/**
* Set the schema prefix and return the grammar.
*
* @param \Illuminate\Database\Grammar|\Yajra\Oci8\Query\Grammars\OracleGrammar|\Yajra\Oci8\Schema\Grammars\OracleGrammar $grammar
* @return \Illuminate\Database\Grammar
*/
public function withSchemaPrefix(Grammar $grammar)
{
$grammar->setSchemaPrefix($this->getConfigSchemaPrefix());
return $grammar;
}
作者:GeorgeBroadle
项目:caffeine-vendo
/**
* Wrap a value in keyword identifiers.
*
* @param string $value
* @return string
*/
public function wrap($value)
{
if ($value instanceof Fluent) {
$value = $value->name;
}
return parent::wrap($value);
}
作者:Cecicecicec
项目:MySJSU-Class-Registratio
/**
* {@inheritdoc}
*/
public function wrap($value, $prefixAlias = false)
{
if ($value instanceof Fluent) {
$value = $value->name;
}
return parent::wrap($value, $prefixAlias);
}
作者:jarektkaczy
项目:laravel-searchabl
/**
* Get qualified name wrapped by the grammar.
*
* @return string
*/
public function getWrapped()
{
return $this->grammar->wrap($this->getQualifiedName());
}