Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DBAPI warnings on corresponding events #169

Open
artembo opened this issue Aug 26, 2020 · 1 comment
Open

Add DBAPI warnings on corresponding events #169

artembo opened this issue Aug 26, 2020 · 1 comment
Labels
Database API feature A new functionality

Comments

@artembo
Copy link
Contributor

artembo commented Aug 26, 2020

DBAPI standard requires raising warnings when corresponding event is triggered.

Add missing warning messages (if feature is implemented):

  • Warning Message: "DB-API extension cursor.rownumber used"
  • Warning Message: "DB-API extension connection.<exception> used"
  • Warning Message: "DB-API extension cursor.connection used"
  • Warning Message: "DB-API extension cursor.scroll() used"
  • Warning Message: "DB-API extension cursor.messages used"
  • Warning Message: "DB-API extension cursor.next() used"
  • Warning Message: "DB-API extension cursor.lastrowid used"
  • Warning Message: "DB-API extension cursor.__iter__() used"
  • Warning Message: "DB-API extension .errorhandler used"
@artembo artembo mentioned this issue Aug 26, 2020
@Totktonada
Copy link
Member

Totktonada commented Aug 26, 2020

Currently those ones are implemented:

  • "DB-API extension connection.<exception> used"
  • "DB-API extension cursor.lastrowid used"

Let's add warnings for them so.

See https://github.com/tarantool/tarantool-python/wiki/PEP-249-Database-API#extensions-defined-in-pep-249.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Database API feature A new functionality
Projects
None yet
Development

No branches or pull requests

3 participants