Skip to content

add Deref to Client for Transaction #691

Closed
@vemoo

Description

@vemoo

I think that this can be added:

impl<'a> std::ops::Deref for Transaction<'a> {
    type Target = Client;

    fn deref(&self) -> &Self::Target {
        self.client
    }
}

which would make working with transactions easier and make GenericClient unnecessary.

That's how rustqlite does it.

Should I create a PR? or is there something that I'm missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions