NAME
OpenInteract2::Setup::CheckDatasources - Ensure datasource configurations are correct
SYNOPSIS
my
$setup
= OpenInteract2::Setup->new(
'check datasources'
);
$setup
->run();
DESCRIPTION
This setup action does the following:
Datasource Manager
Brings in the datasource manager class (specified in server configuration key 'datasource_config.manager')
Assigns the datasource manager class to the context (via
datasource_manager()
method)
Datasources
For each 'datasource' defined in the server configuration, it does the following:
Ensures that the 'type' defined in the datasource is defined in the server configuration key 'datasource_type.$type'. So if the datasource references type 'psychic' there must be data under 'datasource_type.psychic'.
Bring in class entries under 'datasource_type.$type' for 'spops_config' and 'connection_manager'.
For each datasource defined, run it though that datasource's connection manager (tied to the 'type') and assign that information back to the context via
assign_datasource_config()
. This allows us to modify the configuration at runtime to make the configurations easier for users.
Setup Metadata
name: 'check datasources'
dependencies: default
SEE ALSO
COPYRIGHT
Copyright (c) 2005 Chris Winters. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHORS
Chris Winters <chris@cwinters.com>