(conn)
return [(database, num_tables) for database, num_tables in num_tables_per_database.items()]
Return metrics about each `db`.
Return metrics about each `db`.
Return metrics about each db .
def get_database_config_metrics(conn):
    # type: (rethinkdb.net.Connection) -> List[tuple]
    """
    Return metrics about each `db`.
    """
    query = TABLE_CONFIG.group('db').count()
    num_tables_per_database = query.run(conn)  # type: Dict[str, int]
    return [(database, num_tables) for database, num_tables in num_tables_per_database.items()]
def get_database_config_metrics ( conn ) : # type: (rethinkdb.net.Connection) -> List[tuple] query = TABLE_CONFIG . group ( 'db' ) . count ( ) num_tables_per_database = query . run ( conn ) # type: Dict[str, int] return [ ( database , num_tables ) for database , num_tables in num_tables_per_database . items ( ) ]