Description : Deprecated method. Please use db_cmd.pl with a pipeline_url
Description : Deprecated method. Please use $self->db_cmd() instead.
=cut
sub dbconn_2_mysql{# will save you a lot of typing
my($self,$db_conn,$with_db)=@_;
warn"\nDEPRECATED: dbconn_2_mysql() method is no longer supported, please use 'db_cmd.pl -url '.\$self->pipeline_url().' -sql ...' instead, it will be more portable\n\n";
warn"\nDEPRECATED: dbconn_2_mysql() method is no longer supported, please call db_cmd(\$sql_command) instead, it will be more portable\n\n";
my$port=$self->o($db_conn,'-port');
...
...
@@ -262,14 +260,14 @@ sub dbconn_2_mysql { # will save you a lot of typing
=head2 dbconn_2_pgsql
Description : Deprecated method. Please use db_cmd.pl with a pipeline_url
Description : Deprecated method. Please use $self->db_cmd() instead.
=cut
sub dbconn_2_pgsql{# will save you a lot of typing
my($self,$db_conn,$with_db)=@_;
warn"\nDEPRECATED: dbconn_2_pgsql() method is no longer supported, please use 'db_cmd.pl -url '.\$self->pipeline_url().' -sql ...' instead, it will be more portable\n\n";
warn"\nDEPRECATED: dbconn_2_pgsql() method is no longer supported, please call db_cmd(\$sql_command) instead, it will be more portable\n\n";
my$port=$self->o($db_conn,'-port');
...
...
@@ -281,14 +279,14 @@ sub dbconn_2_pgsql { # will save you a lot of typing
=head2 db_connect_command
Description : Deprecated method. Please use db_cmd.pl with a pipeline_url
Description : Deprecated method. Please use $self->db_cmd() instead.
=cut
sub db_connect_command{
my($self,$db_conn)=@_;
warn"\nDEPRECATED: db_connect_command() method is no longer supported, please use 'db_cmd.pl -url '.\$self->pipeline_url().' -sql ...' instead, it will be more portable\n\n";
warn"\nDEPRECATED: db_connect_command() method is no longer supported, please call db_cmd(\$sql_command) instead, it will be more portable\n\n";
my$driver=$self->o($db_conn,'-driver');
...
...
@@ -302,14 +300,14 @@ sub db_connect_command {
=head2 db_execute_command
Description : Deprecated method. Please use db_cmd.pl with a pipeline_url
Description : Deprecated method. Please use $self->db_cmd() instead.
=cut
sub db_execute_command{
my($self,$db_conn,$sql_command,$with_db)=@_;
warn"\nDEPRECATED: db_execute_command() method is no longer supported, please use 'db_cmd.pl -url '.\$self->pipeline_url().' -sql ...' instead, it will be more portable\n\n";
warn"\nDEPRECATED: db_execute_command() method is no longer supported, please call db_cmd(\$sql_command) instead, it will be more portable\n\n";
$with_db=1unless(defined($with_db));
...
...
@@ -356,6 +354,22 @@ sub pipeline_url {
}
=head2 db_cmd
Description : Returns a db_cmd.pl-based command line that should execute by any supported driver (mysql/pgsql/sqlite)
@{$self->SUPER::pipeline_create_commands},# inheriting database and hive tables' creation
# additional tables needed for long multiplication pipeline's operation:
'db_cmd.pl -url '.$self->pipeline_url().' -sql '
."'CREATE TABLE final_result (a_multiplier char(40) NOT NULL, b_multiplier char(40) NOT NULL, result char(80) NOT NULL, PRIMARY KEY (a_multiplier, b_multiplier))'",
$self->db_cmd('CREATE TABLE final_result (a_multiplier char(40) NOT NULL, b_multiplier char(40) NOT NULL, result char(80) NOT NULL, PRIMARY KEY (a_multiplier, b_multiplier))'),
@{$self->SUPER::pipeline_create_commands},# inheriting database and hive tables' creation
# additional tables needed for long multiplication pipeline's operation:
'db_cmd.pl -url '.$self->pipeline_url().' -sql '
."'CREATE TABLE final_result (a_multiplier char(40) NOT NULL, b_multiplier char(40) NOT NULL, result char(80) NOT NULL, PRIMARY KEY (a_multiplier, b_multiplier))'",
$self->db_cmd('CREATE TABLE final_result (a_multiplier char(40) NOT NULL, b_multiplier char(40) NOT NULL, result char(80) NOT NULL, PRIMARY KEY (a_multiplier, b_multiplier))'),