Setting sessions
GQL provides the SESSION SET statement to modify the session settings.
Setting a GQL schema
In Chapter 2, Key Concepts of GQL, and Chapter 4, GQL Basics, you have already explored the concept of a GQL schema and its operation. Additionally, the current working schema can be set in the session settings.
You can use SESSION SET SCHEMA to specify a GQL schema reference within the session.
For example, to set a session schema, use the following:
GQL:
SESSION SET SCHEMA /root/mySchema
Quick tip: Enhance your coding experience with the AI Code Explainer and Quick Copy features. Open this book in the next-gen Packt Reader. Click the Copy button
(1) to quickly copy code into your coding environment, or click the Explain button
(2) to get the AI assistant to explain a block of code to you.
The next-gen Packt Reader is included for free with the purchase of this book. Scan the QR code OR visit packtpub.com/unlock, then...