diff options
Diffstat (limited to 'libraries/classes/DatabaseInterface.php')
-rw-r--r-- | libraries/classes/DatabaseInterface.php | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/libraries/classes/DatabaseInterface.php b/libraries/classes/DatabaseInterface.php index f2bccb3eb4..1f7454513d 100644 --- a/libraries/classes/DatabaseInterface.php +++ b/libraries/classes/DatabaseInterface.php @@ -1493,36 +1493,6 @@ class DatabaseInterface implements DbalInterface } /** - * returns the definition of a specific PROCEDURE, FUNCTION, EVENT or VIEW - * - * @param string $db db name - * @param string $which PROCEDURE | FUNCTION | EVENT | VIEW - * @param string $name the procedure|function|event|view name - * @param int $link link type - * - * @return string|null the definition - */ - public function getDefinition( - string $db, - string $which, - string $name, - $link = self::CONNECT_USER - ): ?string { - $returnedField = [ - 'PROCEDURE' => 'Create Procedure', - 'FUNCTION' => 'Create Function', - 'EVENT' => 'Create Event', - 'VIEW' => 'Create View', - ]; - $query = 'SHOW CREATE ' . $which . ' ' - . Util::backquote($db) . '.' - . Util::backquote($name); - $result = $this->fetchValue($query, $returnedField[$which], $link); - - return is_string($result) ? $result : null; - } - - /** * gets the current user with host * * @return string the current user i.e. user@host |