File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,6 @@ public function __construct(Connection $connection)
21
21
$ this ->connection = $ connection ;
22
22
}
23
23
24
- abstract protected function tableNameColumn (): string ;
25
-
26
24
/**
27
25
* @return \Illuminate\Database\Schema\Builder|\Illuminate\Database\Schema\MySqlBuilder|\Illuminate\Database\Schema\PostgresBuilder
28
26
*/
@@ -62,6 +60,8 @@ public function getPrimaryKey(string $table): string
62
60
return Arr::first ($ columns );
63
61
}
64
62
63
+ abstract protected function tableNameColumn (): string ;
64
+
65
65
protected function columns (string $ table ): array
66
66
{
67
67
return $ this ->schema ()->getColumnListing ($ table );
Original file line number Diff line number Diff line change @@ -24,10 +24,6 @@ abstract class BaseConnection
24
24
25
25
protected $ grammar ;
26
26
27
- abstract protected function grammar (): Grammar ;
28
-
29
- abstract protected function connector (): ConnectorInterface ;
30
-
31
27
public function of (string $ database , string $ driver ): self
32
28
{
33
29
$ this ->database = $ database ;
@@ -54,6 +50,10 @@ public function createDatabase(string $name = null): self
54
50
return $ this ;
55
51
}
56
52
53
+ abstract protected function grammar (): Grammar ;
54
+
55
+ abstract protected function connector (): ConnectorInterface ;
56
+
57
57
protected function query (string $ query ): void
58
58
{
59
59
$ this ->connection ()->query ($ query );
You can’t perform that action at this time.
0 commit comments