php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
php_pdo_pgsql_int.h File Reference
#include <libpq-fe.h>
#include <libpq/libpq-fs.h>
#include <php.h>

Go to the source code of this file.

Data Structures

struct  pdo_pgsql_error_info
 
struct  pdo_pgsql_db_handle
 
struct  pdo_pgsql_column
 
struct  pdo_pgsql_stmt
 
struct  pdo_pgsql_bound_param
 
struct  pdo_pgsql_lob_self
 

Macros

#define PHP_PDO_PGSQL_CONNECTION_FAILURE_SQLSTATE   "08006"
 
#define pdo_pgsql_error(d, e, z)
 
#define pdo_pgsql_error_msg(d, e, m)
 
#define pdo_pgsql_error_stmt(s, e, z)
 
#define pdo_pgsql_error_stmt_msg(stmt, e, sqlstate, msg)
 
#define pdo_pgsql_sqlstate(r)
 

Enumerations

enum  { PDO_PGSQL_ATTR_DISABLE_PREPARES = PDO_ATTR_DRIVER_SPECIFIC , PDO_PGSQL_ATTR_RESULT_MEMORY_SIZE }
 
enum  pdo_pgsql_specific_constants {
  PGSQL_TRANSACTION_IDLE = PQTRANS_IDLE , PGSQL_TRANSACTION_ACTIVE = PQTRANS_ACTIVE , PGSQL_TRANSACTION_INTRANS = PQTRANS_INTRANS , PGSQL_TRANSACTION_INERROR = PQTRANS_INERROR ,
  PGSQL_TRANSACTION_UNKNOWN = PQTRANS_UNKNOWN
}
 

Functions

int pdo_pgsql_scanner (pdo_scanner_t *s)
 
int _pdo_pgsql_error (pdo_dbh_t *dbh, pdo_stmt_t *stmt, int errcode, const char *sqlstate, const char *msg, const char *file, int line)
 
php_streampdo_pgsql_create_lob_stream (zval *pdh, int lfd, Oid oid)
 
void pdo_pgsql_cleanup_notice_callback (pdo_pgsql_db_handle *H)
 
void pdo_libpq_version (char *buf, size_t len)
 
void pdo_pgsql_close_lob_streams (pdo_dbh_t *dbh)
 
void pgsqlCopyFromArray_internal (INTERNAL_FUNCTION_PARAMETERS)
 
void pgsqlCopyFromFile_internal (INTERNAL_FUNCTION_PARAMETERS)
 
void pgsqlCopyToArray_internal (INTERNAL_FUNCTION_PARAMETERS)
 
void pgsqlCopyToFile_internal (INTERNAL_FUNCTION_PARAMETERS)
 
void pgsqlLOBCreate_internal (INTERNAL_FUNCTION_PARAMETERS)
 
void pgsqlLOBOpen_internal (INTERNAL_FUNCTION_PARAMETERS)
 
void pgsqlLOBUnlink_internal (INTERNAL_FUNCTION_PARAMETERS)
 
void pgsqlGetNotify_internal (INTERNAL_FUNCTION_PARAMETERS)
 
void pgsqlGetPid_internal (INTERNAL_FUNCTION_PARAMETERS)
 

Variables

const pdo_driver_t pdo_pgsql_driver
 
const struct pdo_stmt_methods pgsql_stmt_methods
 
const php_stream_ops pdo_pgsql_lob_stream_ops
 

Macro Definition Documentation

◆ pdo_pgsql_error

#define pdo_pgsql_error ( d,
e,
z )
Value:
_pdo_pgsql_error(d, NULL, e, z, NULL, __FILE__, __LINE__)
#define NULL
Definition gdcache.h:45
int _pdo_pgsql_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, int errcode, const char *sqlstate, const char *msg, const char *file, int line)

Definition at line 82 of file php_pdo_pgsql_int.h.

◆ pdo_pgsql_error_msg

#define pdo_pgsql_error_msg ( d,
e,
m )
Value:
_pdo_pgsql_error(d, NULL, e, NULL, m, __FILE__, __LINE__)

Definition at line 83 of file php_pdo_pgsql_int.h.

◆ pdo_pgsql_error_stmt

#define pdo_pgsql_error_stmt ( s,
e,
z )
Value:
_pdo_pgsql_error(s->dbh, s, e, z, NULL, __FILE__, __LINE__)
char s[4]
Definition cdf.c:77

Definition at line 84 of file php_pdo_pgsql_int.h.

◆ pdo_pgsql_error_stmt_msg

#define pdo_pgsql_error_stmt_msg ( stmt,
e,
sqlstate,
msg )
Value:
_pdo_pgsql_error(stmt->dbh, stmt, e, sqlstate, msg, __FILE__, __LINE__)
char sqlstate[6]
char * msg
Definition phpdbg.h:289

