line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Eidolon::Driver::DB::MySQL; |
2
|
|
|
|
|
|
|
# ============================================================================== |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
# Eidolon |
5
|
|
|
|
|
|
|
# Copyright (c) 2009, Atma 7 |
6
|
|
|
|
|
|
|
# --- |
7
|
|
|
|
|
|
|
# Eidolon/Driver/DB/MySQL - MySQL DBMS driver |
8
|
|
|
|
|
|
|
# |
9
|
|
|
|
|
|
|
# ============================================================================== |
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
1
|
|
69144
|
use base qw/Eidolon::Driver::DB/; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
94
|
|
12
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
26
|
|
13
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
124
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
our $VERSION = "0.01"; # 2009-02-03 00:50:31 |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------ |
18
|
|
|
|
|
|
|
# \% new() |
19
|
|
|
|
|
|
|
# constructor |
20
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------ |
21
|
|
|
|
|
|
|
sub new |
22
|
|
|
|
|
|
|
{ |
23
|
0
|
|
|
0
|
1
|
|
my ($class, $db, $user, $password, $host, $port, $cfg, $self); |
24
|
|
|
|
|
|
|
|
25
|
0
|
|
|
|
|
|
($class, $db, $user, $password, $host, $port, $cfg) = @_; |
26
|
|
|
|
|
|
|
|
27
|
0
|
|
0
|
|
|
|
$self = $class->SUPER::new |
|
|
|
0
|
|
|
|
|
28
|
|
|
|
|
|
|
( |
29
|
|
|
|
|
|
|
"mysql", $db, $user, $password, $host || "localhost", $port || "3306", $cfg |
30
|
|
|
|
|
|
|
); |
31
|
|
|
|
|
|
|
|
32
|
0
|
|
|
|
|
|
return $self; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
__END__ |