-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jacob Beck
committed
Dec 14, 2018
1 parent
c61561a
commit 4780c4b
Showing
205 changed files
with
1,722 additions
and
1,241 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
[report] | ||
include = | ||
dbt/* | ||
core/dbt/* | ||
plugins/adapters/dbt/* |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__path__ = __import__('pkgutil').extend_path(__path__, __name__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__path__ = __import__('pkgutil').extend_path(__path__, __name__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import os | ||
|
||
from dbt.config.project import Project | ||
|
||
|
||
class AdapterPlugin(object): | ||
"""Defines the basic requirements for a dbt adapter plugin. | ||
:param type adapter: An adapter class, derived from BaseAdapter | ||
:param type credentials: A credentials object, derived from Credentials | ||
:param str project_name: The name of this adapter plugin's associated dbt | ||
project. | ||
:param str include_path: The path to this adapter plugin's root | ||
:param Optional[List[str]] dependencies: A list of adapter names that this\ | ||
adapter depends upon. | ||
""" | ||
def __init__(self, adapter, credentials, include_path, dependencies=None): | ||
self.adapter = adapter | ||
self.credentials = credentials | ||
self.include_path = include_path | ||
project_path = os.path.join(self.include_path, adapter.type()) | ||
project = Project.from_project_root(project_path, {}) | ||
self.project_name = project.project_name | ||
if dependencies is None: | ||
dependencies = [] | ||
self.dependencies = dependencies |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
from .renderer import ConfigRenderer | ||
from .profile import Profile, UserConfig | ||
from .project import Project | ||
from .profile import read_profile | ||
from .profile import PROFILES_DIR | ||
from .runtime import RuntimeConfig | ||
|
||
|
||
def read_profiles(profiles_dir=None): | ||
"""This is only used in main, for some error handling""" | ||
if profiles_dir is None: | ||
profiles_dir = PROFILES_DIR | ||
|
||
raw_profiles = read_profile(profiles_dir) | ||
|
||
if raw_profiles is None: | ||
profiles = {} | ||
else: | ||
profiles = {k: v for (k, v) in raw_profiles.items() if k != 'config'} | ||
|
||
return profiles |
Oops, something went wrong.