DBIx-Custom / lib / DBI / Custom.pm /
Newer Older
522 lines | 12.021kb
first commit
yuki-kimoto authored on 2009-10-13
1
package DBI::Custom;
2
use Object::Simple;
add test
yuki-kimoto authored on 2009-10-16
3

            
4
our $VERSION = '0.0101';
5

            
6
use Carp 'croak';
add some method
yuki-kimoto authored on 2009-10-14
7
use DBI;
first commit
yuki-kimoto authored on 2009-10-13
8

            
cleanup
yuki-kimoto authored on 2009-10-15
9
# Model
10
sub model : ClassAttr { auto_build => \&_inherit_model }
first commit
yuki-kimoto authored on 2009-10-13
11

            
cleanup
yuki-kimoto authored on 2009-10-15
12
# Inherit super class model
13
sub _inherit_model {
add test
yuki-kimoto authored on 2009-10-16
14
    my $class = shift;
cleanup
yuki-kimoto authored on 2009-10-15
15
    my $super = do {
16
        no strict 'refs';
17
        ${"${class}::ISA"}[0];
18
    };
19
    my $model = eval{$super->can('model')}
20
                         ? $super->model->clone
21
                         : $class->Object::Simple::new;
cleanup
yuki-kimoto authored on 2009-10-14
22
    
23
    $class->model($model);
first commit
yuki-kimoto authored on 2009-10-13
24
}
25

            
cleanup
yuki-kimoto authored on 2009-10-15
26
# New
27
sub new {
28
    my $self = shift->Object::Simple::new(@_);
29
    my $class = ref $self;
30
    return bless {%{$class->model->clone}, %{$self}}, $class;
first commit
yuki-kimoto authored on 2009-10-13
31
}
32

            
cleanup
yuki-kimoto authored on 2009-10-15
33
# Initialize modle
34
sub initialize_model {
35
    my ($class, $callback) = @_;
first commit
yuki-kimoto authored on 2009-10-13
36
    
cleanup
yuki-kimoto authored on 2009-10-15
37
    # Callback to initialize model
38
    $callback->($class->model);
first commit
yuki-kimoto authored on 2009-10-13
39
}
40

            
cleanup
yuki-kimoto authored on 2009-10-15
41
# Clone
42
sub clone {
cleanup
yuki-kimoto authored on 2009-10-14
43
    my $self = shift;
cleanup
yuki-kimoto authored on 2009-10-15
44
    my $new = $self->Object::Simple::new;
add test
yuki-kimoto authored on 2009-10-16
45
    $new->connect_info(%{$self->connect_info || {}});
cleanup
yuki-kimoto authored on 2009-10-15
46
    $new->filters(%{$self->filters || {}});
add test
yuki-kimoto authored on 2009-10-16
47
    $new->bind_filter($self->bind_filter);
48
    $new->fetch_filter($self->fetch_filter);
add various things
yuki-kimoto authored on 2009-10-17
49
    $new->result_class($self->result_class);
cleanup
yuki-kimoto authored on 2009-10-14
50
}
51

            
cleanup
yuki-kimoto authored on 2009-10-15
52
# Attribute
53
sub connect_info       : Attr { type => 'hash',  auto_build => sub { shift->connect_info({}) } }
cleanup
yuki-kimoto authored on 2009-10-15
54

            
add tests
yuki-kimoto authored on 2009-10-18
55
sub bind_filter  : Attr {}
add test
yuki-kimoto authored on 2009-10-16
56
sub fetch_filter : Attr {}
cleanup
yuki-kimoto authored on 2009-10-15
57

            
add test
yuki-kimoto authored on 2009-10-16
58
sub filters : Attr { type => 'hash', deref => 1, auto_build => sub { shift->filters({}) } }
cleanup
yuki-kimoto authored on 2009-10-15
59
sub add_filter { shift->filters(@_) }
60

            
add tests
yuki-kimoto authored on 2009-10-18
61
sub result_class : Attr { auto_build => sub { shift->result_class('DBI::Custom::Result') }}
add tests
yuki-kimoto authored on 2009-10-18
62
sub dbh          : Attr {}
add test
yuki-kimoto authored on 2009-10-17
63
sub sql_template : Attr { auto_build => sub { shift->sql_template(DBI::Custom::SQLTemplate->new) } }
add tests
yuki-kimoto authored on 2009-10-18
64
sub auto_commit  : Attr {}
add test
yuki-kimoto authored on 2009-10-16
65

            
add various things
yuki-kimoto authored on 2009-10-17
66

            
add test
yuki-kimoto authored on 2009-10-16
67
our %VALID_CONNECT_INFO = map {$_ => 1} qw/data_source user password options/;
cleanup
yuki-kimoto authored on 2009-10-14
68

            
add various things
yuki-kimoto authored on 2009-10-17
69
# Connect
add some method
yuki-kimoto authored on 2009-10-14
70
sub connect {
71
    my $self = shift;
72
    my $connect_info = $self->connect_info;
73
    
add test
yuki-kimoto authored on 2009-10-16
74
    foreach my $key (keys %{$self->connect_info}) {
add test
yuki-kimoto authored on 2009-10-17
75
        croak("connect_info '$key' is invald")
76
          unless $VALID_CONNECT_INFO{$key};
add test
yuki-kimoto authored on 2009-10-16
77
    }
78
    
add some method
yuki-kimoto authored on 2009-10-14
79
    my $dbh = DBI->connect(
add test
yuki-kimoto authored on 2009-10-16
80
        $connect_info->{data_source},
add some method
yuki-kimoto authored on 2009-10-14
81
        $connect_info->{user},
82
        $connect_info->{password},
83
        {
84
            RaiseError => 1,
85
            PrintError => 0,
86
            AutoCommit => 1,
87
            %{$connect_info->{options} || {} }
88
        }
89
    );
90
    
add tests
yuki-kimoto authored on 2009-10-18
91
    $self->auto_commit($dbh->{AutoCommit});
add some method
yuki-kimoto authored on 2009-10-14
92
    $self->dbh($dbh);
93
}
first commit
yuki-kimoto authored on 2009-10-13
94

            
add tests
yuki-kimoto authored on 2009-10-18
95
sub DESTROY {
96
    my $self = shift;
add tests
yuki-kimoto authored on 2009-10-18
97
    $self->disconnect if $self->connected;
add tests
yuki-kimoto authored on 2009-10-18
98
}
99

            
add various things
yuki-kimoto authored on 2009-10-17
100
# Is connected?
101
sub connected {
102
    my $self = shift;
add tests
yuki-kimoto authored on 2009-10-18
103
    return exists $self->{dbh} && eval {$self->{dbh}->can('prepare')};
add various things
yuki-kimoto authored on 2009-10-17
104
}
105

            
106
# Disconnect
107
sub disconnect {
108
    my $self = shift;
add tests
yuki-kimoto authored on 2009-10-18
109
    if ($self->connected) {
add various things
yuki-kimoto authored on 2009-10-17
110
        $self->dbh->disconnect;
111
        delete $self->{dbh};
112
    }
113
}
114

            
115
# Reconnect
116
sub reconnect {
117
    my $self = shift;
add tests
yuki-kimoto authored on 2009-10-18
118
    $self->disconnect if $self->connected;
add various things
yuki-kimoto authored on 2009-10-17
119
    $self->connect;
120
}
121

            
add tests
yuki-kimoto authored on 2009-10-18
122
# Commit
123
sub commit {
124
    my $self = shift;
125
    return $self->dbh->commit;
126
}
127

            
128
# Rollback
129
sub rollback {
130
    my $self = shift;
131
    return $self->dbh->rollback;
132
}
133

            
add tests
yuki-kimoto authored on 2009-10-18
134
sub dbh_option {
135
    my $self = shift;
136
    croak("Not connected") unless $self->connected;
137
    my $dbh = $self->dbh;
138
    if (@_ > 1) {
139
        $dbh->{$_[0]} = $_[1];
140
        return $self;
141
    }
142
    return $dbh->{$_[0]}
143
}
144

            
add various things
yuki-kimoto authored on 2009-10-17
145

            
add test
yuki-kimoto authored on 2009-10-17
146
sub create_sql {
147
    my $self = shift;
148
    
149
    my ($sql, @bind) = $self->sql_template->create_sql(@_);
150
    
151
    return ($sql, @bind);
152
}
153

            
add some method
yuki-kimoto authored on 2009-10-14
154
sub query {
try varioud way
yuki-kimoto authored on 2009-10-17
155
    my ($self, $template, $values, $filter)  = @_;
156
    
add tests
yuki-kimoto authored on 2009-10-18
157
    my $sth_options;
158
    
159
    # Rearrange when argumets is hash referecne 
160
    if (ref $template eq 'HASH') {
161
        my $args = $template;
162
        ($template, $values, $filter, $sth_options)
163
          = @{$args}{qw/template values filter sth_options/};
164
    }
165
    
try varioud way
yuki-kimoto authored on 2009-10-17
166
    $filter ||= $self->bind_filter;
167
    
add various things
yuki-kimoto authored on 2009-10-17
168
    my ($sql, @bind) = $self->create_sql($template, $values, $filter);
add tests
yuki-kimoto authored on 2009-10-18
169
    
170
    $self->connect unless $self->connected;
171
    
add various things
yuki-kimoto authored on 2009-10-17
172
    my $sth = $self->dbh->prepare($sql);
add tests
yuki-kimoto authored on 2009-10-18
173
    
174
    if ($sth_options) {
175
        foreach my $key (keys %$sth_options) {
176
            $sth->{$key} = $sth_options->{$key};
177
        }
178
    }
179
    
add tests
yuki-kimoto authored on 2009-10-18
180
    my $ret_val = $sth->execute(@bind);
add various things
yuki-kimoto authored on 2009-10-17
181
    
182
    # Select
183
    if ($sth->{NUM_OF_FIELDS}) {
184
        my $result_class = $self->result_class;
add various
yuki-kimoto authored on 2009-10-18
185
        my $result = $result_class->new({
186
            sth => $sth,
187
            fetch_filter => $self->fetch_filter
188
        });
add various things
yuki-kimoto authored on 2009-10-17
189
        return $result;
190
    }
add tests
yuki-kimoto authored on 2009-10-18
191
    return $ret_val;
add test
yuki-kimoto authored on 2009-10-17
192
}
193

            
add tests
yuki-kimoto authored on 2009-10-18
194

            
add test
yuki-kimoto authored on 2009-10-17
195
sub query_raw_sql {
196
    my ($self, $sql, @bind) = @_;
add tests
yuki-kimoto authored on 2009-10-18
197
    
add various
yuki-kimoto authored on 2009-10-18
198
    $self->connect unless $self->connected;
add various things
yuki-kimoto authored on 2009-10-17
199
    my $sth = $self->dbh->prepare($sql);
200
    $sth->execute(@bind);
201
    return $sth;
add test
yuki-kimoto authored on 2009-10-17
202
}
203

            
add tests
yuki-kimoto authored on 2009-10-18
204

            
add various things
yuki-kimoto authored on 2009-10-17
205

            
add test
yuki-kimoto authored on 2009-10-17
206
Object::Simple->build_class;
207

            
add various things
yuki-kimoto authored on 2009-10-17
208
package DBI::Custom::Result;
209
use Object::Simple;
210

            
add various
yuki-kimoto authored on 2009-10-18
211
sub sth : Attr {}
212
sub fetch_filter {}
add various things
yuki-kimoto authored on 2009-10-17
213

            
214
sub fetchrow_arrayref {
215
    my $self = shift;
add various
yuki-kimoto authored on 2009-10-18
216
    my $sth = $self->{sth};
217
    
218
    my $array = $sth->fetchrow_arrayref;
219
    
220
    return $array unless $array;
add various things
yuki-kimoto authored on 2009-10-17
221
    
add various
yuki-kimoto authored on 2009-10-18
222
    my $keys = $sth->{NAME_lc};
add various things
yuki-kimoto authored on 2009-10-17
223
    
add various
yuki-kimoto authored on 2009-10-18
224
    for (my $i = 0; $i < @$keys; $i++) {
225
        $array->[$i] = $self->fetch_filter($keys->[$i], $array->[$i]);
226
    }
227
    return $array;
add various things
yuki-kimoto authored on 2009-10-17
228
}
229

            
add various
yuki-kimoto authored on 2009-10-18
230
sub fetchrow_array {
231
    my $self = shift;
232
    my $sth = $self->{sth};
233
    
234
    my @array = $sth->fetchrow_array;
235
    
236
    return unless @array;
237
    
238
    my $keys = $sth->{NAME_lc};
239
    
240
    for (my $i = 0; $i < @$keys; $i++) {
241
        $array[$i] = $self->fetch_filter($keys->[$i], $array[$i]);
242
    }
243
    return @array;
244
}
add various things
yuki-kimoto authored on 2009-10-17
245

            
add various
yuki-kimoto authored on 2009-10-18
246
sub fetchrow_hashref {
247
    my $self = shift;
248
    my $sth = $self->{sth};
249
    
250
    my $hash = $sth->fetchrow_hashref;
251
    
252
    return unless $hash;
253
    
254
    foreach my $key (keys %$hash) {
255
        $hash->{$key} = $self->fetch_filter($key, $hash->{$key});
256
    }
257
    return $hash;
258
}
add various things
yuki-kimoto authored on 2009-10-17
259

            
260
sub err    { shift->sth->err }
261
sub errstr { shift->sth->errstr }
262
sub finish { shift->sth->finish }
263
sub rows   { shift->sth->rows }
264
sub state  { shift->sth->state }
265

            
266
Object::Simple->build_class;
267

            
268

            
add test
yuki-kimoto authored on 2009-10-17
269
package DBI::Custom::SQLTemplate;
270
use Object::Simple;
try various way
yuki-kimoto authored on 2009-10-17
271
use Carp 'croak';
add test
yuki-kimoto authored on 2009-10-17
272

            
try varioud way
yuki-kimoto authored on 2009-10-17
273
### Attributes;
try various way
yuki-kimoto authored on 2009-10-17
274
sub tag_start   : Attr { default => '{' }
275
sub tag_end     : Attr { default => '}' }
276
sub template    : Attr {};
277
sub tree        : Attr { auto_build => sub { shift->tree([]) } }
278
sub bind_filter : Attr {}
279
sub values      : Attr {}
280
sub upper_case  : Attr {default => 0}
try varioud way
yuki-kimoto authored on 2009-10-17
281

            
add test
yuki-kimoto authored on 2009-10-17
282
sub create_sql {
try varioud way
yuki-kimoto authored on 2009-10-17
283
    my ($self, $template, $values, $filter)  = @_;
284
    
try various way
yuki-kimoto authored on 2009-10-17
285
    $filter ||= $self->bind_filter;
286
    
try varioud way
yuki-kimoto authored on 2009-10-17
287
    $self->parse($template);
288
    
try various way
yuki-kimoto authored on 2009-10-17
289
    my ($sql, @bind) = $self->build_sql({bind_filter => $filter, values => $values});
try varioud way
yuki-kimoto authored on 2009-10-17
290
    
291
    return ($sql, @bind);
292
}
293

            
294
our $TAG_SYNTAX = <<'EOS';
295
[tag]            [expand]
296
{= name}         name = ?
try various way
yuki-kimoto authored on 2009-10-17
297
{<> name}        name <> ?
try varioud way
yuki-kimoto authored on 2009-10-17
298

            
299
{< name}         name < ?
300
{> name}         name > ?
301
{>= name}        name >= ?
302
{<= name}        name <= ?
303

            
304
{like name}      name like ?
305
{in name}        name in [?, ?, ..]
306

            
307
{insert_values}  (key1, key2, key3) values (?, ?, ?)
308
{update_values}  set key1 = ?, key2 = ?, key3 = ?
309
EOS
310

            
try various way
yuki-kimoto authored on 2009-10-17
311
our %VALID_TAG_NAMES = map {$_ => 1} qw/= <> < > >= <= like in insert_values update_set/;
try varioud way
yuki-kimoto authored on 2009-10-17
312
sub parse {
313
    my ($self, $template) = @_;
314
    $self->template($template);
315
    
316
    # Clean start;
317
    delete $self->{tree};
318
    
319
    # Tags
320
    my $tag_start = quotemeta $self->tag_start;
321
    my $tag_end   = quotemeta $self->tag_end;
first commit
yuki-kimoto authored on 2009-10-13
322
    
try varioud way
yuki-kimoto authored on 2009-10-17
323
    # Tokenize
324
    my $state = 'text';
325
    
326
    # Save original template
327
    my $original_template = $template;
328
    
329
    # Text
330
    while ($template =~ s/([^$tag_start]*?)$tag_start([^$tag_end].*?)$tag_end//sm) {
try various way
yuki-kimoto authored on 2009-10-17
331
        my $text = $1;
try varioud way
yuki-kimoto authored on 2009-10-17
332
        my $tag  = $2;
333
        
try various way
yuki-kimoto authored on 2009-10-17
334
        push @{$self->tree}, {type => 'text', args => [$text]} if $text;
try varioud way
yuki-kimoto authored on 2009-10-17
335
        
336
        if ($tag) {
337
            
try various way
yuki-kimoto authored on 2009-10-17
338
            my ($tag_name, @args) = split /\s+/, $tag;
try varioud way
yuki-kimoto authored on 2009-10-17
339
            
try various way
yuki-kimoto authored on 2009-10-17
340
            $tag ||= '';
341
            croak("Tag '$tag' in SQL template is invalid.\n\n" .
342
                  "SQL template tag syntax\n$TAG_SYNTAX\n\n" .
343
                  "Your SQL template is \n$original_template\n\n")
344
              unless $VALID_TAG_NAMES{$tag_name};
try varioud way
yuki-kimoto authored on 2009-10-17
345
            
try various way
yuki-kimoto authored on 2009-10-17
346
            push @{$self->tree}, {type => 'tag', tag_name => $tag_name, args => [@args]};
try varioud way
yuki-kimoto authored on 2009-10-17
347
        }
348
    }
349
    
try various way
yuki-kimoto authored on 2009-10-17
350
    push @{$self->tree}, {type => 'text', args => [$template]} if $template;
first commit
yuki-kimoto authored on 2009-10-13
351
}
352

            
try various way
yuki-kimoto authored on 2009-10-17
353
our %EXPAND_PLACE_HOLDER = map {$_ => 1} qw/= <> < > >= <= like/;
354
sub build_sql {
355
    my ($self, $args) = @_;
356
    
357
    my $tree        = $args->{tree} || $self->tree;
358
    my $bind_filter = $args->{bind_filter} || $self->bind_filter;
359
    my $values      = exists $args->{values} ? $args->{values} : $self->values;
360
    
361
    my @bind_values;
362
    my $sql = '';
363
    foreach my $node (@$tree) {
364
        my $type     = $node->{type};
365
        my $tag_name = $node->{tag_name};
366
        my $args     = $node->{args};
367
        
368
        if ($type eq 'text') {
369
            # Join text
370
            $sql .= $args->[0];
371
        }
372
        elsif ($type eq 'tag') {
373
            if ($EXPAND_PLACE_HOLDER{$tag_name}) {
374
                my $key = $args->[0];
375
                
376
                # Filter Value
377
                if ($bind_filter) {
try various way
yuki-kimoto authored on 2009-10-17
378
                    push @bind_values, scalar $bind_filter->($key, $values->{$key});
try various way
yuki-kimoto authored on 2009-10-17
379
                }
380
                else {
381
                    push @bind_values, $values->{$key};
382
                }
383
                $tag_name = uc $tag_name if $self->upper_case;
384
                my $place_holder = "$key $tag_name ?";
385
                $sql .= $place_holder;
386
            }
try various way
yuki-kimoto authored on 2009-10-17
387
            elsif ($tag_name eq 'insert_values') {
388
                my $statement_keys          = '(';
389
                my $statement_place_holders = '(';
390
                
391
                $values = $values->{insert_values};
392
                
393
                foreach my $key (sort keys %$values) {
394
                    if ($bind_filter) {
395
                        push @bind_values, scalar $bind_filter->($key, $values->{$key});
396
                    }
397
                    else {
398
                        push @bind_values, $values->{$key};
399
                    }
400
                    
401
                    $statement_keys          .= "$key, ";
402
                    $statement_place_holders .= "?, ";
403
                }
404
                
405
                $statement_keys =~ s/, $//;
406
                $statement_keys .= ')';
407
                
408
                $statement_place_holders =~ s/, $//;
409
                $statement_place_holders .= ')';
410
                
411
                $sql .= "$statement_keys values $statement_place_holders";
412
            }
413
            elsif ($tag_name eq 'update_set') {
414
                my $statement          = 'set ';
415
                
416
                $values = $values->{update_set};
417
                
418
                foreach my $key (sort keys %$values) {
419
                    if ($bind_filter) {
420
                        push @bind_values, scalar $bind_filter->($key, $values->{$key});
421
                    }
422
                    else {
423
                        push @bind_values, $values->{$key};
424
                    }
425
                    
426
                    $statement          .= "$key = ?, ";
427
                }
428
                
429
                $statement =~ s/, $//;
430
                
431
                $sql .= $statement;
432
            }
try various way
yuki-kimoto authored on 2009-10-17
433
        }
434
    }
435
    $sql .= ';' unless $sql =~ /;$/;
436
    return ($sql, @bind_values);
437
}
try varioud way
yuki-kimoto authored on 2009-10-17
438

            
439

            
first commit
yuki-kimoto authored on 2009-10-13
440
Object::Simple->build_class;
441

            
add various things
yuki-kimoto authored on 2009-10-17
442
package DBI::Custom;
443
1;
444

            
first commit
yuki-kimoto authored on 2009-10-13
445
=head1 NAME
446

            
add test
yuki-kimoto authored on 2009-10-17
447
DBI::Custom - Customizable simple DBI
first commit
yuki-kimoto authored on 2009-10-13
448

            
449
=head1 VERSION
450

            
add test
yuki-kimoto authored on 2009-10-16
451
Version 0.0101
first commit
yuki-kimoto authored on 2009-10-13
452

            
453
=cut
454

            
455
=head1 SYNOPSIS
456

            
add test
yuki-kimoto authored on 2009-10-16
457
  my $dbi = DBI::Custom->new;
