Skip to main content

diff_connection_options

Function diff_connection_options 

Source
fn diff_connection_options(
    project_opts: &[ConnectionOption<Raw>],
    live_opts: &[ConnectionOption<Raw>],
) -> (Vec<ConnectionOption<Raw>>, Vec<ConnectionOptionName>)
Expand description

Diff two sets of connection options.

Returns (to_set, to_drop):

  • to_set: options that need ALTER CONNECTION ... SET
  • to_drop: option names that need ALTER CONNECTION ... DROP