Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 148 Revision 621
Zeile 73... Zeile 73...
73
 
73
 
74
        return "match ({$columns}) against (".$value."{$mode}{$expanded})";
74
        return "match ({$columns}) against (".$value."{$mode}{$expanded})";
Zeile 75... Zeile 75...
75
    }
75
    }
-
 
76
 
-
 
77
    /**
-
 
78
     * Compile the index hints for the query.
-
 
79
     *
-
 
80
     * @param  \Illuminate\Database\Query\Builder  $query
-
 
81
     * @param  \Illuminate\Database\Query\IndexHint  $indexHint
-
 
82
     * @return string
-
 
83
     */
-
 
84
    protected function compileIndexHint(Builder $query, $indexHint)
-
 
85
    {
-
 
86
        return match ($indexHint->type) {
-
 
87
            'hint' => "use index ({$indexHint->index})",
-
 
88
            'force' => "force index ({$indexHint->index})",
-
 
89
            default => "ignore index ({$indexHint->index})",
-
 
90
        };
-
 
91
    }
76
 
92
 
77
    /**
93
    /**
78
     * Compile an insert ignore statement into SQL.
94
     * Compile an insert ignore statement into SQL.
79
     *
95
     *
80
     * @param  \Illuminate\Database\Query\Builder  $query
96
     * @param  \Illuminate\Database\Query\Builder  $query