first commit
yuki-kimoto authored on 2009-10-13
458

            
add test
yuki-kimoto authored on 2009-10-16
459
=head1 METHODS
first commit
yuki-kimoto authored on 2009-10-13
460

            
add test
yuki-kimoto authored on 2009-10-16
461
=head2 add_filter
first commit
yuki-kimoto authored on 2009-10-13
462

            
add test
yuki-kimoto authored on 2009-10-16
463
=head2 bind_filter
first commit
yuki-kimoto authored on 2009-10-13
464

            
add test
yuki-kimoto authored on 2009-10-16
465
=head2 clone
first commit
yuki-kimoto authored on 2009-10-13
466

            
add test
yuki-kimoto authored on 2009-10-16
467
=head2 connect
first commit
yuki-kimoto authored on 2009-10-13
468

            
add test
yuki-kimoto authored on 2009-10-16
469
=head2 connect_info
first commit
yuki-kimoto authored on 2009-10-13
470

            
add test
yuki-kimoto authored on 2009-10-16
471
=head2 dbh
first commit
yuki-kimoto authored on 2009-10-13
472

            
add test
yuki-kimoto authored on 2009-10-16
473
=head2 fetch_filter
first commit
yuki-kimoto authored on 2009-10-13
474

            
add test
yuki-kimoto authored on 2009-10-16
475
=head2 filters
first commit
yuki-kimoto authored on 2009-10-13
476

            
add test
yuki-kimoto authored on 2009-10-16
477
=head2 initialize_model
first commit
yuki-kimoto authored on 2009-10-13
478

            
add test
yuki-kimoto authored on 2009-10-16
479
=head2 model
first commit
yuki-kimoto authored on 2009-10-13
480

            
add test
yuki-kimoto authored on 2009-10-16
481
=head2 new
482

            
483
=head2 query
first commit
yuki-kimoto authored on 2009-10-13
484

            
add test
yuki-kimoto authored on 2009-10-17
485
=head2 create_sql
486

            
487
=head2 query_raw_sql
488

            
489
=head2 sql_template
490

            
add tests
yuki-kimoto authored on 2009-10-18
491
=head2 auto_commit
492

            
493
=head2 connected
494

            
495
=head2 dbh_option
496

            
497
=head2 disconnect
498

            
499
=head2 reconnect
500

            
501
=head2 result_class
502

            
add various
yuki-kimoto authored on 2009-10-18
503
=head2 commit
first commit
yuki-kimoto authored on 2009-10-13
504

            
add various
yuki-kimoto authored on 2009-10-18
505
=head2 rollback
first commit
yuki-kimoto authored on 2009-10-13
506

            
507

            
add various
yuki-kimoto authored on 2009-10-18
508
=head1 AUTHOR
first commit
yuki-kimoto authored on 2009-10-13
509

            
add various
yuki-kimoto authored on 2009-10-18
510
Yuki Kimoto, C<< <kimoto.yuki at gmail.com> >>
first commit
yuki-kimoto authored on 2009-10-13
511

            
512
=head1 COPYRIGHT & LICENSE
513

            
514
Copyright 2009 Yuki Kimoto, all rights reserved.
515

            
516
This program is free software; you can redistribute it and/or modify it
517
under the same terms as Perl itself.
518

            
519

            
520
=cut
521

            
522
1; # End of DBI::Custom