check.version:
Internal function: check if database connection is present and database has correct version.
Description
h.m is called from any interface function (defined e.g. in odm1_1-class) when no handler object has been defined with options(odm.handler=sqhandler)
check.version checks for correct version of the database and gives an error if this is not the case.
Includes a check if the data base schema has been created. If not
the corresponding scripts are processed from the src directory.
Usage
h.m(object)
check.version(object, version)
Arguments
object
The odm-handler object. For example created by new("odm1_1Ver", con = con) where con is the database connection.
version
The version required.
Value
Nothing returned. Side effects assure that the package can be used without explicitly setting up a database.