Skip to content

Add getter functions for SqliteConnectOptions #4208

@bengineer42

Description

@bengineer42

I have found these related issues/pull requests

N/A

Description

SqliteConnectOptions has many pub(crate) fields with no corresponding public getter methods. Currently only get_filename() and get_vfs() exist, making it impossible for downstream consumers to inspect connection options after construction (e.g. when parsing from a URL string).

This is particularly problematic for in_memory — there's no way to determine if a SqliteConnectOptions represents an in-memory database without resorting to fragile filename heuristics.

Prefered solution

Make getter functions for each relevant field

Is this a breaking change? Why or why not?

No just add read only functions

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions