bricks/examples/channels.dspy

11 lines
296 B
Plaintext
Raw Permalink Normal View History

2024-02-26 18:22:18 +08:00
sql = """select id, tv_name as title, url, logo_url from iptvchannels"""
ns = {k:v for k,v in params_kw.items() }
ns['sort'] = 'title'
print(f'{ns=}')
db = DBPools()
async with db.sqlorContext('iptvdb') as sor:
d = await sor.sqlPaging(sql, ns)
print(f'get {len(d["rows"])} records')
return d