def get_edgestore_handle(<EOL>client: arango.client.ArangoClient,<EOL>username=None,<EOL>password=None,<EOL>edgestore_db_name: str = edgestore_db_name,<EOL>edgestore_edges_name: str = edgestore_edges_name,<EOL>edgestore_nodes_name: str = edgestore_nodes_name,<EOL>edgestore_pipeline_name: str = edgestore_pipeline_name,<EOL>edgestore_pipeline_stats_name: str = edgestore_pipeline_stats_name,<EOL>edgestore_pipeline_errors_name: str = edgestore_pipeline_errors_name,<EOL>) -> arango.database.StandardDatabase:
(username, password) = get_user_creds(username, password)<EOL>sys_db = client.db("<STR_LIT>", username=username, password=password)<EOL>try:<EOL><INDENT>if username and password:<EOL><INDENT>edgestore_db = sys_db.create_database(<EOL>name=edgestore_db_name,<EOL>users=[{"<STR_LIT:username>": username, "<STR_LIT:password>": password, "<STR_LIT>": True}],<EOL>)<EOL><DEDENT>else:<EOL><INDENT>edgestore_db = sys_db.create_database(name=edgestore_db_name)<EOL><DEDENT><DEDENT>except arango.exceptions.DatabaseCreateError:<EOL><INDENT>if username and password:<EOL><INDENT>edgestore_db = client.db(<EOL>edgestore_db_name, username=username, password=password<EOL>)<EOL><DEDENT>else:<EOL><INDENT>edgestore_db = client.db(edgestore_db_name)<EOL><DEDENT><DEDENT>try:<EOL><INDENT>nodes = edgestore_db.create_collection(<EOL>edgestore_nodes_name, index_bucket_count=<NUM_LIT:64><EOL>)<EOL>nodes.add_hash_index(fields=["<STR_LIT:name>"], unique=False)<EOL>nodes.add_hash_index(<EOL>fields=["<STR_LIT>"], unique=False<EOL>)  <EOL><DEDENT>except Exception:<EOL><INDENT>pass<EOL><DEDENT>try:<EOL><INDENT>edges = edgestore_db.create_collection(<EOL>edgestore_edges_name, edge=True, index_bucket_count=<NUM_LIT:64><EOL>)<EOL>edges.add_hash_index(fields=["<STR_LIT>"], unique=False)<EOL>edges.add_hash_index(fields=["<STR_LIT>"], unique=False)<EOL>edges.add_hash_index(fields=["<STR_LIT>"], unique=False)<EOL>edges.add_hash_index(fields=["<STR_LIT>"], unique=False)<EOL>edges.add_hash_index(fields=["<STR_LIT>"], unique=False)<EOL><DEDENT>except Exception:<EOL><INDENT>pass<EOL><DEDENT>try:<EOL><INDENT>edgestore_db.create_collection(edgestore_pipeline_name)<EOL><DEDENT>except Exception:<EOL><INDENT>pass<EOL><DEDENT>try:<EOL><INDENT>edgestore_db.create_collection(edgestore_pipeline_errors_name)<EOL><DEDENT>except Exception:<EOL><INDENT>pass<EOL><DEDENT>try:<EOL><INDENT>edgestore_db.create_collection(edgestore_pipeline_stats_name)<EOL><DEDENT>except arango.exceptions.CollectionCreateError as e:<EOL><INDENT>pass<EOL><DEDENT>return edgestore_db<EOL>
Get Edgestore arangodb database handle

    Args:
        client (arango.client.ArangoClient): Description
        username (None, optional): Description
        password (None, optional): Description
        edgestore_db_name (str, optional): Description
        edgestore_edges_name (str, optional): Description
        edgestore_nodes_name (str, optional): Description

    Returns:
        arango.database.StandardDatabase: Description