1 | <?php |
||
24 | class Util extends \Query\AbstractUtil { |
||
25 | |||
26 | /** |
||
27 | * Convenience public function to generate sql for creating a db table |
||
28 | * |
||
29 | * @deprecated Use the table builder class instead |
||
30 | * @param string $name |
||
31 | * @param array $fields |
||
32 | * @param array $constraints |
||
33 | * @param bool $if_not_exists |
||
34 | * @return string |
||
35 | */ |
||
36 | public function create_table($name, $fields, array $constraints=array(), $if_not_exists=FALSE) |
||
40 | |||
41 | /** |
||
42 | * Drop the selected table |
||
43 | * |
||
44 | * @param string $name |
||
45 | * @return string |
||
46 | */ |
||
47 | public function delete_table($name) |
||
51 | |||
52 | // -------------------------------------------------------------------------- |
||
53 | |||
54 | /** |
||
55 | * Create an SQL backup file for the current database's structure |
||
56 | * |
||
57 | * @param string $db_path |
||
58 | * @param string $new_file |
||
59 | * @return string |
||
60 | */ |
||
61 | public function backup_structure() |
||
66 | |||
67 | // -------------------------------------------------------------------------- |
||
68 | |||
69 | /** |
||
70 | * Create an SQL backup file for the current database's data |
||
71 | * |
||
72 | * @param array $exclude |
||
73 | * @param bool $system_tables |
||
74 | * @return string |
||
75 | */ |
||
76 | public function backup_data($exclude=array(), $system_tables=FALSE) |
||
135 | } |
||
136 | // End of firebird_util.php |