Atsushi Kobayashi > DBIx-Class-StorageReadOnly-0.05 > DBIx::Class::StorageReadOnly

Download:
DBIx-Class-StorageReadOnly-0.05.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.05   Source  

NAME ^

DBIx::Class::StorageReadOnly - Can't insert and update and delete for DBIC

SYNOPSIS ^

    __PACKAGE__->load_components(qw/
        StorageReadOnly
        PK::Auto
        Core
    /);
    
    # create connection and set readonly info
    @connection_info = (
        'dbi:mysql:test',
        'foo',
        'bar',
        {read_only => 1},
    );
    my $schema = $schema_class->connect(@connection_info);
    
    my $user = $schema->resultset('User')->search({name => 'nomaneko'});
    $user->update({name => 'gikoneko'}); # die. Can't update.

DESCRIPTION ^

If you try to write it in read only DB, the exception is generated.

METHOD ^

insert

update

delete

_search_readonly_info

BUGS AND LIMITATIONS ^

No bugs have been reported.

AUTHOR ^

Atsushi Kobayashi <atsushi __at__ mobilefactory.jp>

LICENCE AND COPYRIGHT ^

Copyright (c) 2006, Atsushi Kobayashi <atsushi __at__ mobilefactory.jp>. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.

syntax highlighting: