Skip to content

Turn gets/sets into attributes #371

@rogerbinns

Description

@rogerbinns

Various things like authorizer and tracers currently have get and/or set methods. Deprecate those and use attributes instead. Also various things are added to module at import time via PyModule_AddObject which may be done a better way, especially to get docstrings

Here are the relevant current methods.

  • Connection.getautocommit
  • Connection.getexectrace
  • Cursor.getexectrace
  • Connection.getrowtrace
  • Cursor.getrowtrace
  • Cursor.getconnection
  • Connection.setauthorizer

Can't be done:

  • Connection.set_last_insert_rowid (already a method)

Won't be done (very rarely used):

  • Connection.setbusyhandler
  • Connection.setcommithook
  • Connection.setprofile
  • Connection.setprogresshandler
  • Connection.setrollbackhook
  • Connection.setupdatehook
  • Connection.setwalhook

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