TASKS(3) User Contributed Perl Documentation TASKS(3)NAME
TASKS - Want to help? These things need doing...
Increase test coverage
More tests need to be added to test the codes that not urrently being tested.
It's pretty poor right now:
http://pjcj.sytes.net/cover/latest/DBI-1.52/coverage.html
Start with improving the subroutine coverage
http://pjcj.sytes.net/cover/latest/DBI-1.52/blib-lib-DBI-pm--subroutine.html
Test the proxy
The current t/80proxy.t is isolated from the rest of the test suite so actually tests very little, and what it does test is duplicating
other tests.
Ideally the proxy should be tested in the same way as DBI::PurePerl. In other words, by creating wrappers test files for each test file
that set $ENV{DBI_AUTOPROXY} and run the original test. They'll also need to start and stop a proxy server.
Fixing bugs
The official bug list is here:
http://rt.cpan.org/NoAuth/Bugs.html?Dist=DBI
Naturally I'll offer direction and guidance on any you want to tackle. I've also got a few that could be entered into rt.cpan.org.
Others
General:
Protect trace_msg from SIGPIPE?
prepare(...,{ Err=>my $isolated_err, ...})
Add trace module that just records the last N trace messages into an array
and prepends them to any error message to provide context for the error.
Document DBI_PROFILE_FLOCK and LockFile attrib in DBI::ProfileData and DBI::ProfileDumper
Performance:
Move _new_sth to DBI::db::_new_sth (leave alias) and implement in C
Or call _new_child and move to DBI::common?
Implement FETCH_many() in C
Add high-res dbi_time for windows - via Time::HiRes glob replace dbi_time()?
perl v5.12.1 2009-06-08 TASKS(3)
Check Out this Related Man Page
Class::DBI::Test::SQLite(3pm) User Contributed Perl Documentation Class::DBI::Test::SQLite(3pm)NAME
Class::DBI::Test::SQLite - Base class for Class::DBI tests
SYNOPSIS
use base 'Class::DBI::Test::SQLite';
__PACKAGE__->set_table('test');
__PACKAGE__->columns(All => qw/id name film salary/);
sub create_sql {
return q{
id INTEGER PRIMARY KEY,
name CHAR(40),
film VARCHAR(255),
salary INT
}
}
DESCRIPTION
This provides a simple base class for Class::DBI tests using SQLite. Each class for the test should inherit from this, provide a
create_sql() method which returns a string representing the SQL used to create the table for the class, and then call set_table() to create
the table, and tie it to the class.
METHODS
set_table
__PACKAGE__->set_table('test');
This combines creating the table with the normal Class::DBI table() call.
create_sql (abstract)
sub create_sql {
return q{
id INTEGER PRIMARY KEY,
name CHAR(40),
film VARCHAR(255),
salary INT
}
}
This should return, as a text string, the schema for the table represented by this class.
perl v5.12.4 2005-05-24 Class::DBI::Test::SQLite(3pm)
Hi All,
i have a file test.txt as shown below,
1,test,test111
2,rest,rest222
i want to replace the commas by tab delimiter..,
it should be like,
1 test test111
2 rest rest222
i tried the following code,
sed 's/,/\\t/g' test.txt >> ouptut.txt (9 Replies)
Hello EveryOne,
I have a file "test" with following entry.
this is test prtestad yes this is test .
Above i have colored pr and ad .
Actually requirement is to replace all words starts with pr and ends with ad should be replaced by word prahlad .
Means after changes... (9 Replies)
Hi All,
I installed DBI module in a non INC location and using it in my script via "use lib".
But it throw the below error at the "use DBI" step.
Please help
Usage: DBI::_install_method(dbi_class, meth_name, file, attribs=Nullsv) at /xx/xxx/xxxxx/xxxxx/oracle/lib/DBI.pm/oracle/lib/DBI.pm line... (2 Replies)
Hello All,
This Poll/thread is for views of all forum user regarding following point:
There are many people in this forum who are actually not actually working on *NIX(admin or real scripting/automation part) but they are/have learnt scripting and trying to help/guide/advice/sharing... (11 Replies)