Skip to content

Incomplete PRAGMA support #559

Open
Open
@rickhull

Description

@rickhull

I have noticed some inconsistencies in the handling for SQLite pragmas.

  1. There is a setter for busy_timeout= but no getter. Likewise for ignore_check_constraints=.
  2. No accessors for analysis_limit hard_heap_limit trusted_schema
  3. No method for optimize
  4. No methods for function_list module_list pragma_list
  5. No methods for table_list table_xinfo

For the last, SQLite supports 3 pragmas for index and table:

  • thing_list
  • thing_info
  • thing_xinfo

The gem I have installed, version 2.0.4, has methods for all three index pragmas but only the table_info method.

Some of these may not make sense to support, but these are my findings. Separately, I have some ideas about how to reorganize lib/sqlite3/pragmas.rb.

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