Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

sql: add Databaser interface for cleaner analyzer rules #592

Merged
merged 1 commit into from
Jan 18, 2019

Conversation

erizocosmico
Copy link
Contributor

This fixes the messy and very repeated code we had on the resolve_database rule, as @kuba-- pointed out in another PR.

Introduces a new interface Databaser, which is a node that contains a ref to a database and now all of the nodes that were changed in the resolve_database rule can just implement this method and handle all of them the exact same way.

@erizocosmico erizocosmico added the enhancement New feature or request label Jan 17, 2019
@erizocosmico erizocosmico requested a review from a team January 17, 2019 15:00
@erizocosmico erizocosmico self-assigned this Jan 17, 2019
@ajnavarro ajnavarro merged commit 77bee7f into src-d:master Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants