DBIx::MyServer::DBI - Perl server that speaks the MySQL protocol and then executes the received queries via DBI
Please see the examples/dbi.pl file for a working demonstration
This module inherits from DBIx::MyServer and allows one to create a "fake" MySQL server that accepts queries, which are then forwarded to another server via DBI. The query results are then sent back to the client.
This module serves as an example on how to create useful DBIx::MyServer servers and can be used to make any DBI data source available to applications which can connect to or import from a MySQL data source, which includes all ODBC-enabled applications.
Please note that if you fork() children, you will need an individual DBI handle for each one. You can obtain such a handle by calling clone() on the parent DBI handle. A new database connection will probably be established for each clone.
clone()
To install DBIx::MyServer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::MyServer
CPAN shell
perl -MCPAN -e shell install DBIx::MyServer
For more information on module installation, please visit the detailed CPAN module installation guide.