MCPcopy Index your code
hub / github.com/dataease/SQLBot / DatasourceConf

Class DatasourceConf

backend/apps/datasource/models/datasource.py:110–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108
109# datasource config info
110class DatasourceConf(BaseModel):
111 host: str = ''
112 port: int = 0
113 username: str = ''
114 password: str = ''
115 database: str = ''
116 driver: str = ''
117 extraJdbc: str = ''
118 dbSchema: str = ''
119 filename: str = ''
120 sheets: List = ''
121 mode: str = ''
122 timeout: int = 30
123 lowVersion: bool = False
124 ssl: bool = False
125
126 def to_dict(self):
127 return {
128 "host": self.host,
129 "port": self.port,
130 "username": self.username,
131 "password": self.password,
132 "database": self.database,
133 "driver": self.driver,
134 "extraJdbc": self.extraJdbc,
135 "dbSchema": self.dbSchema,
136 "filename": self.filename,
137 "sheets": self.sheets,
138 "mode": self.mode,
139 "timeout": self.timeout,
140 "lowVersion": self.lowVersion,
141 "ssl": self.ssl
142 }
143
144
145class TableSchema:

Callers 12

get_uriFunction · 0.90
get_engineFunction · 0.90
check_connectionFunction · 0.90
get_versionFunction · 0.90
get_schemaFunction · 0.90
get_tablesFunction · 0.90
get_fieldsFunction · 0.90
exec_sqlFunction · 0.90
get_engine_configFunction · 0.90
delete_dsFunction · 0.85
previewFunction · 0.85
get_table_obj_by_dsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected