Class: Neo4j::SessionManager
- Inherits:
-
Object
- Object
- Neo4j::SessionManager
- Defined in:
- lib/neo4j/session_manager.rb
Class Method Summary collapse
- .adaptor_class(type, options) ⇒ Object
- .open_neo4j_session(type, url_or_path, wait_for_connection = false, options = {}) ⇒ Object
Class Method Details
.adaptor_class(type, options) ⇒ Object
18 19 20 |
# File 'lib/neo4j/session_manager.rb', line 18 def adaptor_class(type, ) [:adaptor_class] || adaptor_class_by_type(type.to_sym) end |
.open_neo4j_session(type, url_or_path, wait_for_connection = false, options = {}) ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/neo4j/session_manager.rb', line 7 def open_neo4j_session(type, url_or_path, wait_for_connection = false, = {}) enable_unlimited_strength_crypto! if java_platform? && (type) verbose_query_logs = Neo4j::Config.fetch(:verbose_query_logs, false) adaptor = cypher_session_adaptor(type, url_or_path, .merge(wrap_level: :proc, verbose_query_logs: verbose_query_logs)) session = Neo4j::Core::CypherSession.new(adaptor) wait_and_retry(session) if wait_for_connection session end |