File: README

package info (click to toggle)
mergeant 0.52-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 12,848 kB
  • ctags: 6,584
  • sloc: ansic: 63,372; xml: 23,218; sh: 8,316; makefile: 613; sql: 237
file content (22 lines) | stat: -rw-r--r-- 910 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
This directory contains a sample SALES database with the associated XML file (at the moment for Postgres only).


First example:
--------------
The aim is to show various usages of the MgQuery object for the different database constructs (data types, 
primary keys (single and multiple), foreign keys, etc).

To use the example, proceed as follows:

1- Create the 'sales' database and populate it with SALES_<prov>.sql
2- Create a libgda data source for that database
3- Edit the SALES_<prov>.xml to represent the settings (libmergeant DTD location, data source name
   and user name).

Use the mg-db-browser utility (in the 'extra' directory) to visualize the SALES_<prov>.xml file.


Second Example:
---------------
The SampleApp.tgz archive contains a very simple application using the Libmergeant library and the same
data set as the previous example; see Libmergeant's documentation to have full details.