MCPcopy Index your code
hub / github.com/1Panel-dev/MaxKB / select_list

Function select_list

apps/common/db/sql_execute.py:44–54  ·  view source on GitHub ↗

执行sql 查询列表数据 :param sql: 需要执行的sql :param params: sql的参数 :return: 查询结果

(sql: str, params: List)

Source from the content-addressed store, hash-verified

42
43
44def select_list(sql: str, params: List):
45 """
46 执行sql 查询列表数据
47 :param sql: 需要执行的sql
48 :param params: sql的参数
49 :return: 查询结果
50 """
51 result_list = sql_execute(sql, params)
52 if result_list is None:
53 return []
54 return result_list
55
56
57def select_one(sql: str, params: List):

Callers 8

is_validMethod · 0.90
handleMethod · 0.90
handleMethod · 0.90
handleMethod · 0.90
list_applicationMethod · 0.90
native_searchFunction · 0.90
native_page_searchFunction · 0.90
native_page_handlerFunction · 0.90

Calls 1

sql_executeFunction · 0.70

Tested by

no test coverage detected