![]() | ![]() | Libmergeant Reference Manual | ![]() |
---|
The libmergeant library's aim is to make it easy to manage data within databases. To achieve its purpose, it provides the following features:
A dynamically managed structure of objects to represent the database structure and the server features (data types, functions, aggregates, tables, constraints on tables, etc). This structure can be used to obtain information on the database structure, it is the data dictionnary; a dictionnary is represented by a single MgConf;
Some high level widgets to be used in applications (MgSelector and MgWorkForm for instance);
Some specific objects (MgDataHandler) and widgets (MgDataEntry)to interact with data of most the most common type (string, number, dates, etc) and plugins can be used to add support for other database specific data types;
A dynamic way to build queries of any kind (even complex ones) with the MgQuery object and encapsulates sending queries to the DBMS and receiving data from it; Each query can have some (optional or not) parameters (MgParameter objects) required for their execution.
Parameters are grouped together within a MgContext object, which manages them. Parameters can be declared as "shadows" of other parameters (alias parameters) which allow easy dynamic and automatic update of widgets.
The XML format is used to store all the meta-data (using the MgXmlStorage interface) and mechanisms to retreive references to objects from their XML id (the id stored in the XML file).
Look at the examples in the source distribution of the library, or at the small example below.
<<< Libmergeant Reference Manual | Objects related to the DBMS server >>> |