GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  DBIX::DATASOURCE (3)

.ds Aq ’

NAME

DBIx::DataSource - Database-independant create and drop functions

CONTENTS

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 DATA_SOURCE USERNAME PASSWORD Create the database specified by the given DBI data source.
drop_database DATA_SOURCE Drop the database specified by the given DBI data source.

AUTHOR

Ivan Kohler <ivan-dbix-datasource@420.am>

COPYRIGHT

Copyright (c) 2000 Ivan Kohler Copyright (c) 2000 Mail Abuse Prevention System LLC 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 DBI data sources were objects, these functions would be methods.

SEE ALSO

DBIx::DataSource::Driver, DBIx::DataSource::mysql, DBIx::DataSource::Pg, DBI
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 DATASOURCE (3) 2000-09-25

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.