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 default filters for sqlite3 metadata tables reader #510

Closed
wants to merge 1 commit into from

Conversation

kozikowskik
Copy link
Contributor

The current response from the metacmd \dt and \dv' in sqlite3` contains system tables, which is not expected. These changes add table types allowed in the result of the above metacmds.

Fixes #504

pholders := []string{}
for _, t := range f.Types {
if !slices.Contains(tableTypes, t) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This prevents from getting system tables at all. We should check f.WithSystem here.

@nineinchnick
Copy link
Member

We talked offline and decided to open another PR.

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.

\dt unexpectedly lists SQLite system tables
2 participants