Help for this page

Select Code to Download


  1. or download this
    $schema->resultset("UserScenario")->update_or_create(
        {
    ...
        },
        { key   => "u_user_scenario_name" },
    );
    
  2. or download this
    $schema->resultset("UserScenario")->update_or_create(
        {
    ...
        },
        { key   => "u_user_scenario_name" },
    );
    
  3. or download this
    if (defined($user_scenario->{description}) {
        $schema->resultset("UserScenario")->update_or_create(
    ...
            { key   => "u_user_scenario_name" },
        );
    }
    
  4. or download this
    $schema->resultset("UserScenario")->update_or_create(
        {
    ...
        },
        { key   => "u_user_scenario_name" },
    );
    
  5. or download this
    my %fields;
    $fields{name}        = $user_scenario->{name};
    ...
        \%fields,
        { key   => "u_user_scenario_name" },
    );