Connecting
Connecting With a Dialect URL
Establishing a connection using SQLAlchemy requires a specific URL format.from sqlalchemy import create_engine
engine = create_engine("sagex3cloud:///?URL=https://x3server/;OAuthAccessTokenUrl=https://auth-domain/oauth/token;OAuthClientId=your_client_id;OAuthClientSecret=your_client_secret;Audience=https://api-audience;XAPIKey=your_api_key;Folder=SEED;")
For SQLAlchemy 2.0, the dialect name is sagex3cloud_2. To establish a connection, use the following URL format:
from sqlalchemy import create_engine
engine = create_engine("sagex3cloud_2:///?URL=https://x3server/;OAuthAccessTokenUrl=https://auth-domain/oauth/token;OAuthClientId=your_client_id;OAuthClientSecret=your_client_secret;Audience=https://api-audience;XAPIKey=your_api_key;Folder=SEED;")