Help for this page

Select Code to Download


  1. or download this
    my $guard = $schema->txn_scope_guard;
    
    ...
    my $id_at_end = $rs->first->id;
    
    print "id before update: $id_before_update\nid at end: $id_at_end\n";
    
  2. or download this
    +----+-----------+
    | id | status    |
    ...
    |  2 | available |
    |  3 | available |
    +----+-----------+
    
  3. or download this
    +----+-----------+
    | id | status    |
    ...
    |  2 | available |
    |  3 | available |
    +----+-----------+
    
  4. or download this
    __PACKAGE__->table("test_table");
    __PACKAGE__->add_columns(
    ...
      "status",
      { data_type => "varchar", is_nullable => 1, size => 255 },
    );
    
  5. or download this
    id before update: 1
    id at end: 2