Hackfut Security File Manager
Current Path:
/opt/td-agent/embedded/share/man/man1
opt
/
td-agent
/
embedded
/
share
/
man
/
man1
/
📁
..
📄
clusterdb.1
(5.77 KB)
📄
createdb.1
(7.26 KB)
📄
createlang.1
(5.3 KB)
📄
createuser.1
(9.42 KB)
📄
dropdb.1
(5.25 KB)
📄
droplang.1
(5.1 KB)
📄
dropuser.1
(5.23 KB)
📄
ecpg.1
(5.04 KB)
📄
erb.1
(3.24 KB)
📄
initdb.1
(10.26 KB)
📄
irb.1
(3.43 KB)
📄
libtool.1
(9.63 KB)
📄
libtoolize.1
(2.53 KB)
📄
lzcat.1
(63.13 KB)
📄
lzma.1
(63.13 KB)
📄
lzmadec.1
(2.77 KB)
📄
lzmainfo.1
(1.22 KB)
📄
makedepend.1
(9.3 KB)
📄
oid2name.1
(8.64 KB)
📄
pg_archivecleanup.1
(5.43 KB)
📄
pg_basebackup.1
(17.68 KB)
📄
pg_config.1
(6.11 KB)
📄
pg_controldata.1
(2.22 KB)
📄
pg_ctl.1
(13.54 KB)
📄
pg_dump.1
(35 KB)
📄
pg_dumpall.1
(13.76 KB)
📄
pg_isready.1
(4.56 KB)
📄
pg_receivexlog.1
(8.9 KB)
📄
pg_recvlogical.1
(8.03 KB)
📄
pg_resetxlog.1
(8.58 KB)
📄
pg_restore.1
(22 KB)
📄
pg_rewind.1
(7.08 KB)
📄
pg_standby.1
(10.33 KB)
📄
pg_test_fsync.1
(2.86 KB)
📄
pg_test_timing.1
(9.74 KB)
📄
pg_upgrade.1
(22.02 KB)
📄
pg_xlogdump.1
(4.58 KB)
📄
pgbench.1
(36.58 KB)
📄
pkg-config.1
(18.73 KB)
📄
postgres.1
(21.49 KB)
📄
postmaster.1
(1.47 KB)
📄
psql.1
(101.06 KB)
📄
reindexdb.1
(6.55 KB)
📄
ri.1
(5.22 KB)
📄
ruby.1
(18.51 KB)
📄
unlzma.1
(63.13 KB)
📄
unxz.1
(63.13 KB)
📄
vacuumdb.1
(8.15 KB)
📄
vacuumlo.1
(4.19 KB)
📄
xml2-config.1
(1.15 KB)
📄
xmlcatalog.1
(8.2 KB)
📄
xmllint.1
(13.15 KB)
📄
xsltproc.1
(8.06 KB)
📄
xz.1
(63.13 KB)
📄
xzcat.1
(63.13 KB)
📄
xzdec.1
(2.77 KB)
Editing: ecpg.1
'\" t .\" Title: ecpg .\" Author: The PostgreSQL Global Development Group .\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> .\" Date: 2018 .\" Manual: PostgreSQL 9.6.9 Documentation .\" Source: PostgreSQL 9.6.9 .\" Language: English .\" .TH "ECPG" "1" "2018" "PostgreSQL 9.6.9" "PostgreSQL 9.6.9 Documentation" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" ecpg \- embedded SQL C preprocessor .SH "SYNOPSIS" .HP \w'\fBecpg\fR\ 'u \fBecpg\fR [\fIoption\fR...] \fIfile\fR... .SH "DESCRIPTION" .PP \fBecpg\fR is the embedded SQL preprocessor for C programs\&. It converts C programs with embedded SQL statements to normal C code by replacing the SQL invocations with special function calls\&. The output files can then be processed with any C compiler tool chain\&. .PP \fBecpg\fR will convert each input file given on the command line to the corresponding C output file\&. Input files preferably have the extension \&.pgc\&. The extension will be replaced by \&.c to determine the output file name\&. The output file name can also be overridden using the \fB\-o\fR option\&. .PP This reference page does not describe the embedded SQL language\&. See Chapter 34, ECPG - Embedded SQL in C, in the documentation for more information on that topic\&. .SH "OPTIONS" .PP \fBecpg\fR accepts the following command\-line arguments: .PP \fB\-c\fR .RS 4 Automatically generate certain C code from SQL code\&. Currently, this works for EXEC SQL TYPE\&. .RE .PP \fB\-C \fR\fB\fImode\fR\fR .RS 4 Set a compatibility mode\&. \fImode\fR can be INFORMIX or INFORMIX_SE\&. .RE .PP \fB\-D \fR\fB\fIsymbol\fR\fR .RS 4 Define a C preprocessor symbol\&. .RE .PP \fB\-i\fR .RS 4 Parse system include files as well\&. .RE .PP \fB\-I \fR\fB\fIdirectory\fR\fR .RS 4 Specify an additional include path, used to find files included via EXEC SQL INCLUDE\&. Defaults are \&. (current directory), /usr/local/include, the PostgreSQL include directory which is defined at compile time (default: /usr/local/pgsql/include), and /usr/include, in that order\&. .RE .PP \fB\-o \fR\fB\fIfilename\fR\fR .RS 4 Specifies that \fBecpg\fR should write all its output to the given \fIfilename\fR\&. .RE .PP \fB\-r \fR\fB\fIoption\fR\fR .RS 4 Selects run\-time behavior\&. \fIOption\fR can be one of the following: .PP \fBno_indicator\fR .RS 4 Do not use indicators but instead use special values to represent null values\&. Historically there have been databases using this approach\&. .RE .PP \fBprepare\fR .RS 4 Prepare all statements before using them\&. Libecpg will keep a cache of prepared statements and reuse a statement if it gets executed again\&. If the cache runs full, libecpg will free the least used statement\&. .RE .PP \fBquestionmarks\fR .RS 4 Allow question mark as placeholder for compatibility reasons\&. This used to be the default long ago\&. .RE .RE .PP \fB\-t\fR .RS 4 Turn on autocommit of transactions\&. In this mode, each SQL command is automatically committed unless it is inside an explicit transaction block\&. In the default mode, commands are committed only when \fBEXEC SQL COMMIT\fR is issued\&. .RE .PP \fB\-v\fR .RS 4 Print additional information including the version and the "include" path\&. .RE .PP \fB\-\-version\fR .RS 4 Print the ecpg version and exit\&. .RE .PP \fB\-?\fR .br \fB\-\-help\fR .RS 4 Show help about ecpg command line arguments, and exit\&. .RE .SH "NOTES" .PP When compiling the preprocessed C code files, the compiler needs to be able to find the ECPG header files in the PostgreSQL include directory\&. Therefore, you might have to use the \fB\-I\fR option when invoking the compiler (e\&.g\&., \-I/usr/local/pgsql/include)\&. .PP Programs using C code with embedded SQL have to be linked against the libecpg library, for example using the linker options \-L/usr/local/pgsql/lib \-lecpg\&. .PP The value of either of these directories that is appropriate for the installation can be found out using \fBpg_config\fR(1)\&. .SH "EXAMPLES" .PP If you have an embedded SQL C source file named prog1\&.pgc, you can create an executable program using the following sequence of commands: .sp .if n \{\ .RS 4 .\} .nf ecpg prog1\&.pgc cc \-I/usr/local/pgsql/include \-c prog1\&.c cc \-o prog1 prog1\&.o \-L/usr/local/pgsql/lib \-lecpg .fi .if n \{\ .RE .\}
Upload File
Create Folder