Skip to content

Commit

Permalink
drop databse include name
Browse files Browse the repository at this point in the history
  • Loading branch information
dataders committed Oct 20, 2021
1 parent 60037aa commit 4e71b0a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions dbt/adapters/synapse/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from dbt.adapters.synapse.connections import SynapseConnectionManager
from dbt.adapters.synapse.connections import SynapseCredentials
from dbt.adapters.synapse.relation import SynapseRelation
from dbt.adapters.synapse.impl import SynapseAdapter

from dbt.adapters.base import AdapterPlugin
Expand Down
2 changes: 2 additions & 0 deletions dbt/adapters/synapse/impl.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
from dbt.adapters.sqlserver import SQLServerAdapter
from dbt.adapters.synapse import SynapseConnectionManager
from dbt.adapters.synapse.relation import SynapseRelation



class SynapseAdapter(SQLServerAdapter):
Relation = SynapseRelation
ConnectionManager = SynapseConnectionManager
17 changes: 17 additions & 0 deletions dbt/adapters/synapse/relation.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from typing import Optional

from dataclasses import dataclass

from dbt.adapters.base.relation import BaseRelation, Policy
from dbt.exceptions import RuntimeException

@dataclass
class SynapseIncludePolicy(Policy):
database: bool = False
schema: bool = True
identifier: bool = True


@dataclass(frozen=True, eq=False, repr=False)
class SynapseRelation(BaseRelation):
include_policy: SynapseIncludePolicy = SynapseIncludePolicy()

0 comments on commit 4e71b0a

Please sign in to comment.