Download Remote Lectures - Final Report
Transcript
3.17 3rd Party Software 3.17.6 Remote Lectures libpq Libpq is Postgresql’s C wrapper. It allows an application to connect to a database to execute queries and to perform actions based on the results. It has a few relatively straight forward commands. PQconnectdb - This function accepts a connection string and will return a PGconn resource on success. PQstatus - Will return ConnStatusType information about supplied connection. PQexec - Will execute a query on a given connection and return a PGresult pointer. PQclear - Used to clear up the memory used by a given PGresult. PQresultStatus - Returns a ExecStatusType for a given PGresult. This allows you to determine the success or failure of a query and whether or not any results were returned. PQescapeString - Returns an escaped version of a string such that user input cannot break a query. More information can be found on the postgresql website [58] 3.17.7 gSOAP gSOAP is a C++ library and compiler for SOAP based web services. It will produce the WSDL file needed from a C header file and provides libraries to easily implement a fully featured SOAP client and server. SOAP (Simple Object Access Protocol) SOAP is a protocol for exchanging information. It is based on an XML based protocol. It defines a framework for describing what is in a message and how to process it. It defines a set of datatypes, encoding rules for representing user defined information and a convention for representing remote procedure calls and responses. It is typically used in combination with HTTP to produce a web service. This is where a server provides a defined interface to which clients connect. This web service can be used for things such as remote processing of data, retrieval of data from the service or executing a predefined function on a server. [59] 33