Functions API
Profiles API
Profiles API
The Profiles API provides a secure way to manage database connection parameters through environment variable references, allowing you to create, save, load, and use database connections while keeping sensitive information protected.
Profile
A Profile
is an immutable representation of database connection settings that can be serialized to disk.
Properties
Property | Type | Description |
---|---|---|
con_name | str | Backend name (e.g., ‘postgres’, ‘snowflake’) |
kwargs_tuple | tuple | Connection parameters as key-value pairs |
kwargs_dict | dict | Connection parameters as a dictionary |
hash_name | str | Unique hash identifier for the profile |
idx | int | Unique numeric identifier |
Creation Methods
Instance Methods
Profiles
A collection manager for working with multiple saved profiles.
Methods
Environment Variable Handling
Profiles store references to environment variables, not their values:
Common Patterns
Creating and Using Profiles
Cloning and Modifying Profiles
Working with Multiple Profiles
Security Considerations
- Profiles never store actual values of environment variables, only references
- Sensitive information is resolved only when connections are created
- Profiles can be safely committed to version control
- Always use environment variables for passwords, API keys, and tokens