mcp-dbutils 0.19.0__py3-none-any.whl → 0.20.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mcp_dbutils/mysql/handler.py +2 -0
- mcp_dbutils/postgres/handler.py +2 -0
- {mcp_dbutils-0.19.0.dist-info → mcp_dbutils-0.20.1.dist-info}/METADATA +1 -1
- {mcp_dbutils-0.19.0.dist-info → mcp_dbutils-0.20.1.dist-info}/RECORD +7 -7
- {mcp_dbutils-0.19.0.dist-info → mcp_dbutils-0.20.1.dist-info}/WHEEL +0 -0
- {mcp_dbutils-0.19.0.dist-info → mcp_dbutils-0.20.1.dist-info}/entry_points.txt +0 -0
- {mcp_dbutils-0.19.0.dist-info → mcp_dbutils-0.20.1.dist-info}/licenses/LICENSE +0 -0
mcp_dbutils/mysql/handler.py
CHANGED
@@ -62,6 +62,7 @@ class MySQLHandler(ConnectionHandler):
|
|
62
62
|
|
63
63
|
async def get_tables(self) -> list[types.Resource]:
|
64
64
|
"""Get all table resources"""
|
65
|
+
conn = None
|
65
66
|
try:
|
66
67
|
conn_params = self.config.get_connection_params()
|
67
68
|
conn = mysql.connector.connect(**conn_params)
|
@@ -92,6 +93,7 @@ class MySQLHandler(ConnectionHandler):
|
|
92
93
|
|
93
94
|
async def get_schema(self, table_name: str) -> str:
|
94
95
|
"""Get table schema information"""
|
96
|
+
conn = None
|
95
97
|
try:
|
96
98
|
conn_params = self.config.get_connection_params()
|
97
99
|
conn = mysql.connector.connect(**conn_params)
|
mcp_dbutils/postgres/handler.py
CHANGED
@@ -33,6 +33,7 @@ class PostgreSQLHandler(ConnectionHandler):
|
|
33
33
|
|
34
34
|
async def get_tables(self) -> list[types.Resource]:
|
35
35
|
"""Get all table resources"""
|
36
|
+
conn = None
|
36
37
|
try:
|
37
38
|
conn_params = self.config.get_connection_params()
|
38
39
|
conn = psycopg2.connect(**conn_params)
|
@@ -66,6 +67,7 @@ class PostgreSQLHandler(ConnectionHandler):
|
|
66
67
|
|
67
68
|
async def get_schema(self, table_name: str) -> str:
|
68
69
|
"""Get table schema information"""
|
70
|
+
conn = None
|
69
71
|
try:
|
70
72
|
conn_params = self.config.get_connection_params()
|
71
73
|
conn = psycopg2.connect(**conn_params)
|
@@ -5,18 +5,18 @@ mcp_dbutils/log.py,sha256=mqxi6I_IL-MF1F_pxBtnYZQKOHbGBJ74gsvZHVelr1w,823
|
|
5
5
|
mcp_dbutils/stats.py,sha256=wMqWPfGnEOg9v5YBtTsARV-1YsFUMM_pKdzitzSU9x4,7137
|
6
6
|
mcp_dbutils/mysql/__init__.py,sha256=gNhoHaxK1qhvMAH5AVl1vfV1rUpcbV9KZWUQb41aaQk,129
|
7
7
|
mcp_dbutils/mysql/config.py,sha256=BTPPFqlhoTp7EBFIeLJZh8x6bCn3q9NivHYz9yZHziw,9820
|
8
|
-
mcp_dbutils/mysql/handler.py,sha256=
|
8
|
+
mcp_dbutils/mysql/handler.py,sha256=Nu2YySImnYKOSLYe04ipHYWW1kNndFKiP-gdX5L5wpU,22325
|
9
9
|
mcp_dbutils/mysql/server.py,sha256=1bWAu7qHYXVeTZu4wdEpS6gSVB0RoXKI3Smy_ix-y8A,8586
|
10
10
|
mcp_dbutils/postgres/__init__.py,sha256=-2zYuEJEQ2AMvmGhH5Z_umerSvt7S4xOa_XV4wgvGfI,154
|
11
11
|
mcp_dbutils/postgres/config.py,sha256=NyQOVhkXJ1S-JD0w-ePNjTKI1Ja-aZQkDUdHi6U7Vl4,7752
|
12
|
-
mcp_dbutils/postgres/handler.py,sha256=
|
12
|
+
mcp_dbutils/postgres/handler.py,sha256=rHSvgz93UXIfnVzHFOTGhgnMMZy-s2tB6nR40p2G26Q,24710
|
13
13
|
mcp_dbutils/postgres/server.py,sha256=_CiJC9PitpI1NB99Q1Bcs5TYADNgDpYMwv88fRHQunE,8640
|
14
14
|
mcp_dbutils/sqlite/__init__.py,sha256=fK_3-WylCBYpBAzwuopi8hlwoIGJm2TPAlwcPWG46I0,134
|
15
15
|
mcp_dbutils/sqlite/config.py,sha256=j67TJ8mQJ2D886MthSa-zYMtvUUYyyxYLMlNxkYoqZE,4509
|
16
16
|
mcp_dbutils/sqlite/handler.py,sha256=nCgBeBp3zjpE2HNohMbh3Jpz5tNeMczt5K87JOhVWzY,19320
|
17
17
|
mcp_dbutils/sqlite/server.py,sha256=jqpE8d9vJETMs5xYGB7P0tvNDPes6Yn5ZM_iCCF7Tv4,7181
|
18
|
-
mcp_dbutils-0.
|
19
|
-
mcp_dbutils-0.
|
20
|
-
mcp_dbutils-0.
|
21
|
-
mcp_dbutils-0.
|
22
|
-
mcp_dbutils-0.
|
18
|
+
mcp_dbutils-0.20.1.dist-info/METADATA,sha256=RrRciTtVtuHx4rkhZEsklP6dHM9PcNsz6Wk8pOs-B9s,7146
|
19
|
+
mcp_dbutils-0.20.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
20
|
+
mcp_dbutils-0.20.1.dist-info/entry_points.txt,sha256=XTjt0QmYRgKOJQT6skR9bp1EMUfIrgpHeZJPZ3CJffs,49
|
21
|
+
mcp_dbutils-0.20.1.dist-info/licenses/LICENSE,sha256=1A_CwpWVlbjrKdVEYO77vYfnXlW7oxcilZ8FpA_BzCI,1065
|
22
|
+
mcp_dbutils-0.20.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|