MCPcopy
hub / github.com/ModelEngine-Group/nexent / get_single_config_info

Function get_single_config_info

backend/database/tenant_config_db.py:49–65  ·  view source on GitHub ↗
(tenant_id: str, select_key: str)

Source from the content-addressed store, hash-verified

47
48
49def get_single_config_info(tenant_id: str, select_key: str):
50 with get_db_session() as session:
51 result = session.query(TenantConfig).filter(
52 TenantConfig.tenant_id == tenant_id,
53 TenantConfig.config_key == select_key,
54 TenantConfig.delete_flag == "N"
55 ).first()
56
57 if result:
58 record_info = {
59 "config_value": result.config_value,
60 "tenant_config_id": result.tenant_config_id
61 }
62
63 return record_info
64 else:
65 return {}
66
67
68def insert_config(insert_data: Dict[str, Any]):

Callers 10

delete_single_configMethod · 0.90
update_single_configMethod · 0.90
get_tenant_infoFunction · 0.90
check_tenant_name_existsFunction · 0.90
update_tenant_infoFunction · 0.90
delete_tenantFunction · 0.90

Calls 4

get_db_sessionFunction · 0.90
firstMethod · 0.45
filterMethod · 0.45
queryMethod · 0.45