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

Implement sqlite3_db_status interface #462

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

fractaledmind
Copy link
Contributor

This PR is work-in-progress while I figure out test cases for each of the counters. But I thought I would get the benefits of the amazingly thorough CI as I build, so I'm opening this draft PR early with my first method: cache_misses.

This PR will add 13 instance methods to the Statement class:

  • lookaside_used
  • cache_used
  • schema_used
  • stmt_used
  • lookaside_hits
  • lookaside_miss_size
  • lookaside_miss_full
  • cache_hits
  • cache_misses
  • cache_writes
  • deferred_fks
  • cache_used_shared
  • cache_spills

Each method corresponds to one of the counters available to the db_status interface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant