Skip to content

Use a common connection info struct #33

@afiffon

Description

@afiffon

Currently, a terrible dereference is being performed when needing to access connection info (such as dialect) -- This should be move to a simple use of a common Arc everywhere.

For example, in file.rs:

let info = self
            .handle
            .handler
            .upstream
            .handler
            .upstream()
            .handler
            .upstream()
            .negotiate_info()
            .unwrap();
        if info.config.compression_enabled && info.dialect.supports_compression() {
            flags.set_read_compressed(true);
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions