/**
  * saves database scheme to xml file
  * @param string $file name of file
  * @param int|string $mode
  * @return bool
  *
  * TODO: write more documentation
  */
 public function getDbStructure($file, $mode = MDB2_SCHEMA_DUMP_STRUCTURE)
 {
     return \OC_DB_MDB2SchemaWriter::saveSchemaToFile($file, $this->conn);
 }
Esempio n. 2
0
 /**
  * saves database scheme to xml file
  * @param string $file name of file
  * @param int|string $mode
  * @return bool
  *
  * TODO: write more documentation
  */
 public function getDbStructure($file, $mode = MDB2_SCHEMA_DUMP_STRUCTURE)
 {
     $sm = $this->conn->getSchemaManager();
     return \OC_DB_MDB2SchemaWriter::saveSchemaToFile($file, $sm);
 }
 /**
  * saves database scheme to xml file
  * @param string $file name of file
  * @param int|string $mode
  * @return bool
  *
  * TODO: write more documentation
  */
 public function getDbStructure($file)
 {
     return \OC_DB_MDB2SchemaWriter::saveSchemaToFile($file, $this->conn);
 }