Skip to content

Commit

Permalink
Due to performance and other issues, revert the osmosis implementatio…
Browse files Browse the repository at this point in the history
…n of the templater for now (sqlfluff#4273)

* Revert osmosis dbt templater for now

* Revert the osmosis implementation of the templater for now

* Fix broken test

* Fix coverage gaps

* More coverage fixes

* PR review

* PR review

Co-authored-by: Barry Hart <[email protected]>
Co-authored-by: Alan Cruickshank <[email protected]>
  • Loading branch information
3 people authored Jan 16, 2023
1 parent 92c2391 commit fcddf0f
Show file tree
Hide file tree
Showing 11 changed files with 512 additions and 1,919 deletions.
14 changes: 2 additions & 12 deletions plugins/sqlfluff-templater-dbt/sqlfluff_templater_dbt/__init__.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,10 @@
"""Defines the hook endpoints for the dbt templater plugin."""

from sqlfluff.core.plugin import hookimpl

from sqlfluff_templater_dbt.osmosis import DbtProjectContainer
from sqlfluff_templater_dbt.templater import DbtTemplater


dbt_project_container = DbtProjectContainer()
from sqlfluff.core.plugin import hookimpl


@hookimpl
def get_templaters():
"""Get templaters."""

def create_templater(**kwargs):
return DbtTemplater(dbt_project_container=dbt_project_container, **kwargs)

create_templater.name = DbtTemplater.name
return [create_templater]
return [DbtTemplater]
201 changes: 0 additions & 201 deletions plugins/sqlfluff-templater-dbt/sqlfluff_templater_dbt/osmosis/LICENSE

This file was deleted.

This file was deleted.

Loading

0 comments on commit fcddf0f

Please sign in to comment.