php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
php_pdo_firebird_int.h File Reference
#include <ibase.h>

Go to the source code of this file.

Data Structures

struct  pdo_firebird_error_info
 
struct  pdo_firebird_db_handle
 
struct  pdo_firebird_stmt
 

Macros

#define PDO_FB_SQLDA_VERSION   1
 
#define PDO_FB_DIALECT   3
 
#define PDO_FB_DEF_DATE_FMT   "%Y-%m-%d"
 
#define PDO_FB_DEF_TIME_FMT   "%H:%M:%S"
 
#define PDO_FB_DEF_TIMESTAMP_FMT   PDO_FB_DEF_DATE_FMT " " PDO_FB_DEF_TIME_FMT
 
#define SHORT_MAX   (1 << (8*sizeof(short)-1))
 
#define LL_LIT(lit)
 
#define LL_MASK   "ll"
 
#define const_cast(s)
 
#define min(a, b)
 
#define PDO_FIREBIRD_HANDLE_INITIALIZER   NULL
 
#define php_firebird_error(d)
 
#define php_firebird_error_stmt(s)
 
#define php_firebird_error_with_info(d, e, el, m, ml)
 
#define php_firebird_error_stmt_with_info(s, e, el, m, ml)
 

Typedefs

typedef void(* info_func_t) (char *)
 

Enumerations

enum  {
  PDO_FB_ATTR_DATE_FORMAT = PDO_ATTR_DRIVER_SPECIFIC , PDO_FB_ATTR_TIME_FORMAT , PDO_FB_ATTR_TIMESTAMP_FORMAT , PDO_FB_TRANSACTION_ISOLATION_LEVEL ,
  PDO_FB_READ_COMMITTED , PDO_FB_REPEATABLE_READ , PDO_FB_SERIALIZABLE , PDO_FB_WRITABLE_TRANSACTION
}
 

Functions

void php_firebird_set_error (pdo_dbh_t *dbh, pdo_stmt_t *stmt, const char *state, const size_t state_len, const char *msg, const size_t msg_len)
 
bool php_firebird_commit_transaction (pdo_dbh_t *dbh, bool retain)
 

Variables

const pdo_driver_t pdo_firebird_driver
 
const struct pdo_stmt_methods firebird_stmt_methods
 

Macro Definition Documentation

◆ const_cast

#define const_cast ( s)
Value:
((char*)(s))
char s[4]
Definition cdf.c:77

Definition at line 46 of file php_pdo_firebird_int.h.

◆ LL_LIT

#define LL_LIT ( lit)
Value:
lit ## LL

Definition at line 41 of file php_pdo_firebird_int.h.

◆ LL_MASK

#define LL_MASK   "ll"

Definition at line 43 of file php_pdo_firebird_int.h.

◆ min

#define min ( a,
b )
Value:
((a)<(b)?(a):(b))
$obj a
Definition test.php:84

Definition at line 55 of file php_pdo_firebird_int.h.

◆ PDO_FB_DEF_DATE_FMT

#define PDO_FB_DEF_DATE_FMT   "%Y-%m-%d"

Definition at line 32 of file php_pdo_firebird_int.h.

◆ PDO_FB_DEF_TIME_FMT

#define PDO_FB_DEF_TIME_FMT   "%H:%M:%S"

Definition at line 33 of file php_pdo_firebird_int.h.

◆ PDO_FB_DEF_TIMESTAMP_FMT

#define PDO_FB_DEF_TIMESTAMP_FMT   PDO_FB_DEF_DATE_FMT " " PDO_FB_DEF_TIME_FMT

Definition at line 34 of file php_pdo_firebird_int.h.

◆ PDO_FB_DIALECT

#define PDO_FB_DIALECT   3

Definition at line 30 of file php_pdo_firebird_int.h.

◆ PDO_FB_SQLDA_VERSION

#define PDO_FB_SQLDA_VERSION   1

Definition at line 27 of file php_pdo_firebird_int.h.

◆ PDO_FIREBIRD_HANDLE_INITIALIZER

#define PDO_FIREBIRD_HANDLE_INITIALIZER   NULL

Definition at line 61 of file php_pdo_firebird_int.h.

◆ php_firebird_error

#define php_firebird_error ( d)
Value:
void php_firebird_set_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, const char *state, const size_t state_len, const char *msg, const size_t msg_len)
#define NULL
Definition gdcache.h:45

Definition at line 136 of file php_pdo_firebird_int.h.

◆ php_firebird_error_stmt

#define php_firebird_error_stmt ( s)
Value:

Definition at line 137 of file php_pdo_firebird_int.h.

◆ php_firebird_error_stmt_with_info

#define php_firebird_error_stmt_with_info ( s,
e,
el,
m,
ml )
Value:
php_firebird_set_error(s->dbh, s, e, el, m, ml)

Definition at line 139 of file php_pdo_firebird_int.h.

◆ php_firebird_error_with_info

#define php_firebird_error_with_info ( d,
e,
el,
m,
ml )
Value:
php_firebird_set_error(d, NULL, e, el, m, ml)

Definition at line 138 of file php_pdo_firebird_int.h.

◆ SHORT_MAX

#define SHORT_MAX   (1 << (8*sizeof(short)-1))

Definition at line 36 of file php_pdo_firebird_int.h.

Typedef Documentation

◆ info_func_t

typedef void(* info_func_t) (char *)

Definition at line 51 of file php_pdo_firebird_int.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
PDO_FB_ATTR_DATE_FORMAT 
PDO_FB_ATTR_TIME_FORMAT 
PDO_FB_ATTR_TIMESTAMP_FORMAT 
PDO_FB_TRANSACTION_ISOLATION_LEVEL 
PDO_FB_READ_COMMITTED 
PDO_FB_REPEATABLE_READ 
PDO_FB_SERIALIZABLE 
PDO_FB_WRITABLE_TRANSACTION 

Definition at line 143 of file php_pdo_firebird_int.h.

Function Documentation

◆ php_firebird_commit_transaction()

bool php_firebird_commit_transaction ( pdo_dbh_t * dbh,
bool retain )
extern

retaining keeps the transaction open without closing it.

firebird needs to always have a transaction open to emulate autocommit mode, and in autocommit mode it keeps the transaction open.

Same as close and then begin again, but use retain to save overhead.

Definition at line 913 of file firebird_driver.c.

◆ php_firebird_set_error()

void php_firebird_set_error ( pdo_dbh_t * dbh,
pdo_stmt_t * stmt,
const char * state,
const size_t state_len,
const char * msg,
const size_t msg_len )
extern

Definition at line 524 of file firebird_driver.c.

Variable Documentation

◆ firebird_stmt_methods

const struct pdo_stmt_methods firebird_stmt_methods
extern

Definition at line 947 of file firebird_statement.c.

◆ pdo_firebird_driver

const pdo_driver_t pdo_firebird_driver
extern

Definition at line 1451 of file firebird_driver.c.