cleanup last insert id handling
[dbsrgits/DBIx-Data-Store-old.git] / lib / DBIx / Data / Store / Command / Closure.pm
diff --git a/lib/DBIx/Data/Store/Command/Closure.pm b/lib/DBIx/Data/Store/Command/Closure.pm
new file mode 100644 (file)
index 0000000..1ecd326
--- /dev/null
@@ -0,0 +1,14 @@
+package DBIx::Data::Store::Command::Closure;
+
+use Moose;
+use Method::Signatures::Simple;
+
+has [ 'run', 'against' ] => (is => 'ro', required => 1);
+
+method execute {
+  $self->against->run($self->run);
+}
+
+__PACKAGE__->meta->make_immutable;
+
+1;