NAME
Odoo::Database::Manager
VERSION
version 0.03
SYNOPSIS
use v5.20;
use Odoo::Database::Manager;
my $dbman = Odoo::Database::Manager->new(
url => 'http://localhost:8069',
password => 'manager_admin_password');
say "Current databases:";
say for $dbman->list_databases;
say "Creating new database foo:";
$dbman->createdb(dbname => 'foo', lang => 'en_GB', admin_password => 'admin');
say "Dropping foo again:";
$dbman->dropdb('foo');
DESCRIPTION
Create and drop Odoo databases from your Perl scripts
NAME
Odoo::Database::Manager - database management for Odoo (EXPERIMENTAL)
STATUS
EXPERIMENTAL
METHODS
list_databases
Return list of Odoo databases.
my @dbs = $dbman->list_databases;
createdb
Create a database. No meaningful return value as yet.
$dbman->createdb(dbname => 'my_db', lang => 'en_GB', admin_password => 'password');
dropdb
Drop the database. No meaningful return value as yet.
$dbman->dropdb('my_db');
COPYRIGHT AND LICENSE
Copyright (C) 2016 Nick Booker
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
AUTHOR
Nicholas Booker <nmb+cpan@nickbooker.uk>
COPYRIGHT AND LICENSE
This software is copyright (c) 2016 by Nicholas Booker.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.