Added patch by rbo: New method hashref_pk: Calls hashref_array and returns a referenc...
[dbsrgits/DBIx-Class-ResultSet-HashRef.git] / README
diff --git a/README b/README
index f81b64f..e7d80b7 100644 (file)
--- a/README
+++ b/README
@@ -50,6 +50,15 @@ METHODS
         my $first_row = $schema->resultset('User')->search( { } )->hashref_first;
         print Dumper $first_row
 
+  hashref_pk( )
+    Calls hashref_array and returns a reference to a hash containing the
+    primary key. For each key the corresponding value is a reference to a
+    hash of the resultset inflated by
+    DBIx::Class::ResultClass::HashRefInflator.
+
+        my $hashref_pk = $schema->resultset('User')->search( { } )->hashref_pk;
+        print Dumper $hashref_pk
+
 AUTHOR
     Johannes Plunien <plu@cpan.org>