NAME

OpusVL::SysParams::Schema::ResultSet::SysInfo

VERSION

version 0.20

SYNOPSIS

This is the ResultSet that actually stores and gets results from DBIx::Class.

$schema->resultset('SysInfo')->set('test.param', 1);
$schema->resultset('SysInfo')->get('test.param');
$schema->resultset('SysInfo')->del('test.param');

This is used by the OpusVL::SysParams object.

METHODS

get

Get a system parameter. The key name will only be meaningful if the same string has already been provided to "set" at some point in the past, or created via the OpusVL::AppKitX::SysParams interface.

set

$name
$value
$data_type

Set a system parameter. The key name is simply a string. It's suggested you use some kind of schema like 'system.key' to prevent name clashes with other unoriginal programmers.

The value and data type should correspond. A guess will be made, if you don't provide the data type. Any value that can be JSON-encoded should work (i.e. no CODE refs), but see OpusVL::SysParams::Schema::Result::SysInfo for the list of options for data type, and hence value type.

del

Delete a system parameter.

key_names

Returns the keys of the system parameters.

ordered

Returns a resultset with an ordering applied.

AUTHOR

OpusVL - www.opusvl.com

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 - 2016 by OpusVL - www.opusvl.com.

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