Total Complexity | 7 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Coverage | 90.91% |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
9 | trait Tables |
||
10 | { |
||
11 | /** |
||
12 | * Indicate that the table needs to be created. |
||
13 | * |
||
14 | * @param array $options |
||
15 | * @return Fluent |
||
16 | */ |
||
17 | 52 | public function create($options = []) |
|
18 | { |
||
19 | 52 | $parameters = []; |
|
20 | 52 | $parameters['options'] = array_merge( |
|
21 | 52 | [ |
|
22 | 52 | 'keyOptions' => config('arangodb.schema.keyOptions'), |
|
23 | 52 | ], |
|
24 | 52 | $options, |
|
25 | 52 | ); |
|
26 | 52 | $parameters['explanation'] = "Create '{$this->table}' table."; |
|
27 | 52 | $parameters['handler'] = 'table'; |
|
28 | |||
29 | 52 | return $this->addCommand('create', $parameters); |
|
|
|||
30 | } |
||
31 | |||
32 | 52 | public function executeCreateCommand($command) |
|
51 | } |
||
52 | } |
||
54 |