Skip to content

Commit ab78e59

Browse files
authored
Merge pull request #2 from metricinsights/add-missing-file
add missing files
2 parents e1fd2bc + a52fbed commit ab78e59

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
.env
33
*__pycache__*
44
config.py
5+
!snowflake_mcp/config.py
56
.aico

snowflake_mcp/config.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from dataclasses import dataclass, field
2+
3+
4+
@dataclass
5+
class Config:
6+
account: str = field(default='')
7+
token: str = field(default='')
8+
database: str = field(default='')
9+
schema: str = field(default='')
10+
agent: str = field(default='')
11+
defaults: "Config" = field(default=None)
12+
13+
def __post_init__(self):
14+
if self.defaults:
15+
for key, value in self.defaults.__dict__.items():
16+
if not getattr(self, key):
17+
setattr(self, key, value)

0 commit comments

Comments
 (0)