public function getFunctions($db = NULL): array
    {
        if (!$db) {
            $db = Configuration::getInstance()->get('db')['name'];
        }

        $res = [];
        foreach (q_assoc_iterator('SHOW FUNCTION STATUS WHERE `Db` = "' . $db . '"') as $v) {
            $res[] = $v['Name'];
        }

        return $res;
    }