package
0.0.0-20241202140915-f5a8bb7a9236
Repository: https://github.com/gdgrc/grutils.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
try:
# print(sql, args_list)
rows = None
rows_length = None
if dict_query:
rows, rows_length = self.db_conn_object.dict_query(sql, args_list)
else:
rows, rows_length = self.db_conn_object.query(sql, args_list)
"""
# i do not think we should travel
for row in rows:
tmp_list = []
for data in row:
data_tmp = ''
if data is not None:
data_tmp = str(data)
tmp_list.append(data)
data_list.append(tmp_list)
"""
# msg = "Finish reading table %s,read_index: %d,total_len: %d,one for fields' name" % (tbname, demoindex, len(data_list))
# echomsg(msg, False)
return rows, rows_length
except Exception as e:
raise Exception("sql execute error: " + sql)
*/.