Skip to content

Commit 85291cb

Browse files
committed
Checking in changes prior to tagging of version 0.21.
Changelog diff is: diff --git a/Changes b/Changes index 86eb37e..c55ccb1 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,10 @@ {{$NEXT}} +0.21 2020-10-29T05:54:05Z + - Add GitHub Actions #38 + - Support DBD::MariaDB #39 + - Fork safety #40 + 0.20 2020-09-14T12:15:54Z - Fix tests (Thanks to eseyman) #36 - Change license (Thanks to kentfredric) #34
1 parent c73dfda commit 85291cb

4 files changed

Lines changed: 76 additions & 3 deletions

File tree

Changes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{{$NEXT}}
22

3+
0.21 2020-10-29T05:54:05Z
4+
- Add GitHub Actions #38
5+
- Support DBD::MariaDB #39
6+
- Fork safety #40
7+
38
0.20 2020-09-14T12:15:54Z
49
- Fix tests (Thanks to eseyman) #36
510
- Change license (Thanks to kentfredric) #34

META.json

Lines changed: 64 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"-2006"
55
],
66
"dynamic_config" : 0,
7-
"generated_by" : "Minilla/v3.1.10, CPAN::Meta::Converter version 2.150010",
7+
"generated_by" : "Minilla/v3.1.11, CPAN::Meta::Converter version 2.150010",
88
"license" : [
99
"perl_5"
1010
],
@@ -25,6 +25,68 @@
2525
"builder"
2626
]
2727
},
28+
"optional_features" : {
29+
"test_fork" : {
30+
"description" : "Test Fork",
31+
"prereqs" : {
32+
"runtime" : {
33+
"requires" : {
34+
"DBI" : "1.614",
35+
"POSIX::AtFork" : "0",
36+
"Parallel::ForkManager" : "0",
37+
"Scalar::Util" : "0",
38+
"Test::SharedFork" : "0"
39+
}
40+
}
41+
}
42+
},
43+
"test_mariadb" : {
44+
"description" : "Test MariaDB",
45+
"prereqs" : {
46+
"runtime" : {
47+
"requires" : {
48+
"DBD::MariaDB" : "0",
49+
"SQL::Translator" : "0",
50+
"Test::mysqld" : "0"
51+
}
52+
}
53+
}
54+
},
55+
"test_mysql" : {
56+
"description" : "Test MySQL",
57+
"prereqs" : {
58+
"runtime" : {
59+
"requires" : {
60+
"DBD::mysql" : "0",
61+
"SQL::Translator" : "0",
62+
"Test::mysqld" : "0"
63+
}
64+
}
65+
}
66+
},
67+
"test_postgresql" : {
68+
"description" : "Test PostgreSQL",
69+
"prereqs" : {
70+
"runtime" : {
71+
"requires" : {
72+
"DBD::Pg" : "0",
73+
"SQL::Translator" : "0",
74+
"Test::PostgreSQL" : "0"
75+
}
76+
}
77+
}
78+
},
79+
"test_sqlite" : {
80+
"description" : "Test SQLite",
81+
"prereqs" : {
82+
"runtime" : {
83+
"requires" : {
84+
"DBD::SQLite" : "0"
85+
}
86+
}
87+
}
88+
}
89+
},
2890
"prereqs" : {
2991
"build" : {
3092
"requires" : {
@@ -79,7 +141,7 @@
79141
"web" : "https://github.com/sixapart/data-objectdriver"
80142
}
81143
},
82-
"version" : "0.20",
144+
"version" : "0.21",
83145
"x_authority" : "cpan:SIXAPART",
84146
"x_contributors" : [
85147
"Adam Thomason <athomason@sixapart.com>",

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,12 @@ has been added specifically for this purpose: `reuse_dbh`.
578578

579579
1;
580580

581+
# FORK SAFETY
582+
583+
As of version 0.21, _Data::ObjectDriver_ resets internal database handles
584+
after _fork(2)_ is called, but only if [POSIX::AtFork](https://metacpan.org/pod/POSIX%3A%3AAtFork) module is installed.
585+
Otherwise, _Data::ObjectDriver_ is not fork-safe.
586+
581587
# SUPPORTED DATABASES
582588

583589
_Data::ObjectDriver_ is very modular and it's not very difficult to add new drivers.

lib/Data/ObjectDriver.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use Data::ObjectDriver::Iterator;
1111

1212
__PACKAGE__->mk_accessors(qw( pk_generator txn_active ));
1313

14-
our $VERSION = '0.20';
14+
our $VERSION = '0.21';
1515
our $DEBUG = $ENV{DOD_DEBUG} || 0;
1616
our $PROFILE = $ENV{DOD_PROFILE} || 0;
1717
our $PROFILER;

0 commit comments

Comments
 (0)