Documentation Home
X DevAPI User Guide
Download this Manual
PDF (US Ltr) - 1.0Mb
PDF (A4) - 1.0Mb
EPUB - 0.7Mb
HTML Download (TGZ) - 0.6Mb
HTML Download (Zip) - 0.7Mb


Beta Draft: 2017-03-17

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.