1 | <?php |
||
15 | class Describe |
||
16 | { |
||
17 | /** |
||
18 | * @var array |
||
19 | */ |
||
20 | protected $columns = []; |
||
21 | |||
22 | /** |
||
23 | * @var \Rougin\Describe\Driver\DriverInterface |
||
24 | */ |
||
25 | protected $driver; |
||
26 | |||
27 | /** |
||
28 | * @param \Rougin\Describe\Driver\DriverInterface $driver |
||
29 | */ |
||
30 | 18 | public function __construct(DriverInterface $driver) |
|
34 | |||
35 | /** |
||
36 | * Gets the primary key in the specified table. |
||
37 | * |
||
38 | * @param string $table |
||
39 | * @return string |
||
40 | */ |
||
41 | 6 | public function getPrimaryKey($table) |
|
57 | |||
58 | /** |
||
59 | * Returns the result. |
||
60 | * |
||
61 | * @param string $table |
||
62 | * @return array |
||
63 | */ |
||
64 | 6 | public function getTable($table) |
|
68 | |||
69 | /** |
||
70 | * Returns the result. |
||
71 | * |
||
72 | * @param string $table |
||
73 | * @return array |
||
74 | */ |
||
75 | 6 | public function get_table($table) |
|
79 | |||
80 | /** |
||
81 | * Gets the primary key in the specified table. |
||
82 | * |
||
83 | * @param string $table |
||
84 | * @return string |
||
85 | */ |
||
86 | 6 | public function get_primary_key($table) |
|
90 | |||
91 | /** |
||
92 | * Shows the list of tables. |
||
93 | * |
||
94 | * @return array |
||
95 | */ |
||
96 | 6 | public function showTables() |
|
100 | |||
101 | /** |
||
102 | * Shows the list of tables. |
||
103 | * |
||
104 | * @return array |
||
105 | */ |
||
106 | 6 | public function show_tables() |
|
110 | } |
||
111 |