def select_commit(conn, id):
    """Select commit by ID

    Parameters:
    conn (Connection): Connection to a SQLite database
    id (str): Commit ID (sha-hash)
    
    Return:
    build_details (dict): Dictionary containing commit info, including commit_id, build_date, build_logs and url
   """  
    cur = conn.cursor()
    cur.execute("SELECT * FROM history WHERE commit_id=?", (id,))

    row = cur.fetchone()
    if row is None:
        return {}
    build_details = {
        "commit_id": row[0],
        "build_date": row[1],
        "build_logs": row[2],
        "url": row[3]
    }
    return build_details