Documentation Home
X DevAPI User Guide
Download this Manual

X DevAPI User Guide  /  Connection and Session Concepts  /  Using ClassicSession

2.8 Using ClassicSession

When using a Session and the X Protocol, a simplified X DevAPI syntax is used for SQL queries. This exposes a sub-set of SQL that can be used safely by X Protocol 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, classic MySQL protocol connection needs to be opened. In this case use the mysql.getClassicSession() function, which returns a ClassicSession object.

The mysql.getClassicSession() function takes a URI-type string 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.