mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-21 07:50:56 +00:00
Update cheatsheets
This commit is contained in:
37
tldr/ecpg
Normal file
37
tldr/ecpg
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ecpg
|
||||
|
||||
> Embedded SQL preprocessor for C programs.
|
||||
> More information: <https://www.postgresql.org/docs/current/app-ecpg.html>.
|
||||
|
||||
- Preprocess a specific file:
|
||||
|
||||
`ecpg {{input.pgc}}`
|
||||
|
||||
- Preprocess from `stdin` and output to `stdout`:
|
||||
|
||||
`ecpg -o - -`
|
||||
|
||||
- Preprocess from `stdin` and write to a file:
|
||||
|
||||
`cat input.pgc | ecpg -o output.c -`
|
||||
|
||||
- Preprocess and specify an output file:
|
||||
|
||||
`ecpg -o {{output.c}} {{input.pgc}}`
|
||||
|
||||
- Preprocess a header file (`.pgh` extension):
|
||||
|
||||
`ecpg {{input.pgh}}`
|
||||
|
||||
- Preprocess in a specific compatibility mode:
|
||||
|
||||
`ecpg -C {{INFORMIX|INFORMIX_SE|ORACLE}} {{input.pgc}}`
|
||||
|
||||
- Preprocess with autocommit enabled:
|
||||
|
||||
`ecpg -t {{input.pgc}}`
|
||||
Reference in New Issue
Block a user