Documentation Home
X DevAPI User Guide
Download this Manual

Pre-General Availability Draft: 2018-01-18

2.5 NodeSession

When using an XSession, a simplified X DevAPI syntax is used for SQL queries. This exposes a sub-set of SQL that can be used in transparent high availability, replication, and sharding environments.

In some cases access to the full SQL language is needed, for example to directly connect to a specific MySQL Server to do operations specifically on this server. In those cases a direct, low-level connection needs to be opened. This is performed by using the mysqlx.getNodeSession() function, which returns a NodeSession object.

The mysqlx.getNodeSession() function can take a URL that specifies the connection information for a specific server or it can take a configuration provided by a Session.

User Comments
Sign Up Login You must be logged in to post a comment.