neo4j-ruby-driver 1.7.5 → 4.4.0.alpha.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +26 -42
- data/lib/loader.rb +5 -3
- data/lib/neo4j/driver/auto_closable.rb +2 -2
- data/lib/neo4j/driver/exceptions/authentication_exception.rb +6 -1
- data/lib/neo4j/driver/exceptions/authorization_expired_exception.rb +14 -0
- data/lib/neo4j/driver/{types/bytes.rb → exceptions/certificate_exception.rb} +2 -2
- data/lib/neo4j/driver/exceptions/client_exception.rb +3 -0
- data/lib/neo4j/driver/exceptions/connection_read_timeout_exception.rb +14 -0
- data/lib/neo4j/driver/exceptions/database_exception.rb +3 -0
- data/lib/neo4j/driver/exceptions/discovery_exception.rb +16 -0
- data/lib/neo4j/driver/exceptions/fatal_discovery_exception.rb +13 -0
- data/lib/neo4j/driver/exceptions/protocol_exception.rb +7 -0
- data/lib/neo4j/driver/exceptions/result_consumed_exception.rb +13 -0
- data/lib/neo4j/driver/exceptions/security_exception.rb +5 -1
- data/lib/neo4j/driver/exceptions/service_unavailable_exception.rb +2 -0
- data/lib/neo4j/driver/exceptions/session_expired_exception.rb +4 -0
- data/lib/neo4j/driver/exceptions/token_expired_exception.rb +15 -0
- data/lib/neo4j/driver/exceptions/transaction_nesting_exception.rb +11 -0
- data/lib/neo4j/driver/exceptions/transient_exception.rb +3 -0
- data/lib/neo4j/driver/exceptions/untrusted_server_exception.rb +1 -0
- data/lib/neo4j/driver/exceptions/value/lossy_coercion.rb +15 -0
- data/lib/neo4j/driver/exceptions/value/not_multi_valued.rb +13 -0
- data/lib/neo4j/driver/exceptions/value/uncoercible.rb +15 -0
- data/lib/neo4j/driver/exceptions/value/unsizable.rb +12 -0
- data/lib/neo4j/driver/exceptions/value/value_exception.rb +12 -0
- data/lib/neo4j/driver/internal/bolt_server_address.rb +97 -0
- data/lib/neo4j/driver/internal/duration_normalizer.rb +1 -1
- data/lib/neo4j/driver/internal/validator.rb +5 -4
- data/{ffi/neo4j/driver/summary/statement_type.rb → lib/neo4j/driver/summary/query_type.rb} +1 -3
- data/lib/neo4j/driver/synchronizable.rb +23 -0
- data/lib/neo4j_ruby_driver.rb +5 -10
- data/{ffi → ruby}/neo4j/driver/access_mode.rb +2 -2
- data/ruby/neo4j/driver/auth_tokens.rb +34 -0
- data/ruby/neo4j/driver/bookmark.rb +21 -0
- data/ruby/neo4j/driver/config.rb +91 -0
- data/ruby/neo4j/driver/graph_database.rb +140 -0
- data/ruby/neo4j/driver/internal/async/connection/bolt_protocol_util.rb +51 -0
- data/ruby/neo4j/driver/internal/async/connection/bootstrap_factory.rb +22 -0
- data/ruby/neo4j/driver/internal/async/connection/channel_attributes.rb +31 -0
- data/ruby/neo4j/driver/internal/async/connection/channel_connected_listener.rb +32 -0
- data/ruby/neo4j/driver/internal/async/connection/channel_connector_impl.rb +77 -0
- data/ruby/neo4j/driver/internal/async/connection/channel_pipeline_builder_impl.rb +22 -0
- data/ruby/neo4j/driver/internal/async/connection/direct_connection.rb +30 -0
- data/ruby/neo4j/driver/internal/async/connection/event_loop_group_factory.rb +83 -0
- data/ruby/neo4j/driver/internal/async/connection/handshake_completed_listener.rb +27 -0
- data/ruby/neo4j/driver/internal/async/connection/handshake_handler.rb +113 -0
- data/ruby/neo4j/driver/internal/async/connection/netty_channel_initializer.rb +57 -0
- data/ruby/neo4j/driver/internal/async/connection/netty_domain_name_resolver.rb +26 -0
- data/ruby/neo4j/driver/internal/async/connection/netty_domain_name_resolver_group.rb +19 -0
- data/ruby/neo4j/driver/internal/async/connection/routing_connection.rb +36 -0
- data/ruby/neo4j/driver/internal/async/connection/stream.rb +12 -0
- data/ruby/neo4j/driver/internal/async/connection/stream_reader.rb +16 -0
- data/ruby/neo4j/driver/internal/async/connection_context.rb +10 -0
- data/ruby/neo4j/driver/internal/async/immutable_connection_context.rb +24 -0
- data/ruby/neo4j/driver/internal/async/inbound/byte_buf_input.rb +30 -0
- data/ruby/neo4j/driver/internal/async/inbound/channel_error_handler.rb +77 -0
- data/ruby/neo4j/driver/internal/async/inbound/chunk_decoder.rb +41 -0
- data/ruby/neo4j/driver/internal/async/inbound/connect_timeout_handler.rb +32 -0
- data/ruby/neo4j/driver/internal/async/inbound/connection_read_timeout_handler.rb +17 -0
- data/ruby/neo4j/driver/internal/async/inbound/inbound_message_dispatcher.rb +172 -0
- data/ruby/neo4j/driver/internal/async/inbound/inbound_message_handler.rb +42 -0
- data/ruby/neo4j/driver/internal/async/inbound/message_decoder.rb +51 -0
- data/ruby/neo4j/driver/internal/async/internal_async_session.rb +98 -0
- data/ruby/neo4j/driver/internal/async/internal_async_transaction.rb +13 -0
- data/ruby/neo4j/driver/internal/async/leak_logging_network_session.rb +34 -0
- data/ruby/neo4j/driver/internal/async/network_connection.rb +196 -0
- data/ruby/neo4j/driver/internal/async/network_session.rb +152 -0
- data/ruby/neo4j/driver/internal/async/outbound/chunk_aware_byte_buf_output.rb +110 -0
- data/ruby/neo4j/driver/internal/async/outbound/outbound_message_handler.rb +39 -0
- data/ruby/neo4j/driver/internal/async/pool/channel.rb +63 -0
- data/ruby/neo4j/driver/internal/async/pool/connection_pool_impl.rb +149 -0
- data/ruby/neo4j/driver/internal/async/pool/controller.rb +25 -0
- data/ruby/neo4j/driver/internal/async/pool/netty_channel_health_checker.rb +87 -0
- data/ruby/neo4j/driver/internal/async/pool/netty_channel_pool.rb +52 -0
- data/ruby/neo4j/driver/internal/async/pool/netty_channel_tracker.rb +137 -0
- data/ruby/neo4j/driver/internal/async/pool/network_connection_factory.rb +21 -0
- data/ruby/neo4j/driver/internal/async/pool/pool_settings.rb +34 -0
- data/ruby/neo4j/driver/internal/async/result_cursors_holder.rb +17 -0
- data/ruby/neo4j/driver/internal/async/unmanaged_transaction.rb +214 -0
- data/ruby/neo4j/driver/internal/bookmark_holder.rb +9 -0
- data/ruby/neo4j/driver/internal/cluster/cluster_composition.rb +58 -0
- data/ruby/neo4j/driver/internal/cluster/cluster_composition_lookup_result.rb +14 -0
- data/ruby/neo4j/driver/internal/cluster/cluster_routing_table.rb +139 -0
- data/ruby/neo4j/driver/internal/cluster/identity_resolver.rb +13 -0
- data/ruby/neo4j/driver/internal/cluster/loadbalancing/least_connected_load_balancing_strategy.rb +68 -0
- data/ruby/neo4j/driver/internal/cluster/loadbalancing/load_balancer.rb +159 -0
- data/ruby/neo4j/driver/internal/cluster/loadbalancing/round_robin_array_index.rb +13 -0
- data/ruby/neo4j/driver/internal/cluster/multi_databases_routing_procedure_runner.rb +34 -0
- data/ruby/neo4j/driver/internal/cluster/rediscovery_impl.rb +238 -0
- data/ruby/neo4j/driver/internal/cluster/route_message_routing_procedure_runner.rb +43 -0
- data/ruby/neo4j/driver/internal/cluster/routing_context.rb +77 -0
- data/ruby/neo4j/driver/internal/cluster/routing_procedure_cluster_composition_provider.rb +64 -0
- data/ruby/neo4j/driver/internal/cluster/routing_procedure_response.rb +19 -0
- data/ruby/neo4j/driver/internal/cluster/routing_settings.rb +24 -0
- data/ruby/neo4j/driver/internal/cluster/routing_table_handler_impl.rb +116 -0
- data/ruby/neo4j/driver/internal/cluster/routing_table_registry_impl.rb +140 -0
- data/ruby/neo4j/driver/internal/cluster/single_database_routing_procedure_runner.rb +76 -0
- data/ruby/neo4j/driver/internal/connection_settings.rb +16 -0
- data/ruby/neo4j/driver/internal/cursor/async_result_cursor_impl.rb +76 -0
- data/ruby/neo4j/driver/internal/cursor/async_result_cursor_only_factory.rb +29 -0
- data/ruby/neo4j/driver/internal/cursor/disposable_async_result_cursor.rb +59 -0
- data/ruby/neo4j/driver/internal/cursor/result_cursor_factory_impl.rb +29 -0
- data/ruby/neo4j/driver/internal/cursor/rx_result_cursor_impl.rb +110 -0
- data/ruby/neo4j/driver/internal/database_name.rb +12 -0
- data/ruby/neo4j/driver/internal/database_name_util.rb +37 -0
- data/ruby/neo4j/driver/internal/default_bookmark_holder.rb +15 -0
- data/ruby/neo4j/driver/internal/default_domain_name_resolver.rb +11 -0
- data/ruby/neo4j/driver/internal/direct_connection_provider.rb +40 -0
- data/ruby/neo4j/driver/internal/driver_factory.rb +127 -0
- data/ruby/neo4j/driver/internal/handlers/begin_tx_response_handler.rb +20 -0
- data/ruby/neo4j/driver/internal/handlers/channel_releasing_reset_response_handler.rb +29 -0
- data/ruby/neo4j/driver/internal/handlers/commit_tx_response_handler.rb +25 -0
- data/ruby/neo4j/driver/internal/handlers/hello_response_handler.rb +65 -0
- data/ruby/neo4j/driver/internal/handlers/init_response_handler.rb +34 -0
- data/ruby/neo4j/driver/internal/handlers/legacy_pull_all_response_handler.rb +228 -0
- data/ruby/neo4j/driver/internal/handlers/no_op_response_handler.rb +16 -0
- data/ruby/neo4j/driver/internal/handlers/ping_response_handler.rb +29 -0
- data/ruby/neo4j/driver/internal/handlers/pull_handlers.rb +32 -0
- data/ruby/neo4j/driver/internal/handlers/pulln/auto_pull_response_handler.rb +174 -0
- data/ruby/neo4j/driver/internal/handlers/pulln/basic_pull_response_handler.rb +288 -0
- data/ruby/neo4j/driver/internal/handlers/pulln/fetch_size_util.rb +20 -0
- data/ruby/neo4j/driver/internal/handlers/reset_response_handler.rb +34 -0
- data/ruby/neo4j/driver/internal/handlers/rollback_tx_response_handler.rb +19 -0
- data/ruby/neo4j/driver/internal/handlers/route_message_response_handler.rb +21 -0
- data/ruby/neo4j/driver/internal/handlers/routing_response_handler.rb +70 -0
- data/ruby/neo4j/driver/internal/handlers/run_response_handler.rb +37 -0
- data/ruby/neo4j/driver/internal/handlers/session_pull_response_completion_listener.rb +34 -0
- data/ruby/neo4j/driver/internal/handlers/transaction_pull_response_completion_listener.rb +20 -0
- data/ruby/neo4j/driver/internal/impersonation_util.rb +22 -0
- data/ruby/neo4j/driver/internal/internal_bookmark.rb +38 -0
- data/ruby/neo4j/driver/internal/internal_database_name.rb +11 -0
- data/ruby/neo4j/driver/internal/internal_driver.rb +78 -0
- data/ruby/neo4j/driver/internal/internal_entity.rb +22 -0
- data/ruby/neo4j/driver/internal/internal_node.rb +21 -0
- data/ruby/neo4j/driver/internal/internal_pair.rb +9 -0
- data/ruby/neo4j/driver/internal/internal_path.rb +35 -0
- data/ruby/neo4j/driver/internal/internal_point2_d.rb +9 -0
- data/ruby/neo4j/driver/internal/internal_point3_d.rb +6 -0
- data/{ffi → ruby}/neo4j/driver/internal/internal_record.rb +2 -1
- data/ruby/neo4j/driver/internal/internal_relationship.rb +26 -0
- data/ruby/neo4j/driver/internal/internal_result.rb +60 -0
- data/ruby/neo4j/driver/internal/internal_session.rb +81 -0
- data/ruby/neo4j/driver/internal/internal_transaction.rb +48 -0
- data/ruby/neo4j/driver/internal/logging/channel_activity_logger.rb +29 -0
- data/ruby/neo4j/driver/internal/logging/channel_error_logger.rb +17 -0
- data/ruby/neo4j/driver/internal/logging/prefixed_logger.rb +19 -0
- data/ruby/neo4j/driver/internal/logging/reformatted_logger.rb +17 -0
- data/ruby/neo4j/driver/internal/messaging/abstract_message_writer.rb +23 -0
- data/ruby/neo4j/driver/internal/messaging/bolt_protocol.rb +30 -0
- data/ruby/neo4j/driver/internal/messaging/bolt_protocol_version.rb +46 -0
- data/ruby/neo4j/driver/internal/messaging/common/common_message_reader.rb +51 -0
- data/ruby/neo4j/driver/internal/messaging/common/common_value.rb +31 -0
- data/ruby/neo4j/driver/internal/messaging/common/common_value_packer.rb +101 -0
- data/ruby/neo4j/driver/internal/messaging/common/common_value_unpacker.rb +234 -0
- data/ruby/neo4j/driver/internal/messaging/encode/begin_message_encoder.rb +15 -0
- data/ruby/neo4j/driver/internal/messaging/encode/commit_message_encoder.rb +14 -0
- data/ruby/neo4j/driver/internal/messaging/encode/discard_all_message_encoder.rb +14 -0
- data/ruby/neo4j/driver/internal/messaging/encode/discard_message_encoder.rb +15 -0
- data/ruby/neo4j/driver/internal/messaging/encode/goodbye_message_encoder.rb +14 -0
- data/ruby/neo4j/driver/internal/messaging/encode/hello_message_encoder.rb +15 -0
- data/ruby/neo4j/driver/internal/messaging/encode/init_message_encoder.rb +16 -0
- data/ruby/neo4j/driver/internal/messaging/encode/pull_all_message_encoder.rb +14 -0
- data/ruby/neo4j/driver/internal/messaging/encode/pull_message_encoder.rb +15 -0
- data/ruby/neo4j/driver/internal/messaging/encode/reset_message_encoder.rb +14 -0
- data/ruby/neo4j/driver/internal/messaging/encode/rollback_message_encoder.rb +14 -0
- data/ruby/neo4j/driver/internal/messaging/encode/route_message_encoder.rb +18 -0
- data/ruby/neo4j/driver/internal/messaging/encode/route_v44_message_encoder.rb +27 -0
- data/ruby/neo4j/driver/internal/messaging/encode/run_message_encoder.rb +16 -0
- data/ruby/neo4j/driver/internal/messaging/encode/run_with_metadata_message_encoder.rb +17 -0
- data/ruby/neo4j/driver/internal/messaging/request/abstract_streaming_message.rb +22 -0
- data/ruby/neo4j/driver/internal/messaging/request/begin_message.rb +26 -0
- data/ruby/neo4j/driver/internal/messaging/request/commit_message.rb +20 -0
- data/ruby/neo4j/driver/internal/messaging/request/discard_all_message.rb +20 -0
- data/ruby/neo4j/driver/internal/messaging/request/discard_message.rb +23 -0
- data/ruby/neo4j/driver/internal/messaging/request/goodbye_message.rb +20 -0
- data/ruby/neo4j/driver/internal/messaging/request/hello_message.rb +31 -0
- data/ruby/neo4j/driver/internal/messaging/request/init_message.rb +19 -0
- data/ruby/neo4j/driver/internal/messaging/request/message_with_metadata.rb +10 -0
- data/ruby/neo4j/driver/internal/messaging/request/multi_database_util.rb +26 -0
- data/ruby/neo4j/driver/internal/messaging/request/pull_all_message.rb +23 -0
- data/ruby/neo4j/driver/internal/messaging/request/pull_message.rb +22 -0
- data/ruby/neo4j/driver/internal/messaging/request/reset_message.rb +32 -0
- data/ruby/neo4j/driver/internal/messaging/request/rollback_message.rb +20 -0
- data/ruby/neo4j/driver/internal/messaging/request/route_message.rb +33 -0
- data/ruby/neo4j/driver/internal/messaging/request/run_message.rb +23 -0
- data/ruby/neo4j/driver/internal/messaging/request/run_with_metadata_message.rb +47 -0
- data/ruby/neo4j/driver/internal/messaging/request/transaction_metadata_builder.rb +24 -0
- data/ruby/neo4j/driver/internal/messaging/response/failure_message.rb +40 -0
- data/ruby/neo4j/driver/internal/messaging/response/ignored_message.rb +29 -0
- data/ruby/neo4j/driver/internal/messaging/response/record_message.rb +33 -0
- data/ruby/neo4j/driver/internal/messaging/response/success_message.rb +34 -0
- data/ruby/neo4j/driver/internal/messaging/v3/bolt_protocol_v3.rb +79 -0
- data/ruby/neo4j/driver/internal/messaging/v3/message_format_v3.rb +17 -0
- data/ruby/neo4j/driver/internal/messaging/v3/message_writer_v3.rb +27 -0
- data/ruby/neo4j/driver/internal/messaging/v4/bolt_protocol_v4.rb +29 -0
- data/ruby/neo4j/driver/internal/messaging/v4/message_format_v4.rb +17 -0
- data/ruby/neo4j/driver/internal/messaging/v4/message_writer_v4.rb +28 -0
- data/ruby/neo4j/driver/internal/messaging/v41/bolt_protocol_v41.rb +25 -0
- data/ruby/neo4j/driver/internal/messaging/v42/bolt_protocol_v42.rb +13 -0
- data/ruby/neo4j/driver/internal/messaging/v43/bolt_protocol_v43.rb +19 -0
- data/ruby/neo4j/driver/internal/messaging/v43/message_format_v43.rb +18 -0
- data/ruby/neo4j/driver/internal/messaging/v43/message_writer_v43.rb +34 -0
- data/ruby/neo4j/driver/internal/messaging/v44/bolt_protocol_v44.rb +17 -0
- data/ruby/neo4j/driver/internal/messaging/v44/message_format_v44.rb +18 -0
- data/ruby/neo4j/driver/internal/messaging/v44/message_writer_v44.rb +26 -0
- data/ruby/neo4j/driver/internal/metrics/connection_pool_metrics_listener.rb +34 -0
- data/ruby/neo4j/driver/internal/metrics/internal_abstract_metrics.rb +46 -0
- data/ruby/neo4j/driver/internal/metrics/internal_connection_pool_metrics.rb +105 -0
- data/ruby/neo4j/driver/internal/metrics/internal_metrics.rb +82 -0
- data/ruby/neo4j/driver/internal/metrics/internal_metrics_provider.rb +18 -0
- data/ruby/neo4j/driver/internal/metrics/listener_event.rb +17 -0
- data/ruby/neo4j/driver/internal/metrics/metrics_provider.rb +24 -0
- data/ruby/neo4j/driver/internal/metrics/time_recorder_listener_event.rb +15 -0
- data/ruby/neo4j/driver/internal/packstream/byte_array_incompatible_packer.rb +12 -0
- data/ruby/neo4j/driver/internal/packstream/pack_input.rb +47 -0
- data/ruby/neo4j/driver/internal/packstream/pack_output.rb +39 -0
- data/ruby/neo4j/driver/internal/packstream/pack_stream.rb +326 -0
- data/ruby/neo4j/driver/internal/packstream/pack_type.rb +17 -0
- data/ruby/neo4j/driver/internal/retry/exponential_backoff_retry_logic.rb +151 -0
- data/ruby/neo4j/driver/internal/revocation_strategy.rb +19 -0
- data/ruby/neo4j/driver/internal/scheme.rb +32 -0
- data/ruby/neo4j/driver/internal/security/internal_auth_token.rb +15 -0
- data/ruby/neo4j/driver/internal/security/security_plan_impl.rb +92 -0
- data/ruby/neo4j/driver/internal/security_setting.rb +73 -0
- data/ruby/neo4j/driver/internal/session_factory_impl.rb +32 -0
- data/ruby/neo4j/driver/internal/spi/connection.rb +19 -0
- data/ruby/neo4j/driver/internal/spi/connection_pool.rb +9 -0
- data/ruby/neo4j/driver/internal/spi/response_handler.rb +23 -0
- data/ruby/neo4j/driver/internal/summary/internal_database_info.rb +7 -0
- data/ruby/neo4j/driver/internal/summary/internal_input_position.rb +11 -0
- data/ruby/neo4j/driver/internal/summary/internal_notification.rb +16 -0
- data/ruby/neo4j/driver/internal/summary/internal_plan.rb +41 -0
- data/ruby/neo4j/driver/internal/summary/internal_profiled_plan.rb +32 -0
- data/ruby/neo4j/driver/internal/summary/internal_result_summary.rb +33 -0
- data/ruby/neo4j/driver/internal/summary/internal_server_info.rb +6 -0
- data/ruby/neo4j/driver/internal/summary/internal_summary_counters.rb +18 -0
- data/ruby/neo4j/driver/internal/svm/netty_substitutions.rb +196 -0
- data/ruby/neo4j/driver/internal/svm/z_lib_substitutions.rb +21 -0
- data/ruby/neo4j/driver/internal/util/certificate_tool.rb +65 -0
- data/ruby/neo4j/driver/internal/util/clock.rb +29 -0
- data/ruby/neo4j/driver/internal/util/error_util.rb +104 -0
- data/ruby/neo4j/driver/internal/util/extract.rb +123 -0
- data/ruby/neo4j/driver/internal/util/format.rb +39 -0
- data/ruby/neo4j/driver/internal/util/futures.rb +99 -0
- data/ruby/neo4j/driver/internal/util/iterables.rb +35 -0
- data/ruby/neo4j/driver/internal/util/lock_util.rb +23 -0
- data/ruby/neo4j/driver/internal/util/metadata_extractor.rb +109 -0
- data/ruby/neo4j/driver/internal/util/mutex.rb +9 -0
- data/ruby/neo4j/driver/internal/util/preconditions.rb +16 -0
- data/ruby/neo4j/driver/internal/util/server_version.rb +60 -0
- data/ruby/neo4j/driver/logging1.rb +51 -0
- data/ruby/neo4j/driver/net/server_address1.rb +9 -0
- data/ruby/neo4j/driver/query.rb +48 -0
- data/ruby/neo4j/driver/records.rb +13 -0
- data/ruby/neo4j/driver/session_config.rb +15 -0
- data/ruby/neo4j/driver/transaction_config.rb +46 -0
- data/ruby/neo4j/driver/values.rb +26 -0
- data/{lib → ruby}/neo4j/driver/version.rb +1 -1
- data/ruby/neo4j/driver.rb +30 -0
- metadata +267 -92
- data/ffi/bolt/address.rb +0 -11
- data/ffi/bolt/address_resolver.rb +0 -12
- data/ffi/bolt/address_set.rb +0 -9
- data/ffi/bolt/auth.rb +0 -10
- data/ffi/bolt/auto_releasable.rb +0 -22
- data/ffi/bolt/boolean.rb +0 -9
- data/ffi/bolt/bytes.rb +0 -10
- data/ffi/bolt/config.rb +0 -45
- data/ffi/bolt/connection.rb +0 -44
- data/ffi/bolt/connector.rb +0 -17
- data/ffi/bolt/dictionary.rb +0 -15
- data/ffi/bolt/error.rb +0 -74
- data/ffi/bolt/float.rb +0 -9
- data/ffi/bolt/integer.rb +0 -9
- data/ffi/bolt/library.rb +0 -12
- data/ffi/bolt/lifecycle.rb +0 -9
- data/ffi/bolt/list.rb +0 -10
- data/ffi/bolt/log.rb +0 -16
- data/ffi/bolt/socket_options.rb +0 -14
- data/ffi/bolt/status.rb +0 -25
- data/ffi/bolt/string.rb +0 -9
- data/ffi/bolt/structure.rb +0 -10
- data/ffi/bolt/value.rb +0 -35
- data/ffi/neo4j/driver/auth_tokens.rb +0 -18
- data/ffi/neo4j/driver/config.rb +0 -40
- data/ffi/neo4j/driver/graph_database.rb +0 -52
- data/ffi/neo4j/driver/internal/async/access_mode_connection.rb +0 -19
- data/ffi/neo4j/driver/internal/async/direct_connection.rb +0 -106
- data/ffi/neo4j/driver/internal/bolt_server_address.rb +0 -18
- data/ffi/neo4j/driver/internal/bookmarks_holder.rb +0 -30
- data/ffi/neo4j/driver/internal/direct_connection_provider.rb +0 -28
- data/ffi/neo4j/driver/internal/driver_factory.rb +0 -126
- data/ffi/neo4j/driver/internal/error_handling.rb +0 -112
- data/ffi/neo4j/driver/internal/explicit_transaction.rb +0 -146
- data/ffi/neo4j/driver/internal/handlers/pull_all_response_handler.rb +0 -104
- data/ffi/neo4j/driver/internal/handlers/response_handler.rb +0 -49
- data/ffi/neo4j/driver/internal/handlers/run_response_handler.rb +0 -32
- data/ffi/neo4j/driver/internal/handlers/session_pull_all_response_handler.rb +0 -32
- data/ffi/neo4j/driver/internal/handlers/transaction_pull_all_response_handler.rb +0 -23
- data/ffi/neo4j/driver/internal/internal_driver.rb +0 -45
- data/ffi/neo4j/driver/internal/internal_logger.rb +0 -32
- data/ffi/neo4j/driver/internal/internal_resolver.rb +0 -31
- data/ffi/neo4j/driver/internal/internal_statement_result.rb +0 -52
- data/ffi/neo4j/driver/internal/messaging/bolt_protocol.rb +0 -24
- data/ffi/neo4j/driver/internal/messaging/v1/bolt_protocol_v1.rb +0 -59
- data/ffi/neo4j/driver/internal/messaging/v2/bolt_protocol_v2.rb +0 -16
- data/ffi/neo4j/driver/internal/messaging/v3/bolt_protocol_v3.rb +0 -63
- data/ffi/neo4j/driver/internal/network_session.rb +0 -129
- data/ffi/neo4j/driver/internal/retry/exponential_backoff_retry_logic.rb +0 -80
- data/ffi/neo4j/driver/internal/session_factory_impl.rb +0 -28
- data/ffi/neo4j/driver/internal/summary/internal_result_summary.rb +0 -67
- data/ffi/neo4j/driver/internal/summary/internal_server_info.rb +0 -19
- data/ffi/neo4j/driver/internal/summary/internal_summary_counters.rb +0 -23
- data/ffi/neo4j/driver/internal/util/metadata_extractor.rb +0 -15
- data/ffi/neo4j/driver/internal/value/base_time_value.rb +0 -22
- data/ffi/neo4j/driver/internal/value/date_value.rb +0 -25
- data/ffi/neo4j/driver/internal/value/duration_value.rb +0 -27
- data/ffi/neo4j/driver/internal/value/local_date_time_value.rb +0 -24
- data/ffi/neo4j/driver/internal/value/local_time_value.rb +0 -19
- data/ffi/neo4j/driver/internal/value/node_value.rb +0 -18
- data/ffi/neo4j/driver/internal/value/offset_time_value.rb +0 -25
- data/ffi/neo4j/driver/internal/value/path_value.rb +0 -41
- data/ffi/neo4j/driver/internal/value/point2_d_value.rb +0 -24
- data/ffi/neo4j/driver/internal/value/point3_d_value.rb +0 -24
- data/ffi/neo4j/driver/internal/value/relationship_value.rb +0 -18
- data/ffi/neo4j/driver/internal/value/structure_value.rb +0 -42
- data/ffi/neo4j/driver/internal/value/time_with_zone_id_value.rb +0 -25
- data/ffi/neo4j/driver/internal/value/time_with_zone_offset_value.rb +0 -28
- data/ffi/neo4j/driver/internal/value/unbound_relationship_value.rb +0 -18
- data/ffi/neo4j/driver/internal/value/value_adapter.rb +0 -101
- data/ffi/neo4j/driver/net/server_address.rb +0 -13
- data/ffi/neo4j/driver/statement.rb +0 -15
- data/ffi/neo4j/driver/types/entity.rb +0 -21
- data/ffi/neo4j/driver/types/node.rb +0 -16
- data/ffi/neo4j/driver/types/path.rb +0 -35
- data/ffi/neo4j/driver/types/relationship.rb +0 -19
- data/ffi/neo4j/driver.rb +0 -61
- data/lib/neo4j/driver/internal/ruby_signature.rb +0 -18
@@ -0,0 +1,48 @@
|
|
1
|
+
module Neo4j
|
2
|
+
module Driver
|
3
|
+
# The components of a Cypher query, containing the query text and parameter map.
|
4
|
+
|
5
|
+
# @see Session
|
6
|
+
# @see Transaction
|
7
|
+
# @see Result
|
8
|
+
# @see Result#consume()
|
9
|
+
# @see ResultSummary
|
10
|
+
# @since 1.0
|
11
|
+
class Query < Struct.new(:text, :parameters)
|
12
|
+
def initialize(text, **parameters)
|
13
|
+
super(self.class.validated_query_text(text), Values.value!(parameters))
|
14
|
+
end
|
15
|
+
|
16
|
+
# @param newText the new query text
|
17
|
+
# @return a new Query object with updated text
|
18
|
+
def with_text(new_text)
|
19
|
+
new(new_text, parameters)
|
20
|
+
end
|
21
|
+
|
22
|
+
def with_parameters(new_parameters)
|
23
|
+
new(text, new_parameters)
|
24
|
+
end
|
25
|
+
|
26
|
+
# Create a new query with new parameters derived by updating this'
|
27
|
+
# query's parameters using the given updates.
|
28
|
+
|
29
|
+
# Every update key that points to a null value will be removed from
|
30
|
+
# the new query's parameters. All other entries will just replace
|
31
|
+
# any existing parameter in the new query.
|
32
|
+
|
33
|
+
# @param updates describing how to update the parameters
|
34
|
+
# @return a new query with updated parameters
|
35
|
+
def with_updated_parameters(**updates)
|
36
|
+
with_parameters(parameters.merge(updates))
|
37
|
+
end
|
38
|
+
|
39
|
+
private
|
40
|
+
|
41
|
+
def self.validated_query_text(query)
|
42
|
+
Internal::Util::Preconditions.check_argument(query, 'Cypher query text should not be nil')
|
43
|
+
Internal::Util::Preconditions.check_argument(query.present?, 'Cypher query text should not be an empty string')
|
44
|
+
query
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module Neo4j
|
2
|
+
module Driver
|
3
|
+
# Static utility methods for retaining records
|
4
|
+
|
5
|
+
# @see Result#list()
|
6
|
+
# @since 1.0
|
7
|
+
class Records
|
8
|
+
def self.column(index, map_function)
|
9
|
+
java.util.function.Function.new.apply{ |record| map_function.apply(record[index]) }
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Neo4j
|
2
|
+
module Driver
|
3
|
+
# The session configurations used to configure a session.
|
4
|
+
class SessionConfig < Hash
|
5
|
+
attr_reader :bookmarks, :default_access_mode, :database, :fetch_size, :impersonated_user
|
6
|
+
def initialize(**config)
|
7
|
+
@bookmarks = config.bookmarks
|
8
|
+
@default_access_mode = config.default_access_mode
|
9
|
+
@database = config.database
|
10
|
+
@fetch_size = config.fetch_size
|
11
|
+
@impersonated_user = config.impersonated_user
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
module Neo4j
|
2
|
+
module Driver
|
3
|
+
# Configuration object containing settings for transactions.
|
4
|
+
# Instances are immutable and can be reused for multiple transactions.
|
5
|
+
# <p>
|
6
|
+
# Configuration is supported for:
|
7
|
+
# <ul>
|
8
|
+
# <li>queries executed in auto-commit transactions - using various overloads of {@link Session#run(String, TransactionConfig)} and
|
9
|
+
# {@link AsyncSession#runAsync(String, TransactionConfig)}</li>
|
10
|
+
# <li>transactions started by transaction functions - using {@link Session#readTransaction(TransactionWork, TransactionConfig)},
|
11
|
+
# {@link Session#writeTransaction(TransactionWork, TransactionConfig)}, {@link AsyncSession#readTransactionAsync(AsyncTransactionWork, TransactionConfig)} and
|
12
|
+
# {@link AsyncSession#writeTransactionAsync(AsyncTransactionWork, TransactionConfig)}</li>
|
13
|
+
# <li>unmanaged transactions - using {@link Session#beginTransaction(TransactionConfig)} and {@link AsyncSession#beginTransactionAsync(TransactionConfig)}</li>
|
14
|
+
# </ul>
|
15
|
+
# <p>
|
16
|
+
# Creation of configuration objects can be done using the builder API:
|
17
|
+
# <pre>
|
18
|
+
# {@code
|
19
|
+
# Map<String, Object> metadata = new HashMap<>();
|
20
|
+
# metadata.put("type", "update user");
|
21
|
+
# metadata.put("application", "my application");
|
22
|
+
# TransactionConfig config = TransactionConfig.builder()
|
23
|
+
# .withTimeout(Duration.ofSeconds(4))
|
24
|
+
# .withMetadata(metadata)
|
25
|
+
# .build();
|
26
|
+
# }
|
27
|
+
# </pre>
|
28
|
+
# @see Session
|
29
|
+
class TransactionConfig < Hash
|
30
|
+
EMPTY = new
|
31
|
+
|
32
|
+
def initialize(timeout: nil, metadata: {})
|
33
|
+
Internal::Util::Preconditions.check_argument(timeout.nil? || timeout.positive?, 'Transaction timeout should be positive')
|
34
|
+
Internal::Validator.require_non_nil!(metadata)
|
35
|
+
merge(timeout: timeout, metadata: metadata)
|
36
|
+
end
|
37
|
+
|
38
|
+
# Check if this configuration object contains any values.
|
39
|
+
|
40
|
+
# @return {@code true} when no values are configured, {@code false otherwise}.
|
41
|
+
def empty?
|
42
|
+
fetch(:timeout).nil? && fetch(:metadata).blank?
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module Neo4j
|
2
|
+
module Driver
|
3
|
+
module Values
|
4
|
+
def self.value!(value)
|
5
|
+
this_method = method(:value!)
|
6
|
+
case value
|
7
|
+
when nil, TrueClass, FalseClass, Integer, Float, String, Symbol, Bookmark, ActiveSupport::Duration,
|
8
|
+
Types::Point, Types::Time, Time, Date
|
9
|
+
value
|
10
|
+
when Hash
|
11
|
+
value.transform_keys!(&this_method).transform_values!(&this_method)
|
12
|
+
when Internal::InternalPath
|
13
|
+
nonconvertible(value)
|
14
|
+
when Enumerable
|
15
|
+
value.map(&this_method)
|
16
|
+
else
|
17
|
+
nonconvertible(value)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
def self.nonconvertible(value)
|
22
|
+
raise Exceptions::ClientException, "Unable to convert #{value.class.name} to Neo4j Value."
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'active_support/core_ext/array/grouping'
|
4
|
+
require 'active_support/core_ext/hash/keys'
|
5
|
+
require 'active_support/logger'
|
6
|
+
require 'async/io'
|
7
|
+
require 'async/io/stream'
|
8
|
+
require 'async/pool'
|
9
|
+
require 'async/pool/resource'
|
10
|
+
require 'async/queue'
|
11
|
+
require 'bigdecimal'
|
12
|
+
require 'date'
|
13
|
+
require 'loader'
|
14
|
+
|
15
|
+
Loader.load
|
16
|
+
|
17
|
+
module Neo4j
|
18
|
+
module Driver
|
19
|
+
Record = Neo4j::Driver::Internal::InternalRecord
|
20
|
+
Result = Neo4j::Driver::Internal::InternalResult
|
21
|
+
Transaction = Neo4j::Driver::Internal::InternalTransaction
|
22
|
+
|
23
|
+
module Types
|
24
|
+
Entity = Neo4j::Driver::Internal::InternalEntity
|
25
|
+
Node = Neo4j::Driver::Internal::InternalNode
|
26
|
+
Path = Neo4j::Driver::Internal::InternalPath
|
27
|
+
Relationship = Neo4j::Driver::Internal::InternalRelationship
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neo4j-ruby-driver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.4.0.alpha.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Heinrich Klobuczek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: async
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: zeitwerk
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -39,7 +53,7 @@ dependencies:
|
|
39
53
|
- !ruby/object:Gem::Version
|
40
54
|
version: 2.1.10
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
56
|
+
name: async-io
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
44
58
|
requirements:
|
45
59
|
- - ">="
|
@@ -53,7 +67,7 @@ dependencies:
|
|
53
67
|
- !ruby/object:Gem::Version
|
54
68
|
version: '0'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
70
|
+
name: async-pool
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
58
72
|
requirements:
|
59
73
|
- - ">="
|
@@ -209,111 +223,272 @@ extra_rdoc_files:
|
|
209
223
|
files:
|
210
224
|
- LICENSE.txt
|
211
225
|
- README.md
|
212
|
-
- ffi/bolt/address.rb
|
213
|
-
- ffi/bolt/address_resolver.rb
|
214
|
-
- ffi/bolt/address_set.rb
|
215
|
-
- ffi/bolt/auth.rb
|
216
|
-
- ffi/bolt/auto_releasable.rb
|
217
|
-
- ffi/bolt/boolean.rb
|
218
|
-
- ffi/bolt/bytes.rb
|
219
|
-
- ffi/bolt/config.rb
|
220
|
-
- ffi/bolt/connection.rb
|
221
|
-
- ffi/bolt/connector.rb
|
222
|
-
- ffi/bolt/dictionary.rb
|
223
|
-
- ffi/bolt/error.rb
|
224
|
-
- ffi/bolt/float.rb
|
225
|
-
- ffi/bolt/integer.rb
|
226
|
-
- ffi/bolt/library.rb
|
227
|
-
- ffi/bolt/lifecycle.rb
|
228
|
-
- ffi/bolt/list.rb
|
229
|
-
- ffi/bolt/log.rb
|
230
|
-
- ffi/bolt/socket_options.rb
|
231
|
-
- ffi/bolt/status.rb
|
232
|
-
- ffi/bolt/string.rb
|
233
|
-
- ffi/bolt/structure.rb
|
234
|
-
- ffi/bolt/value.rb
|
235
|
-
- ffi/neo4j/driver.rb
|
236
|
-
- ffi/neo4j/driver/access_mode.rb
|
237
|
-
- ffi/neo4j/driver/auth_tokens.rb
|
238
|
-
- ffi/neo4j/driver/config.rb
|
239
|
-
- ffi/neo4j/driver/graph_database.rb
|
240
|
-
- ffi/neo4j/driver/internal/async/access_mode_connection.rb
|
241
|
-
- ffi/neo4j/driver/internal/async/direct_connection.rb
|
242
|
-
- ffi/neo4j/driver/internal/bolt_server_address.rb
|
243
|
-
- ffi/neo4j/driver/internal/bookmarks_holder.rb
|
244
|
-
- ffi/neo4j/driver/internal/direct_connection_provider.rb
|
245
|
-
- ffi/neo4j/driver/internal/driver_factory.rb
|
246
|
-
- ffi/neo4j/driver/internal/error_handling.rb
|
247
|
-
- ffi/neo4j/driver/internal/explicit_transaction.rb
|
248
|
-
- ffi/neo4j/driver/internal/handlers/pull_all_response_handler.rb
|
249
|
-
- ffi/neo4j/driver/internal/handlers/response_handler.rb
|
250
|
-
- ffi/neo4j/driver/internal/handlers/run_response_handler.rb
|
251
|
-
- ffi/neo4j/driver/internal/handlers/session_pull_all_response_handler.rb
|
252
|
-
- ffi/neo4j/driver/internal/handlers/transaction_pull_all_response_handler.rb
|
253
|
-
- ffi/neo4j/driver/internal/internal_driver.rb
|
254
|
-
- ffi/neo4j/driver/internal/internal_logger.rb
|
255
|
-
- ffi/neo4j/driver/internal/internal_record.rb
|
256
|
-
- ffi/neo4j/driver/internal/internal_resolver.rb
|
257
|
-
- ffi/neo4j/driver/internal/internal_statement_result.rb
|
258
|
-
- ffi/neo4j/driver/internal/messaging/bolt_protocol.rb
|
259
|
-
- ffi/neo4j/driver/internal/messaging/v1/bolt_protocol_v1.rb
|
260
|
-
- ffi/neo4j/driver/internal/messaging/v2/bolt_protocol_v2.rb
|
261
|
-
- ffi/neo4j/driver/internal/messaging/v3/bolt_protocol_v3.rb
|
262
|
-
- ffi/neo4j/driver/internal/network_session.rb
|
263
|
-
- ffi/neo4j/driver/internal/retry/exponential_backoff_retry_logic.rb
|
264
|
-
- ffi/neo4j/driver/internal/session_factory_impl.rb
|
265
|
-
- ffi/neo4j/driver/internal/summary/internal_result_summary.rb
|
266
|
-
- ffi/neo4j/driver/internal/summary/internal_server_info.rb
|
267
|
-
- ffi/neo4j/driver/internal/summary/internal_summary_counters.rb
|
268
|
-
- ffi/neo4j/driver/internal/util/metadata_extractor.rb
|
269
|
-
- ffi/neo4j/driver/internal/value/base_time_value.rb
|
270
|
-
- ffi/neo4j/driver/internal/value/date_value.rb
|
271
|
-
- ffi/neo4j/driver/internal/value/duration_value.rb
|
272
|
-
- ffi/neo4j/driver/internal/value/local_date_time_value.rb
|
273
|
-
- ffi/neo4j/driver/internal/value/local_time_value.rb
|
274
|
-
- ffi/neo4j/driver/internal/value/node_value.rb
|
275
|
-
- ffi/neo4j/driver/internal/value/offset_time_value.rb
|
276
|
-
- ffi/neo4j/driver/internal/value/path_value.rb
|
277
|
-
- ffi/neo4j/driver/internal/value/point2_d_value.rb
|
278
|
-
- ffi/neo4j/driver/internal/value/point3_d_value.rb
|
279
|
-
- ffi/neo4j/driver/internal/value/relationship_value.rb
|
280
|
-
- ffi/neo4j/driver/internal/value/structure_value.rb
|
281
|
-
- ffi/neo4j/driver/internal/value/time_with_zone_id_value.rb
|
282
|
-
- ffi/neo4j/driver/internal/value/time_with_zone_offset_value.rb
|
283
|
-
- ffi/neo4j/driver/internal/value/unbound_relationship_value.rb
|
284
|
-
- ffi/neo4j/driver/internal/value/value_adapter.rb
|
285
|
-
- ffi/neo4j/driver/net/server_address.rb
|
286
|
-
- ffi/neo4j/driver/statement.rb
|
287
|
-
- ffi/neo4j/driver/summary/statement_type.rb
|
288
|
-
- ffi/neo4j/driver/types/entity.rb
|
289
|
-
- ffi/neo4j/driver/types/node.rb
|
290
|
-
- ffi/neo4j/driver/types/path.rb
|
291
|
-
- ffi/neo4j/driver/types/relationship.rb
|
292
226
|
- lib/loader.rb
|
293
227
|
- lib/neo4j/driver/auto_closable.rb
|
294
228
|
- lib/neo4j/driver/exceptions/authentication_exception.rb
|
229
|
+
- lib/neo4j/driver/exceptions/authorization_expired_exception.rb
|
230
|
+
- lib/neo4j/driver/exceptions/certificate_exception.rb
|
295
231
|
- lib/neo4j/driver/exceptions/client_exception.rb
|
232
|
+
- lib/neo4j/driver/exceptions/connection_read_timeout_exception.rb
|
296
233
|
- lib/neo4j/driver/exceptions/database_exception.rb
|
234
|
+
- lib/neo4j/driver/exceptions/discovery_exception.rb
|
235
|
+
- lib/neo4j/driver/exceptions/fatal_discovery_exception.rb
|
297
236
|
- lib/neo4j/driver/exceptions/illegal_state_exception.rb
|
298
237
|
- lib/neo4j/driver/exceptions/neo4j_exception.rb
|
299
238
|
- lib/neo4j/driver/exceptions/no_such_record_exception.rb
|
300
239
|
- lib/neo4j/driver/exceptions/protocol_exception.rb
|
240
|
+
- lib/neo4j/driver/exceptions/result_consumed_exception.rb
|
301
241
|
- lib/neo4j/driver/exceptions/security_exception.rb
|
302
242
|
- lib/neo4j/driver/exceptions/service_unavailable_exception.rb
|
303
243
|
- lib/neo4j/driver/exceptions/session_expired_exception.rb
|
244
|
+
- lib/neo4j/driver/exceptions/token_expired_exception.rb
|
245
|
+
- lib/neo4j/driver/exceptions/transaction_nesting_exception.rb
|
304
246
|
- lib/neo4j/driver/exceptions/transient_exception.rb
|
305
247
|
- lib/neo4j/driver/exceptions/untrusted_server_exception.rb
|
248
|
+
- lib/neo4j/driver/exceptions/value/lossy_coercion.rb
|
249
|
+
- lib/neo4j/driver/exceptions/value/not_multi_valued.rb
|
250
|
+
- lib/neo4j/driver/exceptions/value/uncoercible.rb
|
251
|
+
- lib/neo4j/driver/exceptions/value/unsizable.rb
|
252
|
+
- lib/neo4j/driver/exceptions/value/value_exception.rb
|
253
|
+
- lib/neo4j/driver/internal/bolt_server_address.rb
|
306
254
|
- lib/neo4j/driver/internal/duration_normalizer.rb
|
307
|
-
- lib/neo4j/driver/internal/ruby_signature.rb
|
308
255
|
- lib/neo4j/driver/internal/validator.rb
|
309
|
-
- lib/neo4j/driver/
|
256
|
+
- lib/neo4j/driver/summary/query_type.rb
|
257
|
+
- lib/neo4j/driver/synchronizable.rb
|
310
258
|
- lib/neo4j/driver/types/local_date_time.rb
|
311
259
|
- lib/neo4j/driver/types/local_time.rb
|
312
260
|
- lib/neo4j/driver/types/offset_time.rb
|
313
261
|
- lib/neo4j/driver/types/point.rb
|
314
262
|
- lib/neo4j/driver/types/time.rb
|
315
|
-
- lib/neo4j/driver/version.rb
|
316
263
|
- lib/neo4j_ruby_driver.rb
|
264
|
+
- ruby/neo4j/driver.rb
|
265
|
+
- ruby/neo4j/driver/access_mode.rb
|
266
|
+
- ruby/neo4j/driver/auth_tokens.rb
|
267
|
+
- ruby/neo4j/driver/bookmark.rb
|
268
|
+
- ruby/neo4j/driver/config.rb
|
269
|
+
- ruby/neo4j/driver/graph_database.rb
|
270
|
+
- ruby/neo4j/driver/internal/async/connection/bolt_protocol_util.rb
|
271
|
+
- ruby/neo4j/driver/internal/async/connection/bootstrap_factory.rb
|
272
|
+
- ruby/neo4j/driver/internal/async/connection/channel_attributes.rb
|
273
|
+
- ruby/neo4j/driver/internal/async/connection/channel_connected_listener.rb
|
274
|
+
- ruby/neo4j/driver/internal/async/connection/channel_connector_impl.rb
|
275
|
+
- ruby/neo4j/driver/internal/async/connection/channel_pipeline_builder_impl.rb
|
276
|
+
- ruby/neo4j/driver/internal/async/connection/direct_connection.rb
|
277
|
+
- ruby/neo4j/driver/internal/async/connection/event_loop_group_factory.rb
|
278
|
+
- ruby/neo4j/driver/internal/async/connection/handshake_completed_listener.rb
|
279
|
+
- ruby/neo4j/driver/internal/async/connection/handshake_handler.rb
|
280
|
+
- ruby/neo4j/driver/internal/async/connection/netty_channel_initializer.rb
|
281
|
+
- ruby/neo4j/driver/internal/async/connection/netty_domain_name_resolver.rb
|
282
|
+
- ruby/neo4j/driver/internal/async/connection/netty_domain_name_resolver_group.rb
|
283
|
+
- ruby/neo4j/driver/internal/async/connection/routing_connection.rb
|
284
|
+
- ruby/neo4j/driver/internal/async/connection/stream.rb
|
285
|
+
- ruby/neo4j/driver/internal/async/connection/stream_reader.rb
|
286
|
+
- ruby/neo4j/driver/internal/async/connection_context.rb
|
287
|
+
- ruby/neo4j/driver/internal/async/immutable_connection_context.rb
|
288
|
+
- ruby/neo4j/driver/internal/async/inbound/byte_buf_input.rb
|
289
|
+
- ruby/neo4j/driver/internal/async/inbound/channel_error_handler.rb
|
290
|
+
- ruby/neo4j/driver/internal/async/inbound/chunk_decoder.rb
|
291
|
+
- ruby/neo4j/driver/internal/async/inbound/connect_timeout_handler.rb
|
292
|
+
- ruby/neo4j/driver/internal/async/inbound/connection_read_timeout_handler.rb
|
293
|
+
- ruby/neo4j/driver/internal/async/inbound/inbound_message_dispatcher.rb
|
294
|
+
- ruby/neo4j/driver/internal/async/inbound/inbound_message_handler.rb
|
295
|
+
- ruby/neo4j/driver/internal/async/inbound/message_decoder.rb
|
296
|
+
- ruby/neo4j/driver/internal/async/internal_async_session.rb
|
297
|
+
- ruby/neo4j/driver/internal/async/internal_async_transaction.rb
|
298
|
+
- ruby/neo4j/driver/internal/async/leak_logging_network_session.rb
|
299
|
+
- ruby/neo4j/driver/internal/async/network_connection.rb
|
300
|
+
- ruby/neo4j/driver/internal/async/network_session.rb
|
301
|
+
- ruby/neo4j/driver/internal/async/outbound/chunk_aware_byte_buf_output.rb
|
302
|
+
- ruby/neo4j/driver/internal/async/outbound/outbound_message_handler.rb
|
303
|
+
- ruby/neo4j/driver/internal/async/pool/channel.rb
|
304
|
+
- ruby/neo4j/driver/internal/async/pool/connection_pool_impl.rb
|
305
|
+
- ruby/neo4j/driver/internal/async/pool/controller.rb
|
306
|
+
- ruby/neo4j/driver/internal/async/pool/netty_channel_health_checker.rb
|
307
|
+
- ruby/neo4j/driver/internal/async/pool/netty_channel_pool.rb
|
308
|
+
- ruby/neo4j/driver/internal/async/pool/netty_channel_tracker.rb
|
309
|
+
- ruby/neo4j/driver/internal/async/pool/network_connection_factory.rb
|
310
|
+
- ruby/neo4j/driver/internal/async/pool/pool_settings.rb
|
311
|
+
- ruby/neo4j/driver/internal/async/result_cursors_holder.rb
|
312
|
+
- ruby/neo4j/driver/internal/async/unmanaged_transaction.rb
|
313
|
+
- ruby/neo4j/driver/internal/bookmark_holder.rb
|
314
|
+
- ruby/neo4j/driver/internal/cluster/cluster_composition.rb
|
315
|
+
- ruby/neo4j/driver/internal/cluster/cluster_composition_lookup_result.rb
|
316
|
+
- ruby/neo4j/driver/internal/cluster/cluster_routing_table.rb
|
317
|
+
- ruby/neo4j/driver/internal/cluster/identity_resolver.rb
|
318
|
+
- ruby/neo4j/driver/internal/cluster/loadbalancing/least_connected_load_balancing_strategy.rb
|
319
|
+
- ruby/neo4j/driver/internal/cluster/loadbalancing/load_balancer.rb
|
320
|
+
- ruby/neo4j/driver/internal/cluster/loadbalancing/round_robin_array_index.rb
|
321
|
+
- ruby/neo4j/driver/internal/cluster/multi_databases_routing_procedure_runner.rb
|
322
|
+
- ruby/neo4j/driver/internal/cluster/rediscovery_impl.rb
|
323
|
+
- ruby/neo4j/driver/internal/cluster/route_message_routing_procedure_runner.rb
|
324
|
+
- ruby/neo4j/driver/internal/cluster/routing_context.rb
|
325
|
+
- ruby/neo4j/driver/internal/cluster/routing_procedure_cluster_composition_provider.rb
|
326
|
+
- ruby/neo4j/driver/internal/cluster/routing_procedure_response.rb
|
327
|
+
- ruby/neo4j/driver/internal/cluster/routing_settings.rb
|
328
|
+
- ruby/neo4j/driver/internal/cluster/routing_table_handler_impl.rb
|
329
|
+
- ruby/neo4j/driver/internal/cluster/routing_table_registry_impl.rb
|
330
|
+
- ruby/neo4j/driver/internal/cluster/single_database_routing_procedure_runner.rb
|
331
|
+
- ruby/neo4j/driver/internal/connection_settings.rb
|
332
|
+
- ruby/neo4j/driver/internal/cursor/async_result_cursor_impl.rb
|
333
|
+
- ruby/neo4j/driver/internal/cursor/async_result_cursor_only_factory.rb
|
334
|
+
- ruby/neo4j/driver/internal/cursor/disposable_async_result_cursor.rb
|
335
|
+
- ruby/neo4j/driver/internal/cursor/result_cursor_factory_impl.rb
|
336
|
+
- ruby/neo4j/driver/internal/cursor/rx_result_cursor_impl.rb
|
337
|
+
- ruby/neo4j/driver/internal/database_name.rb
|
338
|
+
- ruby/neo4j/driver/internal/database_name_util.rb
|
339
|
+
- ruby/neo4j/driver/internal/default_bookmark_holder.rb
|
340
|
+
- ruby/neo4j/driver/internal/default_domain_name_resolver.rb
|
341
|
+
- ruby/neo4j/driver/internal/direct_connection_provider.rb
|
342
|
+
- ruby/neo4j/driver/internal/driver_factory.rb
|
343
|
+
- ruby/neo4j/driver/internal/handlers/begin_tx_response_handler.rb
|
344
|
+
- ruby/neo4j/driver/internal/handlers/channel_releasing_reset_response_handler.rb
|
345
|
+
- ruby/neo4j/driver/internal/handlers/commit_tx_response_handler.rb
|
346
|
+
- ruby/neo4j/driver/internal/handlers/hello_response_handler.rb
|
347
|
+
- ruby/neo4j/driver/internal/handlers/init_response_handler.rb
|
348
|
+
- ruby/neo4j/driver/internal/handlers/legacy_pull_all_response_handler.rb
|
349
|
+
- ruby/neo4j/driver/internal/handlers/no_op_response_handler.rb
|
350
|
+
- ruby/neo4j/driver/internal/handlers/ping_response_handler.rb
|
351
|
+
- ruby/neo4j/driver/internal/handlers/pull_handlers.rb
|
352
|
+
- ruby/neo4j/driver/internal/handlers/pulln/auto_pull_response_handler.rb
|
353
|
+
- ruby/neo4j/driver/internal/handlers/pulln/basic_pull_response_handler.rb
|
354
|
+
- ruby/neo4j/driver/internal/handlers/pulln/fetch_size_util.rb
|
355
|
+
- ruby/neo4j/driver/internal/handlers/reset_response_handler.rb
|
356
|
+
- ruby/neo4j/driver/internal/handlers/rollback_tx_response_handler.rb
|
357
|
+
- ruby/neo4j/driver/internal/handlers/route_message_response_handler.rb
|
358
|
+
- ruby/neo4j/driver/internal/handlers/routing_response_handler.rb
|
359
|
+
- ruby/neo4j/driver/internal/handlers/run_response_handler.rb
|
360
|
+
- ruby/neo4j/driver/internal/handlers/session_pull_response_completion_listener.rb
|
361
|
+
- ruby/neo4j/driver/internal/handlers/transaction_pull_response_completion_listener.rb
|
362
|
+
- ruby/neo4j/driver/internal/impersonation_util.rb
|
363
|
+
- ruby/neo4j/driver/internal/internal_bookmark.rb
|
364
|
+
- ruby/neo4j/driver/internal/internal_database_name.rb
|
365
|
+
- ruby/neo4j/driver/internal/internal_driver.rb
|
366
|
+
- ruby/neo4j/driver/internal/internal_entity.rb
|
367
|
+
- ruby/neo4j/driver/internal/internal_node.rb
|
368
|
+
- ruby/neo4j/driver/internal/internal_pair.rb
|
369
|
+
- ruby/neo4j/driver/internal/internal_path.rb
|
370
|
+
- ruby/neo4j/driver/internal/internal_point2_d.rb
|
371
|
+
- ruby/neo4j/driver/internal/internal_point3_d.rb
|
372
|
+
- ruby/neo4j/driver/internal/internal_record.rb
|
373
|
+
- ruby/neo4j/driver/internal/internal_relationship.rb
|
374
|
+
- ruby/neo4j/driver/internal/internal_result.rb
|
375
|
+
- ruby/neo4j/driver/internal/internal_session.rb
|
376
|
+
- ruby/neo4j/driver/internal/internal_transaction.rb
|
377
|
+
- ruby/neo4j/driver/internal/logging/channel_activity_logger.rb
|
378
|
+
- ruby/neo4j/driver/internal/logging/channel_error_logger.rb
|
379
|
+
- ruby/neo4j/driver/internal/logging/prefixed_logger.rb
|
380
|
+
- ruby/neo4j/driver/internal/logging/reformatted_logger.rb
|
381
|
+
- ruby/neo4j/driver/internal/messaging/abstract_message_writer.rb
|
382
|
+
- ruby/neo4j/driver/internal/messaging/bolt_protocol.rb
|
383
|
+
- ruby/neo4j/driver/internal/messaging/bolt_protocol_version.rb
|
384
|
+
- ruby/neo4j/driver/internal/messaging/common/common_message_reader.rb
|
385
|
+
- ruby/neo4j/driver/internal/messaging/common/common_value.rb
|
386
|
+
- ruby/neo4j/driver/internal/messaging/common/common_value_packer.rb
|
387
|
+
- ruby/neo4j/driver/internal/messaging/common/common_value_unpacker.rb
|
388
|
+
- ruby/neo4j/driver/internal/messaging/encode/begin_message_encoder.rb
|
389
|
+
- ruby/neo4j/driver/internal/messaging/encode/commit_message_encoder.rb
|
390
|
+
- ruby/neo4j/driver/internal/messaging/encode/discard_all_message_encoder.rb
|
391
|
+
- ruby/neo4j/driver/internal/messaging/encode/discard_message_encoder.rb
|
392
|
+
- ruby/neo4j/driver/internal/messaging/encode/goodbye_message_encoder.rb
|
393
|
+
- ruby/neo4j/driver/internal/messaging/encode/hello_message_encoder.rb
|
394
|
+
- ruby/neo4j/driver/internal/messaging/encode/init_message_encoder.rb
|
395
|
+
- ruby/neo4j/driver/internal/messaging/encode/pull_all_message_encoder.rb
|
396
|
+
- ruby/neo4j/driver/internal/messaging/encode/pull_message_encoder.rb
|
397
|
+
- ruby/neo4j/driver/internal/messaging/encode/reset_message_encoder.rb
|
398
|
+
- ruby/neo4j/driver/internal/messaging/encode/rollback_message_encoder.rb
|
399
|
+
- ruby/neo4j/driver/internal/messaging/encode/route_message_encoder.rb
|
400
|
+
- ruby/neo4j/driver/internal/messaging/encode/route_v44_message_encoder.rb
|
401
|
+
- ruby/neo4j/driver/internal/messaging/encode/run_message_encoder.rb
|
402
|
+
- ruby/neo4j/driver/internal/messaging/encode/run_with_metadata_message_encoder.rb
|
403
|
+
- ruby/neo4j/driver/internal/messaging/request/abstract_streaming_message.rb
|
404
|
+
- ruby/neo4j/driver/internal/messaging/request/begin_message.rb
|
405
|
+
- ruby/neo4j/driver/internal/messaging/request/commit_message.rb
|
406
|
+
- ruby/neo4j/driver/internal/messaging/request/discard_all_message.rb
|
407
|
+
- ruby/neo4j/driver/internal/messaging/request/discard_message.rb
|
408
|
+
- ruby/neo4j/driver/internal/messaging/request/goodbye_message.rb
|
409
|
+
- ruby/neo4j/driver/internal/messaging/request/hello_message.rb
|
410
|
+
- ruby/neo4j/driver/internal/messaging/request/init_message.rb
|
411
|
+
- ruby/neo4j/driver/internal/messaging/request/message_with_metadata.rb
|
412
|
+
- ruby/neo4j/driver/internal/messaging/request/multi_database_util.rb
|
413
|
+
- ruby/neo4j/driver/internal/messaging/request/pull_all_message.rb
|
414
|
+
- ruby/neo4j/driver/internal/messaging/request/pull_message.rb
|
415
|
+
- ruby/neo4j/driver/internal/messaging/request/reset_message.rb
|
416
|
+
- ruby/neo4j/driver/internal/messaging/request/rollback_message.rb
|
417
|
+
- ruby/neo4j/driver/internal/messaging/request/route_message.rb
|
418
|
+
- ruby/neo4j/driver/internal/messaging/request/run_message.rb
|
419
|
+
- ruby/neo4j/driver/internal/messaging/request/run_with_metadata_message.rb
|
420
|
+
- ruby/neo4j/driver/internal/messaging/request/transaction_metadata_builder.rb
|
421
|
+
- ruby/neo4j/driver/internal/messaging/response/failure_message.rb
|
422
|
+
- ruby/neo4j/driver/internal/messaging/response/ignored_message.rb
|
423
|
+
- ruby/neo4j/driver/internal/messaging/response/record_message.rb
|
424
|
+
- ruby/neo4j/driver/internal/messaging/response/success_message.rb
|
425
|
+
- ruby/neo4j/driver/internal/messaging/v3/bolt_protocol_v3.rb
|
426
|
+
- ruby/neo4j/driver/internal/messaging/v3/message_format_v3.rb
|
427
|
+
- ruby/neo4j/driver/internal/messaging/v3/message_writer_v3.rb
|
428
|
+
- ruby/neo4j/driver/internal/messaging/v4/bolt_protocol_v4.rb
|
429
|
+
- ruby/neo4j/driver/internal/messaging/v4/message_format_v4.rb
|
430
|
+
- ruby/neo4j/driver/internal/messaging/v4/message_writer_v4.rb
|
431
|
+
- ruby/neo4j/driver/internal/messaging/v41/bolt_protocol_v41.rb
|
432
|
+
- ruby/neo4j/driver/internal/messaging/v42/bolt_protocol_v42.rb
|
433
|
+
- ruby/neo4j/driver/internal/messaging/v43/bolt_protocol_v43.rb
|
434
|
+
- ruby/neo4j/driver/internal/messaging/v43/message_format_v43.rb
|
435
|
+
- ruby/neo4j/driver/internal/messaging/v43/message_writer_v43.rb
|
436
|
+
- ruby/neo4j/driver/internal/messaging/v44/bolt_protocol_v44.rb
|
437
|
+
- ruby/neo4j/driver/internal/messaging/v44/message_format_v44.rb
|
438
|
+
- ruby/neo4j/driver/internal/messaging/v44/message_writer_v44.rb
|
439
|
+
- ruby/neo4j/driver/internal/metrics/connection_pool_metrics_listener.rb
|
440
|
+
- ruby/neo4j/driver/internal/metrics/internal_abstract_metrics.rb
|
441
|
+
- ruby/neo4j/driver/internal/metrics/internal_connection_pool_metrics.rb
|
442
|
+
- ruby/neo4j/driver/internal/metrics/internal_metrics.rb
|
443
|
+
- ruby/neo4j/driver/internal/metrics/internal_metrics_provider.rb
|
444
|
+
- ruby/neo4j/driver/internal/metrics/listener_event.rb
|
445
|
+
- ruby/neo4j/driver/internal/metrics/metrics_provider.rb
|
446
|
+
- ruby/neo4j/driver/internal/metrics/time_recorder_listener_event.rb
|
447
|
+
- ruby/neo4j/driver/internal/packstream/byte_array_incompatible_packer.rb
|
448
|
+
- ruby/neo4j/driver/internal/packstream/pack_input.rb
|
449
|
+
- ruby/neo4j/driver/internal/packstream/pack_output.rb
|
450
|
+
- ruby/neo4j/driver/internal/packstream/pack_stream.rb
|
451
|
+
- ruby/neo4j/driver/internal/packstream/pack_type.rb
|
452
|
+
- ruby/neo4j/driver/internal/retry/exponential_backoff_retry_logic.rb
|
453
|
+
- ruby/neo4j/driver/internal/revocation_strategy.rb
|
454
|
+
- ruby/neo4j/driver/internal/scheme.rb
|
455
|
+
- ruby/neo4j/driver/internal/security/internal_auth_token.rb
|
456
|
+
- ruby/neo4j/driver/internal/security/security_plan_impl.rb
|
457
|
+
- ruby/neo4j/driver/internal/security_setting.rb
|
458
|
+
- ruby/neo4j/driver/internal/session_factory_impl.rb
|
459
|
+
- ruby/neo4j/driver/internal/spi/connection.rb
|
460
|
+
- ruby/neo4j/driver/internal/spi/connection_pool.rb
|
461
|
+
- ruby/neo4j/driver/internal/spi/response_handler.rb
|
462
|
+
- ruby/neo4j/driver/internal/summary/internal_database_info.rb
|
463
|
+
- ruby/neo4j/driver/internal/summary/internal_input_position.rb
|
464
|
+
- ruby/neo4j/driver/internal/summary/internal_notification.rb
|
465
|
+
- ruby/neo4j/driver/internal/summary/internal_plan.rb
|
466
|
+
- ruby/neo4j/driver/internal/summary/internal_profiled_plan.rb
|
467
|
+
- ruby/neo4j/driver/internal/summary/internal_result_summary.rb
|
468
|
+
- ruby/neo4j/driver/internal/summary/internal_server_info.rb
|
469
|
+
- ruby/neo4j/driver/internal/summary/internal_summary_counters.rb
|
470
|
+
- ruby/neo4j/driver/internal/svm/netty_substitutions.rb
|
471
|
+
- ruby/neo4j/driver/internal/svm/z_lib_substitutions.rb
|
472
|
+
- ruby/neo4j/driver/internal/util/certificate_tool.rb
|
473
|
+
- ruby/neo4j/driver/internal/util/clock.rb
|
474
|
+
- ruby/neo4j/driver/internal/util/error_util.rb
|
475
|
+
- ruby/neo4j/driver/internal/util/extract.rb
|
476
|
+
- ruby/neo4j/driver/internal/util/format.rb
|
477
|
+
- ruby/neo4j/driver/internal/util/futures.rb
|
478
|
+
- ruby/neo4j/driver/internal/util/iterables.rb
|
479
|
+
- ruby/neo4j/driver/internal/util/lock_util.rb
|
480
|
+
- ruby/neo4j/driver/internal/util/metadata_extractor.rb
|
481
|
+
- ruby/neo4j/driver/internal/util/mutex.rb
|
482
|
+
- ruby/neo4j/driver/internal/util/preconditions.rb
|
483
|
+
- ruby/neo4j/driver/internal/util/server_version.rb
|
484
|
+
- ruby/neo4j/driver/logging1.rb
|
485
|
+
- ruby/neo4j/driver/net/server_address1.rb
|
486
|
+
- ruby/neo4j/driver/query.rb
|
487
|
+
- ruby/neo4j/driver/records.rb
|
488
|
+
- ruby/neo4j/driver/session_config.rb
|
489
|
+
- ruby/neo4j/driver/transaction_config.rb
|
490
|
+
- ruby/neo4j/driver/values.rb
|
491
|
+
- ruby/neo4j/driver/version.rb
|
317
492
|
homepage: https://github.com/neo4jrb/neo4j-ruby-driver
|
318
493
|
licenses:
|
319
494
|
- MIT
|
@@ -325,19 +500,19 @@ rdoc_options:
|
|
325
500
|
- README.md
|
326
501
|
require_paths:
|
327
502
|
- lib
|
328
|
-
-
|
503
|
+
- ruby
|
329
504
|
required_ruby_version: !ruby/object:Gem::Requirement
|
330
505
|
requirements:
|
331
506
|
- - ">="
|
332
507
|
- !ruby/object:Gem::Version
|
333
|
-
version: '
|
508
|
+
version: '3.1'
|
334
509
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
335
510
|
requirements:
|
336
|
-
- - "
|
511
|
+
- - ">"
|
337
512
|
- !ruby/object:Gem::Version
|
338
|
-
version:
|
513
|
+
version: 1.3.1
|
339
514
|
requirements: []
|
340
|
-
rubygems_version: 3.
|
515
|
+
rubygems_version: 3.3.7
|
341
516
|
signing_key:
|
342
517
|
specification_version: 4
|
343
518
|
summary: ''
|
data/ffi/bolt/address.rb
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Bolt
|
4
|
-
module Address
|
5
|
-
extend Bolt::Library
|
6
|
-
attach_function :create, :BoltAddress_create, %i[string string], :auto_pointer
|
7
|
-
attach_function :destroy, :BoltAddress_destroy, [:pointer], :void
|
8
|
-
attach_function :host, :BoltAddress_host, [:pointer], :strptr
|
9
|
-
attach_function :port, :BoltAddress_port, [:pointer], :strptr
|
10
|
-
end
|
11
|
-
end
|
@@ -1,12 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Bolt
|
4
|
-
module AddressResolver
|
5
|
-
extend Bolt::Library
|
6
|
-
|
7
|
-
callback :address_resolver_func, %i[pointer pointer pointer], :void
|
8
|
-
|
9
|
-
attach_function :create, :BoltAddressResolver_create, %i[pointer address_resolver_func], :auto_pointer
|
10
|
-
attach_function :destroy, :BoltLog_destroy, %i[pointer], :void
|
11
|
-
end
|
12
|
-
end
|