grr/server/grr_response_server/databases/mysql_clients.py
def ReadAllClientIDs(self, min_last_ping=None, cursor=None):
    """Reads client ids for all clients in the database."""
    query = "SELECT client_id FROM clients "
    query_values = []
    if min_last_ping is not None:
      query += "WHERE last_ping >= %s"
      query_values.append(mysql_utils.RDFDatetimeToMysqlString(min_last_ping))
    cursor.execute(query, query_values)
    return [mysql_utils.IntToClientID(res[0]) for res in cursor.fetchall()]
Reads client ids for all clients in the database.
Reads client ids for all clients in the database.
Reads client ids for all clients in the database .
def ReadAllClientIDs(self, min_last_ping=None, cursor=None):
    query = "SELECT client_id FROM clients "
    query_values = []
    if min_last_ping is not None:
      query += "WHERE last_ping >= %s"
      query_values.append(mysql_utils.RDFDatetimeToMysqlString(min_last_ping))
    cursor.execute(query, query_values)
    return [mysql_utils.IntToClientID(res[0]) for res in cursor.fetchall()]
def ReadAllClientIDs ( self , min_last_ping = None , cursor = None ) : query = "SELECT client_id FROM clients " query_values = [ ] if min_last_ping is not None : query += "WHERE last_ping >= %s" query_values . append ( mysql_utils . RDFDatetimeToMysqlString ( min_last_ping ) ) cursor . execute ( query , query_values ) return [ mysql_utils . IntToClientID ( res [ 0 ] ) for res in cursor . fetchall ( ) ]
Reads client ids for all clients in the database.
Reads client ids for all clients in the database .
"""Reads client ids for all clients in the database."""
self
min_last_ping
cursor