1 | <?php |
||
8 | class Pgsql implements TableDropper |
||
9 | { |
||
10 | public function dropAllTables() |
||
21 | |||
22 | /** |
||
23 | * Drop all custom types in the schema. |
||
24 | * |
||
25 | * @param \Illuminate\Support\Collection $types |
||
26 | */ |
||
27 | public function dropCustomTypes($types) |
||
31 | |||
32 | /** |
||
33 | * Get a list of all custom types in the schema. |
||
34 | * |
||
35 | * @param $schema |
||
36 | * @return \Illuminate\Support\Collection |
||
37 | */ |
||
38 | public function getCustomTypes($schema) |
||
53 | |||
54 | /** |
||
55 | * Drop all domains in the schema. |
||
56 | * |
||
57 | * @param \Illuminate\Support\Collection $domains |
||
58 | */ |
||
59 | public function dropDomains($domains) |
||
63 | |||
64 | /** |
||
65 | * Get a list of all domains in the schema. |
||
66 | * |
||
67 | * @param $schema |
||
68 | * @return \Illuminate\Support\Collection |
||
69 | */ |
||
70 | public function getDomains($schema) |
||
79 | |||
80 | /** |
||
81 | * Drop all functions in the schema. |
||
82 | * |
||
83 | * @param \Illuminate\Support\Collection $functions |
||
84 | */ |
||
85 | public function dropFunctions($functions) |
||
91 | |||
92 | /** |
||
93 | * Get a list of all functions in the schema. |
||
94 | * |
||
95 | * @param $schema |
||
96 | * @return \Illuminate\Support\Collection |
||
97 | */ |
||
98 | public function getFunctions($schema) |
||
110 | |||
111 | /** |
||
112 | * Drop all sequences in the schema. |
||
113 | * |
||
114 | * @param \Illuminate\Support\Collection $sequences |
||
115 | */ |
||
116 | public function dropSequences(Collection $sequences) |
||
124 | |||
125 | /** |
||
126 | * Get a list of all sequences in the schema. |
||
127 | * |
||
128 | * @param $schema |
||
129 | * @return \Illuminate\Support\Collection |
||
130 | */ |
||
131 | public function getSequences($schema) |
||
140 | |||
141 | /** |
||
142 | * Drop tables. |
||
143 | * |
||
144 | * @param \Illuminate\Support\Collection $tables |
||
145 | */ |
||
146 | protected function dropTables(Collection $tables) |
||
154 | |||
155 | /** |
||
156 | * Get a list of all tables in the schema. |
||
157 | * |
||
158 | * @param $schema |
||
159 | * @return \Illuminate\Support\Collection |
||
160 | */ |
||
161 | protected function getTables($schema) |
||
171 | |||
172 | /** |
||
173 | * Drop all views in the schema. |
||
174 | * |
||
175 | * @param \Illuminate\Support\Collection $views |
||
176 | */ |
||
177 | public function dropViews($views) |
||
181 | |||
182 | /** |
||
183 | * Get a list of all views in the schema. |
||
184 | * |
||
185 | * @param $schema |
||
186 | * @return \Illuminate\Support\Collection |
||
187 | */ |
||
188 | public function getViews($schema) |
||
197 | |||
198 | /** |
||
199 | * Get schema name for the connection. |
||
200 | * |
||
201 | * @return string |
||
202 | */ |
||
203 | protected function getSchema() |
||
207 | |||
208 | /** |
||
209 | * Execute the query and returns the list of values. |
||
210 | * |
||
211 | * @param string $sql |
||
212 | * @param array $bindings |
||
213 | * @param string $column |
||
214 | * @return \Illuminate\Support\Collection |
||
215 | */ |
||
216 | protected function select($sql, $bindings = [], $column = 'object_name') |
||
222 | } |
||
223 |