Skip to content

Commit

Permalink
Checking in changes prior to tagging of version 0.9993.
Browse files Browse the repository at this point in the history
Changelog diff is:

diff --git a/Changes b/Changes
index b745fa7..e19c886 100644
--- a/Changes
+++ b/Changes
@@ -2,6 +2,11 @@ Revision history for Perl extension DBIx::Sunny
 
 {{$NEXT}}
 
+0.9993 2023-10-14T08:38:01Z
+
+        - Add select_row_as and select_all_as features #19
+
+
 0.9992 2020-07-29T23:32:14Z
 
         - Croak when mismatch of bind values #17
  • Loading branch information
kazeburo committed Oct 14, 2023
1 parent 5c9ad1c commit 8d4e621
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 7 deletions.
5 changes: 5 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ Revision history for Perl extension DBIx::Sunny

{{$NEXT}}

0.9993 2023-10-14T08:38:01Z

- Add select_row_as and select_all_as features #19


0.9992 2020-07-29T23:32:14Z

- Croak when mismatch of bind values #17
Expand Down
9 changes: 5 additions & 4 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"Masahiro Nagano <kazeburo KZBRKZBR@ gmail.com>"
],
"dynamic_config" : 0,
"generated_by" : "Minilla/v3.1.10, CPAN::Meta::Converter version 2.150010",
"generated_by" : "Minilla/v3.1.23, CPAN::Meta::Converter version 2.150010",
"license" : [
"perl_5"
],
Expand Down Expand Up @@ -77,21 +77,22 @@
"homepage" : "https://github.com/kazeburo/DBIx-Sunny",
"repository" : {
"type" : "git",
"url" : "git://github.com/kazeburo/DBIx-Sunny.git",
"url" : "https://github.com/kazeburo/DBIx-Sunny.git",
"web" : "https://github.com/kazeburo/DBIx-Sunny"
}
},
"version" : "0.9992",
"version" : "0.9993",
"x_authority" : "cpan:KAZEBURO",
"x_contributors" : [
"FUJIWARA Shunichiro <fujiwara.shunichiro@gmail.com>",
"Masahiro Nagano <kazeburo@gmail.com>",
"Songmu <y.songmu@gmail.com>",
"Tokuhiro Matsuno <tokuhirom@gmail.com>",
"egawata <egawa.takashi@gmail.com>",
"kobaken <kentafly88@gmail.com>",
"motemen <motemen@gmail.com>",
"nanto_vi <nanto@moon.email.ne.jp>"
],
"x_serialization_backend" : "JSON::PP version 4.04",
"x_serialization_backend" : "JSON::PP version 4.07",
"x_static_install" : 1
}
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ DBIx::Sunny - Simple DBI wrapper

my $dbh = DBIx::Sunny->connect(...);

# or
# or

use DBI;

Expand Down Expand Up @@ -102,9 +102,17 @@ DBIx::Sunny supports only SQLite and MySQL.

Shortcut for prepare, execute and `selectall_arrayref(.., { Slice => {} }, ..)`

- `$model = $dbh->select_row_as($model_class, $query, @bind);`

Shortcut for `$model_class->new(%{ $dbh->select_row($query, @bind) })`;

- `$models = $dbh->select_all_as($model_class, $query, @bind);`

Shortcut for `[ map { $model_class->new(%$_) } @{ $dbh->select_all($query, @bind) } ];`

- `$dbh->query($query, @bind);`

Shortcut for prepare, execute.
Shortcut for prepare, execute.

# AUTHOR

Expand Down
2 changes: 1 addition & 1 deletion lib/DBIx/Sunny.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use warnings;
use 5.008005;
use DBI 1.615;

our $VERSION = '0.9992';
our $VERSION = '0.9993';
our $SKIP_CALLER_REGEX = qr/^(:?DBIx?|DBD|Try::Tiny|Context::Preserve)\b/;

use parent qw/DBI/;
Expand Down

0 comments on commit 8d4e621

Please sign in to comment.