1 | <?php |
||
14 | class Database extends AbstractQuery implements DatabaseInterface |
||
15 | { |
||
16 | /** |
||
17 | * @var QueryInterface |
||
18 | */ |
||
19 | private $query; |
||
20 | |||
21 | /** |
||
22 | * @param RethinkInterface $rethink |
||
23 | * @param MessageInterface $message |
||
24 | */ |
||
25 | 13 | public function __construct(RethinkInterface $rethink, MessageInterface $message) |
|
31 | |||
32 | /** |
||
33 | * @inheritdoc |
||
34 | */ |
||
35 | 12 | public function dbCreate(string $name): DatabaseInterface |
|
41 | |||
42 | /** |
||
43 | * @inheritdoc |
||
44 | */ |
||
45 | 13 | public function dbDrop(string $name): DatabaseInterface |
|
51 | |||
52 | /** |
||
53 | * @inheritdoc |
||
54 | */ |
||
55 | 13 | public function dbList(): DatabaseInterface |
|
61 | |||
62 | /** |
||
63 | * @inheritdoc |
||
64 | */ |
||
65 | 11 | public function tableList(): DatabaseInterface |
|
71 | |||
72 | /** |
||
73 | * @inheritdoc |
||
74 | */ |
||
75 | 12 | public function tableCreate(string $name): DatabaseInterface |
|
81 | |||
82 | /** |
||
83 | * @inheritdoc |
||
84 | */ |
||
85 | 11 | public function tableDrop(string $name): DatabaseInterface |
|
91 | |||
92 | /** |
||
93 | * @inheritdoc |
||
94 | */ |
||
95 | 13 | public function toArray(): array |
|
99 | } |
||
100 |