Skip to content

TypeError: can't set attributes of built-in/extension type 'asyncpg.Record' #452

@crazyhouse33

Description

@crazyhouse33

Hi, I am trying to monkey patch the Record class (the getter) to get an history of every column that got accessed in the record (to only query what the user really need for the next n queries). However I cant do that, I got the error of the title.

I am pretty sure this is related to #451 and the strange nature of Record object.

I would like to know why Records are made like that and if you will change that. Right now I think I will re implement my driver class with another library if you dont have any workaround

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions