src/dirbs/listgen/generator.py
def _get_total_record_count(self, conn, tblname):
        """Helper function to get the total number of records."""
        with conn.cursor() as cursor:
            cursor.execute(sql.SQL('SELECT COUNT(*) FROM {0}').format(sql.Identifier(tblname)))
            return cursor.fetchone()[0]
Helper function to get the total number of records.
Helper function to get the total number of records.
Helper function to get the total number of records .
def _get_total_record_count(self, conn, tblname):
        with conn.cursor() as cursor:
            cursor.execute(sql.SQL('SELECT COUNT(*) FROM {0}').format(sql.Identifier(tblname)))
            return cursor.fetchone()[0]
def _get_total_record_count ( self , conn , tblname ) : with conn . cursor ( ) as cursor : cursor . execute ( sql . SQL ( 'SELECT COUNT(*) FROM {0}' ) . format ( sql . Identifier ( tblname ) ) ) return cursor . fetchone ( ) [ 0 ]
Helper function to get the total number of records.
Helper function to get the total number of records .
"""Helper function to get the total number of records."""
self
conn
tblname