MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / get_plugin_config

Method get_plugin_config

src/core/database.py:1989–1997  ·  view source on GitHub ↗

Get plugin configuration

(self)

Source from the content-addressed store, hash-verified

1987
1988 # Plugin config operations
1989 async def get_plugin_config(self) -> PluginConfig:
1990 """Get plugin configuration"""
1991 async with self._connect() as db:
1992 db.row_factory = aiosqlite.Row
1993 cursor = await db.execute("SELECT * FROM plugin_config WHERE id = 1")
1994 row = await cursor.fetchone()
1995 if row:
1996 return PluginConfig(**dict(row))
1997 return PluginConfig()
1998
1999 async def update_plugin_config(self, connection_token: str, auto_enable_on_update: bool = True):
2000 """Update plugin configuration"""

Callers 3

get_plugin_configFunction · 0.80
plugin_update_tokenFunction · 0.80

Calls 2

_connectMethod · 0.95
PluginConfigClass · 0.85

Tested by

no test coverage detected