php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
pgsql_driver.c File Reference
#include "php.h"
#include "php_ini.h"
#include "ext/standard/php_string.h"
#include "main/php_network.h"
#include "ext/pdo/php_pdo.h"
#include "ext/pdo/php_pdo_driver.h"
#include "ext/pdo/php_pdo_error.h"
#include "ext/standard/file.h"
#include "php_pdo_pgsql.h"
#include "php_pdo_pgsql_int.h"
#include "zend_exceptions.h"
#include "zend_smart_str.h"
#include "pgsql_driver_arginfo.h"

Go to the source code of this file.

Functions

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)
 
void pdo_pgsql_cleanup_notice_callback (pdo_pgsql_db_handle *H)
 
php_streampdo_pgsql_create_lob_stream (zval *dbh, int lfd, Oid oid)
 
void pdo_pgsql_close_lob_streams (pdo_dbh_t *dbh)
 
void pdo_libpq_version (char *buf, size_t len)
 
void pgsqlCopyFromArray_internal (INTERNAL_FUNCTION_PARAMETERS)
 
 PHP_METHOD (PDO_PGSql_Ext, pgsqlCopyFromArray)
 
void pgsqlCopyFromFile_internal (INTERNAL_FUNCTION_PARAMETERS)
 
 PHP_METHOD (PDO_PGSql_Ext, pgsqlCopyFromFile)
 
void pgsqlCopyToFile_internal (INTERNAL_FUNCTION_PARAMETERS)
 
 PHP_METHOD (PDO_PGSql_Ext, pgsqlCopyToFile)
 
void pgsqlCopyToArray_internal (INTERNAL_FUNCTION_PARAMETERS)
 
 PHP_METHOD (PDO_PGSql_Ext, pgsqlCopyToArray)
 
void pgsqlLOBCreate_internal (INTERNAL_FUNCTION_PARAMETERS)
 
 PHP_METHOD (PDO_PGSql_Ext, pgsqlLOBCreate)
 
void pgsqlLOBOpen_internal (INTERNAL_FUNCTION_PARAMETERS)
 
 PHP_METHOD (PDO_PGSql_Ext, pgsqlLOBOpen)
 
void pgsqlLOBUnlink_internal (INTERNAL_FUNCTION_PARAMETERS)
 
 PHP_METHOD (PDO_PGSql_Ext, pgsqlLOBUnlink)
 
void pgsqlGetNotify_internal (INTERNAL_FUNCTION_PARAMETERS)
 
 PHP_METHOD (PDO_PGSql_Ext, pgsqlGetNotify)
 
void pgsqlGetPid_internal (INTERNAL_FUNCTION_PARAMETERS)
 
 PHP_METHOD (PDO_PGSql_Ext, pgsqlGetPid)
 
 PHP_METHOD (PDO_PGSql_Ext, pgsqlSetNoticeCallback)
 

Variables

const php_stream_ops pdo_pgsql_lob_stream_ops
 
const pdo_driver_t pdo_pgsql_driver
 

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 )

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 * dbh,
int lfd,
Oid oid )

Definition at line 202 of file pgsql_driver.c.

◆ 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.

◆ PHP_METHOD() [1/10]

PHP_METHOD ( PDO_PGSql_Ext ,
pgsqlCopyFromArray  )

Definition at line 721 of file pgsql_driver.c.

◆ PHP_METHOD() [2/10]

PHP_METHOD ( PDO_PGSql_Ext ,
pgsqlCopyFromFile  )

Definition at line 823 of file pgsql_driver.c.

◆ PHP_METHOD() [3/10]

PHP_METHOD ( PDO_PGSql_Ext ,
pgsqlCopyToArray  )

Definition at line 1003 of file pgsql_driver.c.

◆ PHP_METHOD() [4/10]

PHP_METHOD ( PDO_PGSql_Ext ,
pgsqlCopyToFile  )

Definition at line 922 of file pgsql_driver.c.

◆ PHP_METHOD() [5/10]

PHP_METHOD ( PDO_PGSql_Ext ,
pgsqlGetNotify  )

Definition at line 1217 of file pgsql_driver.c.

◆ PHP_METHOD() [6/10]

PHP_METHOD ( PDO_PGSql_Ext ,
pgsqlGetPid  )

Definition at line 1239 of file pgsql_driver.c.

◆ PHP_METHOD() [7/10]

PHP_METHOD ( PDO_PGSql_Ext ,
pgsqlLOBCreate  )

Definition at line 1036 of file pgsql_driver.c.

◆ PHP_METHOD() [8/10]

PHP_METHOD ( PDO_PGSql_Ext ,
pgsqlLOBOpen  )

Definition at line 1092 of file pgsql_driver.c.

◆ PHP_METHOD() [9/10]

PHP_METHOD ( PDO_PGSql_Ext ,
pgsqlLOBUnlink  )

Definition at line 1132 of file pgsql_driver.c.

◆ PHP_METHOD() [10/10]

PHP_METHOD ( PDO_PGSql_Ext ,
pgsqlSetNoticeCallback  )

Definition at line 1246 of file pgsql_driver.c.

Variable Documentation

◆ pdo_pgsql_driver

const pdo_driver_t pdo_pgsql_driver
Initial value:
= {
pdo_pgsql_handle_factory
}
#define PDO_DRIVER_HEADER(name)

Definition at line 1418 of file pgsql_driver.c.

◆ pdo_pgsql_lob_stream_ops

const php_stream_ops pdo_pgsql_lob_stream_ops
Initial value:
= {
pgsql_lob_write,
pgsql_lob_read,
pgsql_lob_close,
pgsql_lob_flush,
"pdo_pgsql lob stream",
pgsql_lob_seek,
}
#define NULL
Definition gdcache.h:45

Definition at line 190 of file pgsql_driver.c.