Neodriver_core.ConfigConfiguration records with validated constructors.
Configuration records for the Neo4j driver.
See config.ml for the implementation.
type workspace_config = {connection_acquisition_timeout : float;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: timeouts, 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_timeout : float;connection_write_timeout : float;keep_alive : bool;telemetry_disabled : bool;}Connection pool settings.
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 :
?connection_acquisition_timeout:float ->
?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_timeout:float ->
?connection_write_timeout:float ->
?keep_alive:bool ->
?telemetry_disabled:bool ->
unit ->
(pool_config, Errors.t) Stdlib.resultBuild a pool_config from the given overrides (defaults from default_pool_config), validating the numeric settings.