NAME

DBIO::Admin - Lightweight schema administration helper for DBIO

VERSION

version 0.900001

SYNOPSIS

use DBIO::Admin;

my $admin = DBIO::Admin->new(
  schema_class => 'MyApp::Schema',
  connect_info => ['dbi:Pg:dbname=myapp', 'user', 'pass', {}],
  mode => 'auto',
);

$admin->deploy;
$admin->upgrade;

See t/92admin_core.t for a runnable example.

DESCRIPTION

Administrative helper used by dbioadmin.

Supported operations:

  • upgrade (native driver upgrade)

  • deploy

  • select, insert, update, delete

SEE ALSO

dbioadmin, DBIO::Schema

MODES

mode controls how upgrade is executed. Both accepted values use the native driver upgrade path; upgrade croaks if the schema/driver provides no native upgrader.

  • auto (default)

  • native

AUTHOR

DBIO & DBIx::Class Authors

COPYRIGHT AND LICENSE

Copyright (C) 2026 DBIO Authors Portions Copyright (C) 2005-2025 DBIx::Class Authors Based on DBIx::Class, heavily modified.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.