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