@@ 782-797 (lines=16) @@ | ||
779 | * @param string $procedureName Name of procedure to export |
|
780 | * @return null |
|
781 | */ |
|
782 | private function getProcedureStructure($procedureName) |
|
783 | { |
|
784 | if (!$this->dumpSettings['skip-comments']) { |
|
785 | $ret = "--" . PHP_EOL . |
|
786 | "-- Dumping routines for database '" . $this->dbName . "'" . PHP_EOL . |
|
787 | "--" . PHP_EOL . PHP_EOL; |
|
788 | $this->compressManager->write($ret); |
|
789 | } |
|
790 | $stmt = $this->typeAdapter->show_create_procedure($procedureName); |
|
791 | foreach ($this->dbHandler->query($stmt) as $r) { |
|
792 | $this->compressManager->write( |
|
793 | $this->typeAdapter->create_procedure($r) |
|
794 | ); |
|
795 | return; |
|
796 | } |
|
797 | } |
|
798 | ||
799 | /** |
|
800 | * Event structure extractor |
|
@@ 805-820 (lines=16) @@ | ||
802 | * @param string $eventName Name of event to export |
|
803 | * @return null |
|
804 | */ |
|
805 | private function getEventStructure($eventName) |
|
806 | { |
|
807 | if (!$this->dumpSettings['skip-comments']) { |
|
808 | $ret = "--" . PHP_EOL . |
|
809 | "-- Dumping events for database '" . $this->dbName . "'" . PHP_EOL . |
|
810 | "--" . PHP_EOL . PHP_EOL; |
|
811 | $this->compressManager->write($ret); |
|
812 | } |
|
813 | $stmt = $this->typeAdapter->show_create_event($eventName); |
|
814 | foreach ($this->dbHandler->query($stmt) as $r) { |
|
815 | $this->compressManager->write( |
|
816 | $this->typeAdapter->create_event($r) |
|
817 | ); |
|
818 | return; |
|
819 | } |
|
820 | } |
|
821 | ||
822 | /** |
|
823 | * Escape values with quotes when needed |