Flashnux

GNU/Linux man pages

Livre :
Expressions régulières,
Syntaxe et mise en oeuvre :

ISBN : 978-2-7460-9712-4
EAN : 9782746097124
(Editions ENI)

GNU/Linux

RedHat 5.2

(Apollo)

ecpg(1)


ECPG

ECPG

NAME
SYNOPSIS
DESCRIPTION
BUGS
RETURN VALUE
SEE ALSO

NAME

ecpg - embedded SQL preprocessor for C

SYNOPSIS

ecpg [-v ] [-d ] [-o outfile ] file1 [file2] [...]

DESCRIPTION

ecpg an embedded SQL in C package for PostgreSQL. It enables you to develop C programs with embedded SQL code.

ecpg understands the following command-line options:

-v

Print version information.

-d

Turn on debugging.

-o outfile

Specifies that ecpg should write all its output to outfile.Ifnosuchoptionisgiventheoutputiswrittentofoo.c if the input file was name foo.pgc or to foo.bar.c if the input file was foo.bar.

file1, file2, ...

The files to be processed.

BUGS

The return code is alway -1 in case of an error. You cannot see which error occured by examining the return code.
The cursor is opened when the declare statement is issued.
ecpg does not understand enum datatypes.
The is no exec sql prepare statement.
The complete structure definition has to be listed inside the declare
section for ecpg to be able to understand it.
Each variable has to be defined on a line on its own.
There is no way yet to fill a complete array with one call except
arrays of [unsigned] char

which are considered strings.

ecpg cannot use pointer variables except [unsigned] char *

RETURN VALUE

ecpg returns 0 to the shell on successful completion, -1 for errors,

SEE ALSO

cc(1).



ecpg(1)