Skip to content
  • Mike Dalessio's avatar
    2a90dbcd
    PoolConfig no longer keeps a reference to the connection class. · 2a90dbcd
    Mike Dalessio authored
    Keeping a reference to the class caused subtle issues when combined with reloading in
    development. Instead, extend StringConnectionName to properly track
    `primary_class?` and cache that.
    
    Refactoring includes renaming `connection_class` to
    `connection_descriptor`, and renaming the StringConnectionName class
    to ConnectionDescriptor.
    
    Fixes #54343.
    2a90dbcd
    PoolConfig no longer keeps a reference to the connection class.
    Mike Dalessio authored
    Keeping a reference to the class caused subtle issues when combined with reloading in
    development. Instead, extend StringConnectionName to properly track
    `primary_class?` and cache that.
    
    Refactoring includes renaming `connection_class` to
    `connection_descriptor`, and renaming the StringConnectionName class
    to ConnectionDescriptor.
    
    Fixes #54343.
Loading