labpack/databases/google/datastore.py
def exists(self, record_id):

        ''' a method to determine if record exists 
        
        :param record_id: string with id associated with record
        :return: boolean to indicate existence of record
        '''

        query = self.client.query(kind=self.kind)
        eval_key = self.client.key(self.kind, record_id)
        query.add_filter('__key__', '=', eval_key)
        query.keys_only()
        result = list(query.fetch())
        if result:
            return True
        return False
 a method to determine if record exists 
        
        :param record_id: string with id associated with record
        :return: boolean to indicate existence of record
        
a method to determine if record exists
a method to determine if record exists
def exists(self, record_id):
        query = self.client.query(kind=self.kind)
        eval_key = self.client.key(self.kind, record_id)
        query.add_filter('__key__', '=', eval_key)
        query.keys_only()
        result = list(query.fetch())
        if result:
            return True
        return False
def exists ( self , record_id ) : query = self . client . query ( kind = self . kind ) eval_key = self . client . key ( self . kind , record_id ) query . add_filter ( '__key__' , '=' , eval_key ) query . keys_only ( ) result = list ( query . fetch ( ) ) if result : return True return False
a method to determine if record exists
a method to determine if record exists
''' a method to determine if record exists 
        
        :param record_id: string with id associated with record
        :return: boolean to indicate existence of record
        '''
boolean to indicate existence of record
boolean to indicate existence of record
self
record_id
string with id associated with record
string with id associated with record