def query_all():
        '''
        Query all the records from TabPost2Tag.
        '''
        recs = TabPost2Tag.select(
            TabPost2Tag,
            TabTag.kind.alias('tag_kind'),
        ).join(
            TabTag,
            on=(TabPost2Tag.tag_id == TabTag.uid)
        )
        return recs
def query_all ( ) : recs = TabPost2Tag . select ( TabPost2Tag , TabTag . kind . alias ( 'tag_kind' ) , ) . join ( TabTag , on = ( TabPost2Tag . tag_id == TabTag . uid ) ) return recs
Query all the records from TabPost2Tag.