Passed
Push — master ( 3415eb...56b5c5 )
by Jonas
04:04
created

SQLiteGrammar   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 12
ccs 2
cts 2
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A compileViewExists() 0 3 1
1
<?php
2
3
namespace Staudenmeir\LaravelMigrationViews\Schema\Grammars;
4
5
use Illuminate\Database\Schema\Grammars\SQLiteGrammar as Base;
6
7
class SQLiteGrammar extends Base
8
{
9
    use CompilesViews;
10
11
    /**
12
     * Compile the query to determine if a view exists.
13
     *
14
     * @return string
15
     */
16 3
    public function compileViewExists()
17
    {
18 3
        return "select * from sqlite_master where type = 'view' and name = ?";
19
    }
20
}
21