PDF(美国Ltr)- 1.1 mb
PDF (A4)- 1.1 mb
HTML下载(TGZ)- 0.9 mb
HTML下载(Zip)- 1.0 mb
方法可以指定会话的默认模式模式
属性中的类似uri的连接字符串或键值对打开连接会话时。的会话
类getDefaultSchema ()
方法返回的默认模式会话
.
如果在连接时没有选择默认模式,则会话
类setCurrentSchema ()
函数可用于设置当前模式。
Var mysqlx = require('mysqlx');//直接连接没有指定的客户端默认模式var mySession = mysqlx.getSession('user:密码@localhost”);mySession.setCurrentSchema(“测试”);
请注意,setCurrentSchema ()
不更改会话的默认模式(在整个会话中保持不变)还是保持不变零
如果在连接时未设置。所设置的模式setCurrentSchema ()
可由getCurrentSchema ()
方法。