Skip to content

Linter should fail, or at least warn, when ran against an unsupported vendor #138

@vanschelven

Description

@vanschelven

When the linter is run against an unsupported database vendor, it will happily try to do its job using the generic BaseAnalyser

Given the heavy use of analysis of SQL statements, this seems an overly optimistic approach, which will lead to hard to debug problems. Better to just fail outright and tell the user about the misconfiguration.

In particular, I ran into this when doing my analysis against sqlite3, and wondering why using an AddDefaultValue from the django-add-default-value package doesn't do its magic (i.e. making the linter succeed).
The answer is: because that package does nothing in the case of sqlite3 (which is probably what you want, so that you can use the code from that package in testing environments as well as production ones). Which means that the generated sql does not contain the strings that the present package searches for.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions