code: def save(self, *, auto_commit=False):
          
          try:
              db.session.add(self.resource)
              if auto_commit:
                  db.session.commit()
          except SQLAlchemyError as ex:
              self.log.exception('Failed updating resource: {}'.format(ex))
              db.session.rollback()
docs: Save the resource to the database
  
          Args:
              auto_commit (bool): Automatically commit the transaction. Default: `False`
  
          Returns:
              `None`