Neodriver_core.ConfigConfiguration records with validated constructors.
Configuration records for the Neo4j driver.
See config.ml for the implementation.
type workspace_config = {max_transaction_retry_time : float;initial_retry_delay : float;retry_delay_multiplier : float;retry_delay_jitter_factor : float;fetch_size : int;database : string option;impersonated_user : string option;disable_auto_commit_retries : bool;}Session workspace settings: retry policy, fetch size and database selection.
type pool_config = {max_connection_lifetime : float;liveness_check_timeout : float option;max_connection_pool_size : int;connection_acquisition_timeout : float;connection_timeout : float;connection_write_timeout : float;keep_alive : bool;telemetry_disabled : bool;notifications_min_severity : string option;notifications_disabled_categories : string list option;home_db_cache_ttl : float;}Connection pool settings. home_db_cache_ttl is how long a routed driver remembers a resolved home database (default Float.infinity, i.e. the cache is on — a default-database session guesses the cached home database only when a server-side-routing capable connection has been seen); a TTL <= 0.0 disables the cache and every default-database session re-fetches the home database over ROUTE. notifications_min_severity and notifications_disabled_categories are the driver-level notification filtering settings sent in HELLO (Bolt >= 5.2; None omits the field, Some [] sends an empty category list).
val default_access_mode : access_modeDefault access mode (Write).
val default_workspace_config : workspace_configDefault workspace configuration.
val default_pool_config : pool_configDefault pool configuration.
val make_workspace_config :
?max_transaction_retry_time:float ->
?initial_retry_delay:float ->
?retry_delay_multiplier:float ->
?retry_delay_jitter_factor:float ->
?fetch_size:int ->
?database:string option ->
?impersonated_user:string option ->
?disable_auto_commit_retries:bool ->
unit ->
(workspace_config, Errors.t) Stdlib.resultBuild a workspace_config from the given overrides (defaults from default_workspace_config), validating the numeric settings.
val make_pool_config :
?max_connection_lifetime:float ->
?liveness_check_timeout:float option ->
?max_connection_pool_size:int ->
?connection_acquisition_timeout:float ->
?connection_timeout:float ->
?connection_write_timeout:float ->
?keep_alive:bool ->
?telemetry_disabled:bool ->
?notifications_min_severity:string option ->
?notifications_disabled_categories:string list option ->
?home_db_cache_ttl:float ->
unit ->
(pool_config, Errors.t) Stdlib.resultBuild a pool_config from the given overrides (defaults from default_pool_config), validating the numeric settings.