Path: utzoo!attcan!uunet!accur8!emuleomo
From: emuleomo@accur8.UUCP (Olumide Emuleomo)
Newsgroups: comp.databases
Subject: Re: SQL-schema to C generation
Message-ID: <264@accur8.UUCP>
Date: 8 Aug 89 13:02:54 GMT
References: <1910007@hpmcaa.mcm.hp.com>
Organization: Accurate Information Systems, Inc.
Lines: 17

In article <1910007@hpmcaa.mcm.hp.com>, nacer@hpmcaa.mcm.hp.com (Abdenacer Moussaoui) writes:
> Before the schema becomes stable every time it is modified the
> corresponding C declarations need to be updated manually I would like
> to know if there is a stand-alone SQL-schema to C declaration
> translator.
> 
If you are using Ingres then you are in *luck*.  One of the features I LOVE
in Ingres is a utility called DCLGEN.  It lets you generate C structure
declarations for any table in your database. The beauty of it is that
this is completely automatic and command line driven, so that you
can even write shell scripts to do the stuff.  Also this method will work
for almost any other DBMS. All you have to do is create the table in Ingres
and then use DCLGEN to produce your C declarations and port it over to your
favorite DBMS!!


Emuleomo O O (emuleomo@accur8@uunet.uu.net)