def db_exec_and_commit(self, sql: str, *args) -> int:
        """Execute SQL and commit."""
        rowcount = self.db_exec(sql, *args)
        self.commit()
        return rowcount
def db_exec_and_commit ( self , sql : str , * args ) -> int : rowcount = self . db_exec ( sql , * args ) self . commit ( ) return rowcount
Execute SQL and commit.