labpack/databases/sql.py
def delete(self, record_id):

        ''' 
            a method to delete a record in the table

        :param record_id: string or number with unique identifier of record
        :return: string with status message
        '''

        title = '%s.delete' % self.__class__.__name__

        # delete object
        delete_statement = self.table.delete(self.table.c.id == record_id)
        self.session.execute(delete_statement)

        # return message
        msg = 'Record %s deleted.' % record_id
        self.printer(msg)

        return msg
 
            a method to delete a record in the table

        :param record_id: string or number with unique identifier of record
        :return: string with status message
        
a method to delete a record in the table
a method to delete a record in the table
def delete(self, record_id):
        title = '%s.delete' % self.__class__.__name__
        delete_statement = self.table.delete(self.table.c.id == record_id)
        self.session.execute(delete_statement)
        msg = 'Record %s deleted.' % record_id
        self.printer(msg)
        return msg
def delete ( self , record_id ) : title = '%s.delete' % self . __class__ . __name__ delete_statement = self . table . delete ( self . table . c . id == record_id ) self . session . execute ( delete_statement ) msg = 'Record %s deleted.' % record_id self . printer ( msg ) return msg
a method to delete a record in the table
a method to delete a record in the table
''' 
            a method to delete a record in the table

        :param record_id: string or number with unique identifier of record
        :return: string with status message
        ''' # delete object # return message
string with status message
string with status message
self
record_id
string or number with unique identifier of record
string or number with unique identifier of record