资源简介
MySQLWorkbench5.2 汉化免安装版
代码片段和文件信息
from grt import modules
def escape_sql_string(s):
return s.replace(“\\“ “\\\\“).replace(“‘“ “\\‘“).replace(“‘“ “\\‘“)
def escape_sql_identifier(s):
return s.replace(“‘“ “\\‘“)
class MySQLError(Exception):
def __init__(self msg code location):
Exception.__init__(self msg)
self.code = code
self.location = location
class QueryError(Exception):
not_connected_errors = (2006 2013 2026 2055 2048)
def __init__(self msg error):
self.msg = msg
self.error = error
def __str__(self):
return self.msg + “. Error:“ + str(self.error)
def is_connection_error(self):
code = 0
try:
code = int(self.error)
except ValueError e:
pass
return code in self.not_connected_errors
def is_error_recoverable(self):
return self.error != 2006 # Probably add more errors here
class ConnectionTunnel:
def __init__(self info):
self.tunnel = modules.DbMySQLQuery.openTunnel(info)
if self.tunnel > 0:
self.port = modules.DbMySQLQuery.getTunnelPort(self.tunnel)
else:
self.port = None
def __del__(self):
if self.tunnel > 0:
modules.DbMySQLQuery.closeTunnel(self.tunnel)
class MySQLResult:
def __init__(self result):
self.result = result
def __del__(self):
if self.result:
modules.DbMySQLQuery.closeResult(self.result)
def firstRow(self):
return self.nextRow()
def nextRow(self):
return modules.DbMySQLQuery.resultNextRow(self.result)
def stringByName(self name):
return modules.DbMySQLQuery.resultFieldStringValueByName(self.result name)
def intByName(self name):
return modules.DbMySQLQuery.resultFieldIntValueByName(self.result name)
def stringByIndex(self i):
return modules.DbMySQLQuery.resultFieldStringValue(self.result i)
def intByIndex(self i):
return modules.DbMySQLQuery.resultFieldIntValue(self.result i)
class MySQLConnection:
“““
Connection to a MySQL server use as:
info = grt.root.wb.rdbmsMgmt.storedConns[0]
conn = MySQLConnection(info)
conn.connect()
result = conn.executeQuery(“SHOW DATAbaseS“)
flag = result.firstRow()
while flag:
print result.stringByName(“Database“)
flag = result.nextRow()
“““
def __init__(self info):
self.connect_info = info
self.connection = 0
self.server_down = 0
def __del__(self):
self.disconnect()
def connect(self):
self.server_down = False
if not self.connection:
params = self.connect_info.parameterValues
old_timeout_value = None
if params.has_key(‘OPT_READ_TIMEOUT‘):
old_timeout_value = params[‘OPT_READ_TIMEOUT‘]
params[‘OPT_READ_TIMEOUT‘] = 8
self.connection = modules.DbMySQLQuery.openConnectio
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 139776 2010-11-19 14:33 MySQL Workbench 5.2.30 CE zh\Aga.Controls.dll
文件 220672 2010-11-19 14:31 MySQL Workbench 5.2.30 CE zh\ba
文件 1037180 2010-11-19 14:31 MySQL Workbench 5.2.30 CE zh\ba
文件 31232 2010-11-19 14:34 MySQL Workbench 5.2.30 CE zh\ba
文件 95232 2010-11-19 14:33 MySQL Workbench 5.2.30 CE zh\cdbc.dll
文件 20018 2010-11-18 23:04 MySQL Workbench 5.2.30 CE zh\COPYING
文件 3072 2010-11-18 23:04 MySQL Workbench 5.2.30 CE zh\data\data.db
文件 14410 2011-01-25 16:16 MySQL Workbench 5.2.30 CE zh\data\dbquery_toolbar.xm
文件 3100 2011-01-25 15:27 MySQL Workbench 5.2.30 CE zh\data\db_datatype_groups.xm
文件 2476 2011-01-25 16:03 MySQL Workbench 5.2.30 CE zh\data\default_toolbar.xm
文件 132699 2011-01-25 18:59 MySQL Workbench 5.2.30 CE zh\data\main_menu.xm
文件 764 2011-01-25 16:27 MySQL Workbench 5.2.30 CE zh\data\model_option_toolbar_la
文件 1303 2011-01-25 16:27 MySQL Workbench 5.2.30 CE zh\data\model_option_toolbar_note.xm
文件 1394 2011-01-25 16:27 MySQL Workbench 5.2.30 CE zh\data\model_option_toolbar_physical_relationship.xm
文件 2004 2011-01-25 16:27 MySQL Workbench 5.2.30 CE zh\data\model_option_toolbar_physical_routinegroup.xm
文件 4176 2011-01-25 19:06 MySQL Workbench 5.2.30 CE zh\data\model_option_toolbar_physical_table.xm
文件 1894 2010-11-18 23:04 MySQL Workbench 5.2.30 CE zh\data\model_option_toolbar_physical_view.xm
文件 789 2011-01-25 16:27 MySQL Workbench 5.2.30 CE zh\data\model_option_toolbar_selection.xm
文件 11028 2011-01-25 19:02 MySQL Workbench 5.2.30 CE zh\data\model_toolbar.xm
文件 6869 2011-01-25 15:55 MySQL Workbench 5.2.30 CE zh\data\paper_types.xm
文件 4462 2011-01-25 15:52 MySQL Workbench 5.2.30 CE zh\data\predefined_starters.xm
文件 152 2011-01-25 15:42 MySQL Workbench 5.2.30 CE zh\data\shortcuts.xm
文件 2483 2011-01-25 15:42 MySQL Workbench 5.2.30 CE zh\data\shortcuts_basic.xm
文件 3683 2011-01-25 15:41 MySQL Workbench 5.2.30 CE zh\data\shortcuts_physical.xm
文件 828 2011-01-25 15:42 MySQL Workbench 5.2.30 CE zh\data\tools_toolbar.xm
文件 3886 2011-01-25 15:42 MySQL Workbench 5.2.30 CE zh\data\tools_toolbar_basic.xm
文件 6342 2011-01-25 15:34 MySQL Workbench 5.2.30 CE zh\data\tools_toolbar_physical.xm
文件 33792 2010-11-19 14:34 MySQL Workbench 5.2.30 CE zh\db.grt.dll
文件 174592 2010-11-19 15:00 MySQL Workbench 5.2.30 CE zh\db.mysql.diff.reporting.wbp.dll
文件 234496 2010-11-19 14:52 MySQL Workbench 5.2.30 CE zh\db.mysql.editors.wbp.be.dll
............此处省略1142个文件信息
相关资源
- 2000个中英文昵称带头像sql
- mysql-workbench-community-6.3.8-winx64-noinsta
- mysql-5.5.53-winx64.msi
- mysql.tar.gz
- 中文词语数据库文件
- 尚硅谷MySQL高级_思维导图--周阳老师的
- mysql5.6安装破解配置都有
- mysql-5.5.56-winx64.msi
- MySQL WorkBench 8.0.13+汉化包
- mysql-5.6.20-winx64.msi
- 毕业设计SSHMYSQL.zip
- Spring+Jersey+JPA+Hibernate+MySQL整合
- PLSQL Developer 12.0.1.1814 64位中文绿色注
- PLSQLDeveloper11.0.0.1762中文绿色注册版(
- mysql5.6.12社区版本
- MySQL安装版64位绿色版
- dbforge studio for mysql 64位 专业破解版
- navicat for mysql 11.1 .13 x86版及x64完美破
- Navicat Premium 11.0.19 64位简体中文版文件
- PLSQL Developer 12正式版64位+中文语言包
- PLSQL Developer 13.0.0正式版64位+官方中文
- Navicat Premium 11绿色免安装注册版
- MySQL5.6.10_64位
- dbForge_Studio_for_MySQL_Professional_7.x
- mysql百万级测试数据 300W条
- PLSQLDeveloper(64位+中文绿色+免Oracle客
- mariadb-10.3.12-winx64.msi
- mysql5.0的win64版本
- MYSQL实战45讲全.zip
- MySQL5.5.48安装软件Linux版本
评论
共有 条评论