MCPcopy Create free account
hub / github.com/HexHive/NASS / get_args

Function get_args

data/interface_db.py:125–140  ·  view source on GitHub ↗
(connection, interface_id)

Source from the content-addressed store, hash-verified

123 print(f'[BINDERDB] Failed retrieving interface {str(e)}, {traceback.format_exc()}')
124
125def get_args(connection, interface_id):
126 try:
127 cursor = connection.cursor()
128 select_data_query = "SELECT * from args WHERE interface_id = ? ORDER BY ordering"
129 cursor.execute(select_data_query, (interface_id, ))
130 rows = cursor.fetchall()
131 args = []
132 for r in rows:
133 a_id = r[0]
134 ordering = r[1]
135 argtype = r[2]
136 args.append(Arg(argtype, db_id=a_id))
137 return args
138 except Exception as e:
139 logging.error(f'[BINDERDB] Failed retrieving interface {str(e)}, {traceback.format_exc()}')
140 print(f'[BINDERDB] Failed retrieving interface {str(e)}, {traceback.format_exc()}')
141
142def insert_interface(connection, service_id, interface:Cmd):
143 try:

Callers 2

get_interfaceFunction · 0.85
get_interfacesFunction · 0.85

Calls 1

ArgClass · 0.90

Tested by

no test coverage detected