- 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";
- or download this
+----+-----------+
| id | status |
...
| 2 | available |
| 3 | available |
+----+-----------+
- or download this
+----+-----------+
| id | status |
...
| 2 | available |
| 3 | available |
+----+-----------+
- or download this
__PACKAGE__->table("test_table");
__PACKAGE__->add_columns(
...
"status",
{ data_type => "varchar", is_nullable => 1, size => 255 },
);
- or download this
id before update: 1
id at end: 2