first commit
|
1 |
package DBI::Custom; |
2 |
use Object::Simple; |
|
add test
|
3 | |
4 |
our $VERSION = '0.0101'; |
|
5 | ||
6 |
use Carp 'croak'; |
|
add some method
|
7 |
use DBI; |
add tests
|
8 |
use DBI::Custom::SQL::Template; |
add tests
|
9 |
use DBI::Custom::Result; |
cleanup
|
10 |
use DBI::Custom::Query; |
add tests
|
11 | |
12 |
### Class-Object Accessors |
|
update document
|
13 |
sub user : ClassObjectAttr { initialize => {clone => 'scalar'} } |
14 |
sub password : ClassObjectAttr { initialize => {clone => 'scalar'} } |
|
15 |
sub data_source : ClassObjectAttr { initialize => {clone => 'scalar'} } |
|
add various thins
|
16 |
sub database : ClassObjectAttr { initialize => {clone => 'scalar'} } |
cleanup
|
17 |
sub dbi_options : ClassObjectAttr { initialize => {clone => 'hash', |
add tests
|
18 |
default => sub { {} } } } |
catch up Object::Simple upda...
|
19 | |
update document
|
20 |
sub bind_filter : ClassObjectAttr { initialize => {clone => 'scalar'} } |
21 |
sub fetch_filter : ClassObjectAttr { initialize => {clone => 'scalar'} } |
|
catch up Object::Simple upda...
|
22 | |
add no_bind_filters
|
23 |
sub no_bind_filters : ClassObjectAttr { initialize => {clone => 'array'} } |
24 |
sub no_fetch_filters : ClassObjectAttr { initialize => {clone => 'array'} } |
|
add various thins
|
25 | |
catch up Object::Simple upda...
|
26 |
sub filters : ClassObjectAttr { |
27 |
type => 'hash', |
|
28 |
deref => 1, |
|
29 |
initialize => { |
|
add tests
|
30 |
clone => 'hash', |
31 |
default => sub { {} } |
|
catch up Object::Simple upda...
|
32 |
} |
33 |
} |
|
first commit
|
34 | |
catch up Object::Simple upda...
|
35 |
sub result_class : ClassObjectAttr { |
36 |
initialize => { |
|
add tests
|
37 |
clone => 'scalar', |
38 |
default => 'DBI::Custom::Result' |
|
catch up Object::Simple upda...
|
39 |
} |
40 |
} |
|
cleanup
|
41 | |
catch up Object::Simple upda...
|
42 |
sub sql_template : ClassObjectAttr { |
43 |
initialize => { |
|
update document
|
44 |
clone => sub {$_[0] ? $_[0]->clone : undef}, |
catch up Object::Simple upda...
|
45 |
default => sub {DBI::Custom::SQL::Template->new} |
46 |
} |
|
47 |
} |
|
cleanup
|
48 | |
add tests
|
49 |
### Object Accessor |
add tests
|
50 |
sub dbh : Attr {} |
add tests
|
51 | |
52 | ||
53 |
### Methods |
|
add various thins
|
54 | |
add tests
|
55 |
# Add filter |
56 |
sub add_filter { |
|
57 |
my $invocant = shift; |
|
58 |
|
|
59 |
my %old_filters = $invocant->filters; |
|
60 |
my %new_filters = ref $_[0] eq 'HASH' ? %{$_[0]} : @_; |
|
61 |
$invocant->filters(%old_filters, %new_filters); |
|
update document
|
62 |
return $invocant; |
add tests
|
63 |
} |
add various
|
64 | |
65 |
# Auto commit |
|
update document
|
66 |
sub _auto_commit { |
add various
|
67 |
my $self = shift; |
68 |
|
|
69 |
croak("Cannot change AutoCommit becouse of not connected") |
|
70 |
unless $self->dbh; |
|
71 |
|
|
72 |
if (@_) { |
|
73 |
$self->dbh->{AutoCommit} = $_[0]; |
|
74 |
return $self; |
|
75 |
} |
|
76 |
return $self->dbh->{AutoCommit}; |
|
77 |
} |
|
add test
|
78 | |
add various things
|
79 |
# Connect |
add some method
|
80 |
sub connect { |
81 |
my $self = shift; |
|
update document
|
82 |
my $data_source = $self->data_source; |
83 |
my $user = $self->user; |
|
84 |
my $password = $self->password; |
|
cleanup
|
85 |
my $dbi_options = $self->dbi_options; |
add test
|
86 |
|
add some method
|
87 |
my $dbh = DBI->connect( |
update document
|
88 |
$data_source, |
89 |
$user, |
|
90 |
$password, |
|
add some method
|
91 |
{ |
92 |
RaiseError => 1, |
|
93 |
PrintError => 0, |
|
94 |
AutoCommit => 1, |
|
cleanup
|
95 |
%{$dbi_options || {} } |
add some method
|
96 |
} |
97 |
); |
|
98 |
|
|
99 |
$self->dbh($dbh); |
|
add various
|
100 |
return $self; |
add some method
|
101 |
} |
first commit
|
102 | |
add tests
|
103 |
# DESTROY |
add tests
|
104 |
sub DESTROY { |
105 |
my $self = shift; |
|
add tests
|
106 |
$self->disconnect if $self->connected; |
add tests
|
107 |
} |
108 | ||
add various things
|
109 |
# Is connected? |
110 |
sub connected { |
|
111 |
my $self = shift; |
|
add tests
|
112 |
return exists $self->{dbh} && eval {$self->{dbh}->can('prepare')}; |
add various things
|
113 |
} |
114 | ||
115 |
# Disconnect |
|
116 |
sub disconnect { |
|
117 |
my $self = shift; |
|
add tests
|
118 |
if ($self->connected) { |
add various things
|
119 |
$self->dbh->disconnect; |
120 |
delete $self->{dbh}; |
|
121 |
} |
|
122 |
} |
|
123 | ||
124 |
# Reconnect |
|
125 |
sub reconnect { |
|
126 |
my $self = shift; |
|
add tests
|
127 |
$self->disconnect if $self->connected; |
add various things
|
128 |
$self->connect; |
129 |
} |
|
130 | ||
try various
|
131 |
# Run tranzaction |
132 |
sub run_tranzaction { |
|
133 |
my ($self, $tranzaction) = @_; |
|
134 |
|
|
update document
|
135 |
$self->_auto_commit(0); |
try various
|
136 |
|
137 |
eval { |
|
138 |
$tranzaction->(); |
|
139 |
$self->dbh->commit; |
|
140 |
}; |
|
141 |
|
|
142 |
if ($@) { |
|
143 |
my $tranzaction_error = $@; |
|
144 |
|
|
145 |
$self->dbh->rollback or croak("$@ and rollback also failed"); |
|
146 |
croak("$tranzaction_error"); |
|
147 |
} |
|
update document
|
148 |
$self->_auto_commit(1); |
add tests
|
149 |
} |
150 | ||
add prepare
|
151 |
sub prepare { |
152 |
my ($self, $sql) = @_; |
|
153 |
eval{$self->connect unless $self->connected}; |
|
154 |
croak($@) if $@; |
|
155 |
|
|
156 |
my $sth = eval{$self->dbh->prepare($sql)}; |
|
157 |
croak($@) if $@; |
|
158 |
return $sth; |
|
159 |
} |
|
160 | ||
161 |
sub do{ |
|
162 |
my ($self, $sql, @bind_values) = @_; |
|
163 |
eval{$self->connect unless $self->connected}; |
|
164 |
croak($@) if $@; |
|
165 |
|
|
166 |
eval{$self->dbh->do($sql, @bind_values)}; |
|
167 |
croak($@) if $@; |
|
168 |
} |
|
169 | ||
add various thins
|
170 |
sub create_query { |
171 |
my ($self, $template) = @_; |
|
add test
|
172 |
|
add various thins
|
173 |
# Create query from SQL template |
add prepare
|
174 |
my $sql_template = $self->sql_template; |
175 |
my $query = eval{$sql_template->create_query($template)}; |
|
176 |
croak($@) if $@; |
|
add test
|
177 |
|
add various thins
|
178 |
# Create Query object; |
cleanup
|
179 |
$query = DBI::Custom::Query->new($query); |
add various thins
|
180 |
|
181 |
# connect if not |
|
182 |
$self->connect unless $self->connected; |
|
try varioud way
|
183 |
|
add various thins
|
184 |
# Prepare statement handle |
add prepare
|
185 |
my $sth = eval{$self->dbh->prepare($query->{sql})}; |
186 |
croak($@) if $@; |
|
add tests
|
187 |
|
add no_bind_filters
|
188 |
# Set statement handle |
add various thins
|
189 |
$query->sth($sth); |
add tests
|
190 |
|
add no_bind_filters
|
191 |
# Set bind filter |
192 |
$query->bind_filter($self->bind_filter); |
|
193 |
|
|
194 |
# Set no filter keys when binding |
|
195 |
$query->no_bind_filters($self->no_bind_filters); |
|
196 | ||
197 |
# Set fetch filter |
|
198 |
$query->fetch_filter($self->fetch_filter); |
|
199 |
|
|
200 |
# Set no filter keys when fetching |
|
201 |
$query->no_fetch_filters($self->no_fetch_filters); |
|
202 |
|
|
add various thins
|
203 |
return $query; |
204 |
} |
|
205 | ||
206 |
sub execute { |
|
207 |
my ($self, $query, $params) = @_; |
|
add tests
|
208 |
$params ||= {}; |
try varioud way
|
209 |
|
add various thins
|
210 |
# Create bind value |
211 |
my $bind_values = $self->_build_bind_values($query, $params); |
|
add tests
|
212 |
|
cleanup
|
213 |
# Execute |
cleanup
|
214 |
my $sth = $query->sth; |
add tests
|
215 |
my $ret_val = eval{$sth->execute(@$bind_values)}; |
216 |
croak($@) if $@; |
|
add various things
|
217 |
|
cleanup
|
218 |
# Return resultset if select statement is executed |
add various things
|
219 |
if ($sth->{NUM_OF_FIELDS}) { |
220 |
my $result_class = $self->result_class; |
|
add various
|
221 |
my $result = $result_class->new({ |
add no_bind_filters
|
222 |
sth => $sth, |
223 |
fetch_filter => $query->fetch_filter, |
|
224 |
no_fetch_filters => $query->no_fetch_filters |
|
add various
|
225 |
}); |
add various things
|
226 |
return $result; |
227 |
} |
|
add tests
|
228 |
return $ret_val; |
add test
|
229 |
} |
230 | ||
add various thins
|
231 |
sub _build_bind_values { |
232 |
my ($self, $query, $params) = @_; |
|
cleanup
|
233 |
|
add no_bind_filters
|
234 |
my $key_infos = $query->key_infos; |
235 |
my $bind_filter = $query->bind_filter; |
|
236 |
my $no_bind_filters_map = $query->_no_bind_filters_map || {}; |
|
cleanup
|
237 |
|
add various thins
|
238 |
# binding values |
239 |
my @bind_values; |
|
cleanup
|
240 |
|
add tests
|
241 |
# Create bind values |
cleanup
|
242 |
foreach my $key_info (@$key_infos) { |
243 |
my $filtering_key = $key_info->{key}; |
|
244 |
my $access_keys = $key_info->{access_keys}; |
|
add various thins
|
245 |
|
cleanup
|
246 |
my $original_key = $key_info->{original_key} || ''; |
247 |
my $table = $key_info->{table} || ''; |
|
248 |
my $column = $key_info->{column} || ''; |
|
add various thins
|
249 |
|
add tests
|
250 |
my $found; |
add various thins
|
251 |
ACCESS_KEYS : |
252 |
foreach my $access_key (@$access_keys) { |
|
253 |
my $root_params = $params; |
|
254 |
for (my $i = 0; $i < @$access_key; $i++) { |
|
255 |
my $key = $access_key->[$i]; |
|
256 |
|
|
257 |
croak("'access_keys' each value must be string or array reference") |
|
258 |
unless (ref $key eq 'ARRAY' || ($key && !ref $key)); |
|
259 |
|
|
260 |
if ($i == @$access_key - 1) { |
|
261 |
if (ref $key eq 'ARRAY') { |
|
add no_bind_filters
|
262 |
if ($bind_filter && !$no_bind_filters_map->{$original_key}) { |
263 |
push @bind_values, |
|
cleanup
|
264 |
$bind_filter->($original_key, $root_params->[$key->[0]], |
265 |
$table, $column); |
|
add various thins
|
266 |
} |
267 |
else { |
|
268 |
push @bind_values, scalar $root_params->[$key->[0]]; |
|
269 |
} |
|
270 |
} |
|
271 |
else { |
|
272 |
next ACCESS_KEYS unless exists $root_params->{$key}; |
|
add no_bind_filters
|
273 |
if ($bind_filter && !$no_bind_filters_map->{$original_key}) { |
274 |
push @bind_values, |
|
cleanup
|
275 |
$bind_filter->($original_key, $root_params->{$key}, |
276 |
$table, $column); |
|
add various thins
|
277 |
} |
278 |
else { |
|
279 |
push @bind_values, scalar $root_params->{$key}; |
|
280 |
} |
|
281 |
} |
|
add tests
|
282 |
$found = 1; |
add various thins
|
283 |
} |
284 |
|
|
285 |
if ($key eq 'ARRAY') { |
|
286 |
$root_params = $root_params->[$key->[0]]; |
|
287 |
} |
|
288 |
else { |
|
289 |
next ACCESS_KEYS unless exists $root_params->{$key}; |
|
290 |
$root_params = $root_params->{$key}; |
|
291 |
} |
|
292 |
} |
|
293 |
} |
|
add tests
|
294 |
|
295 |
unless ($found) { |
|
296 |
require Data::Dumper; |
|
297 |
my $key_info_dump = Data::Dumper->Dump([$key_info], ['*key_info']); |
|
298 |
my $params_dump = Data::Dumper->Dump([$params], ['*params']); |
|
299 |
croak("Key not found\n\n" . |
|
300 |
"<Key information>\n$key_info_dump\n\n" . |
|
301 |
"<Your parameters>\n$params_dump\n"); |
|
302 |
} |
|
update document
|
303 |
} |
add tests
|
304 |
return \@bind_values; |
add test
|
305 |
} |
306 | ||
add various thins
|
307 | |
add test
|
308 |
Object::Simple->build_class; |
309 | ||
first commit
|
310 |
=head1 NAME |
311 | ||
add test
|
312 |
DBI::Custom - Customizable simple DBI |
first commit
|
313 | |
314 |
=head1 VERSION |
|
315 | ||
add test
|
316 |
Version 0.0101 |
first commit
|
317 | |
318 |
=cut |
|
319 | ||
320 |
=head1 SYNOPSIS |
|
321 | ||
add test
|
322 |
my $dbi = DBI::Custom->new; |
add various thins
|
323 |
|
324 |
my $query = $dbi->create_query($template); |
|
325 |
$dbi->execute($query); |
|
first commit
|
326 | |
update document
|
327 |
=head1 CLASS-OBJECT ACCESSORS |
first commit
|
328 | |
update document
|
329 |
=head2 user |
330 | ||
331 |
# Set and get database user name |
|
332 |
$self = $dbi->user($user); |
|
333 |
$user = $dbi->user; |
|
334 |
|
|
335 |
# Sample |
|
336 |
$dbi->user('taro'); |
|
337 | ||
338 |
=head2 password |
|
339 | ||
340 |
# Set and get database password |
|
341 |
$self = $dbi->password($password); |
|
342 |
$password = $dbi->password; |
|
343 |
|
|
344 |
# Sample |
|
345 |
$dbi->password('lkj&le`@s'); |
|
346 | ||
347 |
=head2 data_source |
|
348 | ||
349 |
# Set and get database data source |
|
350 |
$self = $dbi->data_source($data_soruce); |
|
351 |
$data_source = $dbi->data_source; |
|
352 |
|
|
353 |
# Sample(SQLite) |
|
354 |
$dbi->data_source(dbi:SQLite:dbname=$database); |
|
355 |
|
|
356 |
# Sample(MySQL); |
|
357 |
$dbi->data_source("dbi:mysql:dbname=$database"); |
|
358 |
|
|
359 |
# Sample(PostgreSQL) |
|
360 |
$dbi->data_source("dbi:Pg:dbname=$database"); |
|
cleanup
|
361 |
|
362 |
=head2 database |
|
363 | ||
364 |
# Set and get database name |
|
365 |
$self = $dbi->database($database); |
|
366 |
$database = $dbi->database; |
|
update document
|
367 | |
cleanup
|
368 |
=head2 dbi_options |
update document
|
369 | |
370 |
# Set and get DBI option |
|
cleanup
|
371 |
$self = $dbi->dbi_options({$options => $value, ...}); |
372 |
$dbi_options = $dbi->dbi_options; |
|
update document
|
373 | |
374 |
# Sample |
|
cleanup
|
375 |
$dbi->dbi_options({PrintError => 0, RaiseError => 1}); |
update document
|
376 | |
cleanup
|
377 |
dbi_options is used when you connect database by using connect. |
update document
|
378 | |
add prepare
|
379 |
=head2 prepare |
380 | ||
381 |
$sth = $dbi->prepare($sql); |
|
382 | ||
383 |
This method is same as DBI::prepare |
|
384 | ||
385 |
=head2 do |
|
386 | ||
387 |
$dbi->do($sql, @bind_values); |
|
388 | ||
389 |
This method is same as DBI::do |
|
390 | ||
update document
|
391 |
=head2 sql_template |
392 | ||
393 |
# Set and get SQL::Template object |
|
394 |
$self = $dbi->sql_template($sql_template); |
|
395 |
$sql_template = $dbi->sql_template; |
|
396 |
|
|
397 |
# Sample |
|
398 |
$dbi->sql_template(DBI::Cutom::SQL::Template->new); |
|
399 | ||
400 |
=head2 filters |
|
401 | ||
402 |
# Set and get filters |
|
403 |
$self = $dbi->filters($filters); |
|
404 |
$filters = $dbi->filters; |
|
first commit
|
405 | |
add test
|
406 |
=head2 bind_filter |
first commit
|
407 | |
update document
|
408 |
# Set and get binding filter |
409 |
$self = $dbi->bind_filter($bind_filter); |
|
410 |
$bind_filter = $dbi->bind_filter |
|
first commit
|
411 | |
update document
|
412 |
# Sample |
413 |
$dbi->bind_filter($self->filters->{default_bind_filter}); |
|
414 |
|
|
first commit
|
415 | |
update document
|
416 |
you can get DBI database handle if you need. |
first commit
|
417 | |
add test
|
418 |
=head2 fetch_filter |
first commit
|
419 | |
update document
|
420 |
# Set and get Fetch filter |
421 |
$self = $dbi->fetch_filter($fetch_filter); |
|
422 |
$fetch_filter = $dbi->fetch_filter; |
|
first commit
|
423 | |
update document
|
424 |
# Sample |
425 |
$dbi->fetch_filter($self->filters->{default_fetch_filter}); |
|
add test
|
426 | |
add no_bind_filters
|
427 |
=head2 no_bind_filters |
428 | ||
429 |
# Set and get no filter keys when binding |
|
430 |
$self = $dbi->no_bind_filters($no_bind_filters); |
|
431 |
$no_bind_filters = $dbi->no_bind_filters; |
|
432 | ||
433 |
=head2 no_fetch_filters |
|
cleanup
|
434 | |
add no_bind_filters
|
435 |
# Set and get no filter keys when fetching |
436 |
$self = $dbi->no_fetch_filters($no_fetch_filters); |
|
437 |
$no_fetch_filters = $dbi->no_fetch_filters; |
|
cleanup
|
438 | |
update document
|
439 |
=head2 result_class |
first commit
|
440 | |
update document
|
441 |
# Set and get resultset class |
442 |
$self = $dbi->result_class($result_class); |
|
443 |
$result_class = $dbi->result_class; |
|
444 |
|
|
445 |
# Sample |
|
446 |
$dbi->result_class('DBI::Custom::Result'); |
|
add test
|
447 | |
update document
|
448 |
=head2 dbh |
add test
|
449 | |
update document
|
450 |
# Get database handle |
451 |
$dbh = $self->dbh; |
|
add test
|
452 | |
update document
|
453 |
=head1 METHODS |
add tests
|
454 | |
update document
|
455 |
=head2 connect |
456 | ||
457 |
# Connect to database |
|
458 |
$self = $dbi->connect; |
|
459 |
|
|
460 |
# Sample |
|
461 |
$dbi = DBI::Custom->new(user => 'taro', password => 'lji8(', |
|
462 |
data_soruce => "dbi:mysql:dbname=$database"); |
|
463 |
$dbi->connect; |
|
add tests
|
464 | |
465 |
=head2 disconnect |
|
466 | ||
update document
|
467 |
# Disconnect database |
468 |
$dbi->disconnect; |
|
469 | ||
470 |
If database is already disconnected, this method do noting. |
|
471 | ||
add tests
|
472 |
=head2 reconnect |
473 | ||
update document
|
474 |
# Reconnect |
475 |
$dbi->reconnect; |
|
476 | ||
477 |
=head2 connected |
|
478 | ||
479 |
# Check connected |
|
480 |
$dbi->connected |
|
481 | ||
482 |
=head2 add_filter |
|
483 | ||
484 |
# Add filter (hash ref or hash can be recieve) |
|
485 |
$self = $dbi->add_filter({$filter_name => $filter, ...}); |
|
486 |
$self = $dbi->add_filter($filetr_name => $filter, ...); |
|
487 |
|
|
488 |
# Sample |
|
489 |
$dbi->add_filter( |
|
490 |
decode_utf8 => sub { |
|
cleanup
|
491 |
my ($key, $value, $table, $column) = @_; |
update document
|
492 |
return Encode::decode('UTF-8', $value); |
493 |
}, |
|
494 |
datetime_to_string => sub { |
|
cleanup
|
495 |
my ($key, $value, $table, $column) = @_; |
update document
|
496 |
return $value->strftime('%Y-%m-%d %H:%M:%S') |
497 |
}, |
|
498 |
default_bind_filter => sub { |
|
cleanup
|
499 |
my ($key, $value, $table, $column) = @_; |
update document
|
500 |
if (ref $value eq 'Time::Piece') { |
cleanup
|
501 |
return $dbi->filters->{datetime_to_string}->($value); |
update document
|
502 |
} |
503 |
else { |
|
cleanup
|
504 |
return $dbi->filters->{decode_utf8}->($value); |
update document
|
505 |
} |
506 |
}, |
|
507 |
|
|
508 |
encode_utf8 => sub { |
|
cleanup
|
509 |
my ($key, $value) = @_; |
update document
|
510 |
return Encode::encode('UTF-8', $value); |
511 |
}, |
|
512 |
string_to_datetime => sub { |
|
cleanup
|
513 |
my ($key, $value) = @_; |
update document
|
514 |
return DateTime::Format::MySQL->parse_datetime($value); |
515 |
}, |
|
516 |
default_fetch_filter => sub { |
|
cleanup
|
517 |
my ($key, $value, $type, $sth, $i) = @_; |
update document
|
518 |
if ($type eq 'DATETIME') { |
cleanup
|
519 |
return $dbi->filters->{string_to_datetime}->($value); |
update document
|
520 |
} |
521 |
else { |
|
cleanup
|
522 |
return $dbi->filters->{encode_utf8}->($value); |
update document
|
523 |
} |
524 |
} |
|
525 |
); |
|
526 | ||
527 |
add_filter add filter to filters |
|
add tests
|
528 | |
cleanup
|
529 |
=head2 create_query |
530 |
|
|
531 |
# Create Query object from SQL template |
|
532 |
my $query = $dbi->create_query($template); |
|
533 |
|
|
534 |
=head2 execute |
|
update document
|
535 | |
536 |
# Parse SQL template and execute SQL |
|
cleanup
|
537 |
$result = $dbi->query($query, $params); |
538 |
$result = $dbi->query($template, $params); # Shorcut |
|
update document
|
539 |
|
540 |
# Sample |
|
541 |
$result = $dbi->query("select * from authors where {= name} && {= age}", |
|
542 |
{author => 'taro', age => 19}); |
|
543 |
|
|
544 |
while (my @row = $result->fetch) { |
|
545 |
# do something |
|
546 |
} |
|
547 | ||
548 |
See also L<DBI::Custom::SQL::Template> |
|
549 | ||
cleanup
|
550 |
=head2 run_tranzaction |
first commit
|
551 | |
update document
|
552 |
# Run tranzaction |
553 |
$dbi->run_tranzaction(sub { |
|
554 |
# do something |
|
555 |
}); |
|
first commit
|
556 | |
update document
|
557 |
If tranzaction is success, commit is execute. |
558 |
If tranzation is died, rollback is execute. |
|
first commit
|
559 | |
cleanup
|
560 | |
561 | ||
add various
|
562 |
=head1 AUTHOR |
first commit
|
563 | |
add various
|
564 |
Yuki Kimoto, C<< <kimoto.yuki at gmail.com> >> |
first commit
|
565 | |
add tests
|
566 |
Github L<http://github.com/yuki-kimoto> |
567 | ||
first commit
|
568 |
=head1 COPYRIGHT & LICENSE |
569 | ||
570 |
Copyright 2009 Yuki Kimoto, all rights reserved. |
|
571 | ||
572 |
This program is free software; you can redistribute it and/or modify it |
|
573 |
under the same terms as Perl itself. |
|
574 | ||
575 | ||
576 |
=cut |
|
577 | ||
578 |
1; # End of DBI::Custom |