OracleConfig class
Configuration class for Oracle database connections
Supports loading configuration from environment variables or direct parameters. Provides secure credential management without hardcoding sensitive information.
Constructors
-
OracleConfig({required String username, required String password, required String connectionString, String? libraryPath, Map<
String, dynamic> connectionParams = const {}}) -
OracleConfig.create({required String username, required String password, required String connectionString, String? libraryPath, Map<
String, dynamic> ? connectionParams}) -
Create configuration with specific values
factory
- OracleConfig.fromEnvironment()
-
Create configuration from environment variables
factory
Properties
-
connectionParams
→ Map<
String, dynamic> -
final
- connectionString → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- libraryPath → String?
-
final
- maskedPassword → String
-
Get masked password for logging
no setter
- password → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- username → String
-
final
Methods
-
copyWith(
{String? username, String? password, String? connectionString, String? libraryPath, Map< String, dynamic> ? connectionParams}) → OracleConfig - Create a copy with modified parameters
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parseConnectionString(
) → Map< String, String> - Parse connection string to extract host, port, and service name
-
toSafeMap(
) → Map< String, dynamic> - Convert to map for logging (without password)
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited