Extended Module
FluentKit
Topics
Extended Structures
DatabaseConfigurationFactoryWe’d like to just default the context parameters of the “actual” method. Unfortunately, there are a few cases involving the UNIX domain socket initalizer where usage can resolve to either the newSQLPostgresConfiguration-based method or the deprecatedPostgresConfiguration-based method, with no obvious way to disambiguate which to call. Because the context parameters are generic, if they are defaulted, the compiler resolves the ambiguity in favor of the deprecated method (which has no generic parameters). However, by adding the non-defaulted-parameter variant which takes neither context, we’ve provided a version which has no generic parameters either, which allows the compiler to resolve the ambiguity in favor of the one with better availability (i.e. the one that isn’t deprecated).DatabaseID