SYNOPSIS

  use DBIx::DataSource qw( create_database drop_database );

  create_database( $data_source, $username, $password )
    or warn $DBIx::DataSource::errstr;

  drop_database( $data_source, $username, $password )
    or warn $DBIx::DataSource::errstr;

DESCRIPTION

This module implements create_database and drop_database functions for databases. It aims to provide a common interface to database creation and deletion regardless of the actual database being used.

Currently supported databases are MySQL and PostgreSQL. Assistance adding support for other databases is welcomed and relatively simple - see DBIx::DataSource::Driver.

FUNCTIONS

create_database \s-1DATA_SOURCE\s0 \s-1USERNAME\s0 \s-1PASSWORD\s0

Create the database specified by the given \s-1DBI\s0 data source.

drop_database \s-1DATA_SOURCE\s0

Drop the database specified by the given \s-1DBI\s0 data source.

AUTHOR

Ivan Kohler <[email protected]>

COPYRIGHT

Copyright (c) 2000 Ivan Kohler Copyright (c) 2000 Mail Abuse Prevention System \s-1LLC\s0 All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

BUGS

If \s-1DBI\s0 data sources were objects, these functions would be methods.

RELATED TO DBIx::DataSource…

DBIx::DataSource::Driver, DBIx::DataSource::mysql, DBIx::DataSource::Pg, \s-1DBI\s0