3 * Helper class to handle automatically marking connections as reusable (via RAII pattern)
4 * as well handling deferring the actual network connection until the handle is used
6 * @note: proxy methods are defined explicity to avoid interface errors
10 class MaintainableDBConnRef
extends DBConnRef
implements IMaintainableDatabase
{
11 public function tableName( $name, $format = 'quoted' ) {
12 return $this->__call( __FUNCTION__
, func_get_args() );
15 public function tableNames() {
16 return $this->__call( __FUNCTION__
, func_get_args() );
19 public function tableNamesN() {
20 return $this->__call( __FUNCTION__
, func_get_args() );
23 public function sourceFile(
25 callable
$lineCallback = null,
26 callable
$resultCallback = null,
28 callable
$inputCallback = null
30 return $this->__call( __FUNCTION__
, func_get_args() );
33 public function sourceStream(
35 callable
$lineCallback = null,
36 callable
$resultCallback = null,
38 callable
$inputCallback = null
40 return $this->__call( __FUNCTION__
, func_get_args() );
43 public function dropTable( $tableName, $fName = __METHOD__
) {
44 return $this->__call( __FUNCTION__
, func_get_args() );
47 public function deadlockLoop() {
48 return $this->__call( __FUNCTION__
, func_get_args() );
51 public function listViews( $prefix = null, $fname = __METHOD__
) {
52 return $this->__call( __FUNCTION__
, func_get_args() );
55 public function textFieldSize( $table, $field ) {
56 return $this->__call( __FUNCTION__
, func_get_args() );
59 public function streamStatementEnd( &$sql, &$newLine ) {
60 return $this->__call( __FUNCTION__
, func_get_args() );
63 public function duplicateTableStructure(
64 $oldName, $newName, $temporary = false, $fname = __METHOD__
66 return $this->__call( __FUNCTION__
, func_get_args() );