Пример #1
0
 def query_all(limit_num=50):
     '''
     Return some of the records. Not all.
     :param limit_num:
     :return:
     '''
     return TabLink.select().limit(limit_num)
Пример #2
0
 def query_link(num):
     return TabLink.select().limit(num).order_by(TabLink.order)
Пример #3
0
 def get_counts():
     '''
     The count in table.
     '''
     return TabLink.select().count()
Пример #4
0
 def get_counts():
     '''
     The count in table.
     '''
     # adding ``None`` to hide ``No value for argument 'database' in method call``
     return TabLink.select().count(None)