Laserfiche WebLink
CRDSS <br />TASK MEMORANDUM 1.05-8 <br />Study of System Integration Issues <br />DMI - Low-level Database Access Routines <br />1.0 ISSUE <br />The CRDSS INFORMIX database contains model-independent data that can be accessed by different <br />applications through the use of a data management interface (DMI). Applications which access the <br />database do so by calling routines that use Embedded Standard Query Language (ESQL). A library <br />of low-level routines has been developed using the C programming language to promote code reuse, <br />and to help ease maintenance demands. Hereafter, this library is referred to as the low-level DMI <br />library. Higher level DMI utilities (or DMIs) which handle model-specific formatting and data <br />editing are discussed in Task Memorandum 1.05-9. This memorandum discusses the structure of the <br />routines in the low-level DMI library. <br />2.0 DISCUSSION/ANALYSIS <br />Model to Database Linkage <br />DMIs are implemented as utilities that read from the database and create model input or other data <br />products as flat files. The diagram in Task 1.05 of the scope of work describing DMI <br />implementation is repeated below along with the advantages and disadvantages for the two main <br />DMI options to move information from the database to model applications. After discussion with <br />State and RTi team members, it has been decided that option (2), the flat file option, is the most <br />appropriate for the CRDSS. <br />DMI Routines Library (Using Embedded SQL) CRDSS <br />Database <br />GetTimeSeries (...) <br />PutTimeSeries (...) <br />GetRatingCurve (...) <br />etc. <br />Database- Database & Model-Dependent <br />Option 1 <br />Dependent <br />DMI Utility Using <br />Model Using <br />Low-level DMI Low-level DMI Routine Option 2 <br />Routine Calls <br />Calls <br />Model Model <br />flat <br />Input files Output <br />Database-Independent Model <br />(2) <br />(1) <br />(Possibly in Native Form) <br />1 <br />A275 01.08.95 1.05-8 Malers <br />