Definition at line 85 of file php_pdo_pgsql_int.h.

◆ pdo_pgsql_sqlstate

#define pdo_pgsql_sqlstate ( r)
Value:
PQresultErrorField(r, PG_DIAG_SQLSTATE)

Definition at line 90 of file php_pdo_pgsql_int.h.

◆ PHP_PDO_PGSQL_CONNECTION_FAILURE_SQLSTATE

#define PHP_PDO_PGSQL_CONNECTION_FAILURE_SQLSTATE   "08006"

Definition at line 28 of file php_pdo_pgsql_int.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
PDO_PGSQL_ATTR_DISABLE_PREPARES 
PDO_PGSQL_ATTR_RESULT_MEMORY_SIZE 

Definition at line 92 of file php_pdo_pgsql_int.h.

◆ pdo_pgsql_specific_constants

Enumerator
PGSQL_TRANSACTION_IDLE 
PGSQL_TRANSACTION_ACTIVE 
PGSQL_TRANSACTION_INTRANS 
PGSQL_TRANSACTION_INERROR 
PGSQL_TRANSACTION_UNKNOWN 

Definition at line 104 of file php_pdo_pgsql_int.h.

Function Documentation

◆ _pdo_pgsql_error()

int _pdo_pgsql_error ( pdo_dbh_t * dbh,
pdo_stmt_t * stmt,
int errcode,
const char * sqlstate,
const char * msg,
const char * file,
int line )
extern

Definition at line 67 of file pgsql_driver.c.

◆ pdo_libpq_version()

void pdo_libpq_version ( char * buf,
size_t len )

Definition at line 427 of file pgsql_driver.c.

◆ pdo_pgsql_cleanup_notice_callback()

void pdo_pgsql_cleanup_notice_callback ( pdo_pgsql_db_handle * H)

Definition at line 135 of file pgsql_driver.c.

◆ pdo_pgsql_close_lob_streams()

void pdo_pgsql_close_lob_streams ( pdo_dbh_t * dbh)

Definition at line 226 of file pgsql_driver.c.

◆ pdo_pgsql_create_lob_stream()

php_stream * pdo_pgsql_create_lob_stream ( zval * pdh,
int lfd,
Oid oid )

Definition at line 202 of file pgsql_driver.c.

◆ pdo_pgsql_scanner()

int pdo_pgsql_scanner ( pdo_scanner_t * s)
extern

◆ pgsqlCopyFromArray_internal()

void pgsqlCopyFromArray_internal ( INTERNAL_FUNCTION_PARAMETERS )

Definition at line 609 of file pgsql_driver.c.

◆ pgsqlCopyFromFile_internal()

void pgsqlCopyFromFile_internal ( INTERNAL_FUNCTION_PARAMETERS )

Definition at line 727 of file pgsql_driver.c.

◆ pgsqlCopyToArray_internal()

void pgsqlCopyToArray_internal ( INTERNAL_FUNCTION_PARAMETERS )

Definition at line 929 of file pgsql_driver.c.

◆ pgsqlCopyToFile_internal()

void pgsqlCopyToFile_internal ( INTERNAL_FUNCTION_PARAMETERS )

Definition at line 829 of file pgsql_driver.c.

◆ pgsqlGetNotify_internal()

void pgsqlGetNotify_internal ( INTERNAL_FUNCTION_PARAMETERS )

Definition at line 1138 of file pgsql_driver.c.

◆ pgsqlGetPid_internal()

void pgsqlGetPid_internal ( INTERNAL_FUNCTION_PARAMETERS )

Definition at line 1223 of file pgsql_driver.c.

◆ pgsqlLOBCreate_internal()

void pgsqlLOBCreate_internal ( INTERNAL_FUNCTION_PARAMETERS )

Definition at line 1009 of file pgsql_driver.c.

◆ pgsqlLOBOpen_internal()

void pgsqlLOBOpen_internal ( INTERNAL_FUNCTION_PARAMETERS )

Definition at line 1042 of file pgsql_driver.c.

◆ pgsqlLOBUnlink_internal()

void pgsqlLOBUnlink_internal ( INTERNAL_FUNCTION_PARAMETERS )

Definition at line 1098 of file pgsql_driver.c.

Variable Documentation

◆ pdo_pgsql_driver

const pdo_driver_t pdo_pgsql_driver
extern

Definition at line 1418 of file pgsql_driver.c.

◆ pdo_pgsql_lob_stream_ops

const php_stream_ops pdo_pgsql_lob_stream_ops
extern

Definition at line 190 of file pgsql_driver.c.

◆ pgsql_stmt_methods

const struct pdo_stmt_methods pgsql_stmt_methods
extern

Definition at line 744 of file pgsql_statement.c.