def get_library_by_root(library_db, path):
    """returns a list of loaded libraries"""
    from src.praxxis.sqlite import connection
    conn = connection.create_connection(library_db)
    cur = conn.cursor()
    get_library = 'SELECT * FROM "LibraryMetadata" WHERE Path = ?'
    cur.execute(get_library, (path,))
    conn.commit()
    rows = cur.fetchall()
    conn.close()
    return rows
