售前咨询
技术支持
渠道合作

MySQL管理工具MySQL Utilities — 搜索数据库对象

 

常量

下面的这些对象类型常量表示可以被搜索的。

  • mysql.utilities.command.grep.ROUTINE
  • mysql.utilities.command.grep.EVENT
  • mysql.utilities.command.grep.TRIGGER
  • mysql.utilities.command.grep.TABLE
  • mysql.utilities.command.grep.DATABASE
  • mysql.utilities.command.grep.VIEW
  • mysql.utilities.command.grep.USER

下面这个常量是所有可用对象类型的序列。用于搜素生成独立于版本的对象类型,如选项、帮忙文本。

  • mysql.utilities.command.grep.OBJECT_TYPES

Classes

class mysql.utilities.command.grep.ObjectGrep(pattern[, database_pattern=None, types=OBJECT_TYPES, check_body=False, use_regexp=False])

搜索MySQL服务器实例对象名称(内容、存储过程、触发器、事件)与给定的模式相匹配。

sql()-string

返回SQL代码

Returns: SQL code for executing the operation specified by the options.
Return type: string

execute(connections[, output=sys.output, connector=mysql.connector])

依次执行每个连接的搜索,并以网格的形式展示聚合结果。

Parameters:
  • connections Sequence of connection specifiers to send the query to
  • output File object to use for writing the result
  • connector Connector to use for connecting to the servers

文章转载来自:ttlsa.com

上一篇:

下一篇:

相关文章