Chapter 32. ECPG - Embedded SQL in C
Table of Contents
- 32.1. The Concept
- 32.2. Managing Database Connections
- 32.3. Running SQL Commands
- 32.4. Using Host Variables
- 32.5. Dynamic SQL
- 32.6. pgtypes Library
- 32.7. Using Descriptor Areas
- 32.8. Error Handling
- 32.9. Preprocessor Directives
- 32.10. Processing Embedded SQL Programs
- 32.11. Library Functions
- 32.12. Large Objects
- 32.13. C++ Applications
- 32.11. Library Functions
- 32.14. Embedded SQL Commands
- ALLOCATE DESCRIPTOR â allocate an SQL descriptor area
- CONNECT â establish a database connection
- DEALLOCATE DESCRIPTOR â deallocate an SQL descriptor area
- DECLARE â define a cursor
- DESCRIBE â obtain information about a prepared statement or result set
- DISCONNECT â terminate a database connection
- EXECUTE IMMEDIATE â dynamically prepare and execute a statement
- GET DESCRIPTOR â get information from an SQL descriptor area
- OPEN â open a dynamic cursor
- PREPARE â prepare a statement for execution
- SET AUTOCOMMIT â set the autocommit behavior of the current session
- SET CONNECTION â select a database connection
- SET DESCRIPTOR â set information in an SQL descriptor area
- TYPE â define a new data type
- VAR â define a variable
- WHENEVER â specify the action to be taken when an SQL statement causes a specific class condition to be raised
- CONNECT â establish a database connection
- ALLOCATE DESCRIPTOR â allocate an SQL descriptor area
- 32.15. Informix Compatibility Mode
- 32.16. Internals
This chapter describes the embedded SQL package for Postgres Pro. It was written by Linus Tolke (<[email protected]>) and Michael Meskes (<[email protected]>). Originally it was written to work with C. It also works with C++, but it does not recognize all C++ constructs yet.
This documentation is quite incomplete. But since this interface is standardized, additional information can be found in many resources about SQL.