14.2.1 Using Collections and Maps

This section explains with examples, the creation and usages of collections and maps.

You must first create a session before getting started with the collection and map data types.

cd /opt/oracle/graph/
./bin/opg-jshell // starting the shell will create an implicit session
import oracle.pgx.api.*;
...
PgxSession session=Pgx.createSession("<session_name>");
from pypgx import get_session
session = get_session(session_name="<session_name>")