def open(cls, *targets, auth=None, routing_context=None, **config): from neo4j.io import Neo4jPool addresses = cls.parse_targets(*targets) pool_config, session_config = Config.consume_chain( config, PoolConfig, SessionConfig) pool = Neo4jPool.open(*addresses, auth=auth, routing_context=routing_context, **pool_config) return cls(pool, session_config)
def open(cls, *targets, auth=None, routing_context=None, **config): from neo4j.io import Neo4jPool from neo4j.work import WorkspaceConfig addresses = cls.parse_targets(*targets) pool_config, default_workspace_config = Config.consume_chain( config, PoolConfig, WorkspaceConfig) pool = Neo4jPool.open(*addresses, auth=auth, routing_context=routing_context, **pool_config) return cls(pool, default_workspace_config)