php-internal-docs 8.4.8
Unofficial docs for php/php-src
|
Public Member Functions | |
__construct (string $dsn, ?string $username=null, #[\SensitiveParameter] ?string $password=null, ?array $options=null) | |
beginTransaction () | |
commit () | |
errorCode () | |
errorInfo () | |
exec (string $statement) | |
getAttribute (int $attribute) | |
inTransaction () | |
lastInsertId (?string $name=null) | |
prepare (string $query, array $options=[]) | |
query (string $query, ?int $fetchMode=null, mixed ... $fetchModeArgs) | |
quote (string $string, int $type=PDO::PARAM_STR) | |
rollBack () | |
setAttribute (int $attribute, mixed $value) | |
Static Public Member Functions | |
static | connect (string $dsn, ?string $username=null, #[\SensitiveParameter] ?string $password=null, ?array $options=null) |
static | getAvailableDrivers () |
Data Fields | |
const int | PARAM_NULL = 0 |
const int | PARAM_BOOL = 5 |
const int | PARAM_INT = 1 |
const int | PARAM_STR = 2 |
const int | PARAM_LOB = 3 |
const int | PARAM_STMT = 4 |
const int | PARAM_INPUT_OUTPUT = UNKNOWN |
const int | PARAM_STR_NATL = UNKNOWN |
const int | PARAM_STR_CHAR = UNKNOWN |
const int | PARAM_EVT_ALLOC = UNKNOWN |
const int | PARAM_EVT_FREE = UNKNOWN |
const int | PARAM_EVT_EXEC_PRE = UNKNOWN |
const int | PARAM_EVT_EXEC_POST = UNKNOWN |
const int | PARAM_EVT_FETCH_PRE = UNKNOWN |
const int | PARAM_EVT_FETCH_POST = UNKNOWN |
const int | PARAM_EVT_NORMALIZE = UNKNOWN |
const int | FETCH_DEFAULT = UNKNOWN |
const int | FETCH_LAZY = UNKNOWN |
const int | FETCH_ASSOC = UNKNOWN |
const int | FETCH_NUM = UNKNOWN |
const int | FETCH_BOTH = UNKNOWN |
const int | FETCH_OBJ = UNKNOWN |
const int | FETCH_BOUND = UNKNOWN |
const int | FETCH_COLUMN = UNKNOWN |
const int | FETCH_CLASS = UNKNOWN |
const int | FETCH_INTO = UNKNOWN |
const int | FETCH_FUNC = UNKNOWN |
const int | FETCH_GROUP = UNKNOWN |
const int | FETCH_UNIQUE = UNKNOWN |
const int | FETCH_KEY_PAIR = UNKNOWN |
const int | FETCH_CLASSTYPE = UNKNOWN |
const int | FETCH_SERIALIZE = UNKNOWN |
const int | FETCH_PROPS_LATE = UNKNOWN |
const int | FETCH_NAMED = UNKNOWN |
const int | ATTR_AUTOCOMMIT = UNKNOWN |
const int | ATTR_PREFETCH = UNKNOWN |
const int | ATTR_TIMEOUT = UNKNOWN |
const int | ATTR_ERRMODE = UNKNOWN |
const int | ATTR_SERVER_VERSION = UNKNOWN |
const int | ATTR_CLIENT_VERSION = UNKNOWN |
const int | ATTR_SERVER_INFO = UNKNOWN |
const int | ATTR_CONNECTION_STATUS = UNKNOWN |
const int | ATTR_CASE = UNKNOWN |
const int | ATTR_CURSOR_NAME = UNKNOWN |
const int | ATTR_CURSOR = UNKNOWN |
const int | ATTR_ORACLE_NULLS = UNKNOWN |
const int | ATTR_PERSISTENT = UNKNOWN |
const int | ATTR_STATEMENT_CLASS = UNKNOWN |
const int | ATTR_FETCH_TABLE_NAMES = UNKNOWN |
const int | ATTR_FETCH_CATALOG_NAMES = UNKNOWN |
const int | ATTR_DRIVER_NAME = UNKNOWN |
const int | ATTR_STRINGIFY_FETCHES = UNKNOWN |
const int | ATTR_MAX_COLUMN_LEN = UNKNOWN |
const int | ATTR_EMULATE_PREPARES = UNKNOWN |
const int | ATTR_DEFAULT_FETCH_MODE = UNKNOWN |
const int | ATTR_DEFAULT_STR_PARAM = UNKNOWN |
const int | ERRMODE_SILENT = UNKNOWN |
const int | ERRMODE_WARNING = UNKNOWN |
const int | ERRMODE_EXCEPTION = UNKNOWN |
const int | CASE_NATURAL = UNKNOWN |
const int | CASE_LOWER = UNKNOWN |
const int | CASE_UPPER = UNKNOWN |
const int | NULL_NATURAL = UNKNOWN |
const int | NULL_EMPTY_STRING = UNKNOWN |
const int | NULL_TO_STRING = UNKNOWN |
const string | ERR_NONE = UNKNOWN |
const int | FETCH_ORI_NEXT = UNKNOWN |
const int | FETCH_ORI_PRIOR = UNKNOWN |
const int | FETCH_ORI_FIRST = UNKNOWN |
const int | FETCH_ORI_LAST = UNKNOWN |
const int | FETCH_ORI_ABS = UNKNOWN |
const int | FETCH_ORI_REL = UNKNOWN |
const int | CURSOR_FWDONLY = UNKNOWN |
const int | CURSOR_SCROLL = UNKNOWN |
@generate-class-entries @not-serializable
Definition at line 6 of file pdo_dbh.stub.php.
PDO::__construct | ( | string | $dsn, |
?string | $username = null, | ||
# ?string | $password[\SensitiveParameter] = null, | ||
?array | $options = null ) |
Definition at line 167 of file pdo_dbh.stub.php.
PDO::beginTransaction | ( | ) |
@tentative-return-type
Definition at line 177 of file pdo_dbh.stub.php.
PDO::commit | ( | ) |
@tentative-return-type
Definition at line 180 of file pdo_dbh.stub.php.
|
static |
Definition at line 169 of file pdo_dbh.stub.php.
PDO::errorCode | ( | ) |
@tentative-return-type
Definition at line 183 of file pdo_dbh.stub.php.
PDO::errorInfo | ( | ) |
@tentative-return-type
Definition at line 186 of file pdo_dbh.stub.php.
PDO::exec | ( | string | $statement | ) |
@tentative-return-type
Definition at line 189 of file pdo_dbh.stub.php.
PDO::getAttribute | ( | int | $attribute | ) |
@tentative-return-type
Definition at line 192 of file pdo_dbh.stub.php.
|
static |
@tentative-return-type
Definition at line 195 of file pdo_dbh.stub.php.
PDO::inTransaction | ( | ) |
@tentative-return-type
Definition at line 198 of file pdo_dbh.stub.php.
PDO::lastInsertId | ( | ?string | $name = null | ) |
@tentative-return-type
Definition at line 201 of file pdo_dbh.stub.php.
PDO::prepare | ( | string | $query, |
array | $options = [] ) |
@tentative-return-type
Definition at line 204 of file pdo_dbh.stub.php.
PDO::query | ( | string | $query, |
?int | $fetchMode = null, | ||
mixed ... | $fetchModeArgs ) |
@tentative-return-type
Definition at line 207 of file pdo_dbh.stub.php.
PDO::quote | ( | string | $string, |
int | $type = PDO::PARAM_STR ) |
@tentative-return-type
Definition at line 210 of file pdo_dbh.stub.php.
PDO::rollBack | ( | ) |
@tentative-return-type
Definition at line 213 of file pdo_dbh.stub.php.
PDO::setAttribute | ( | int | $attribute, |
mixed | $value ) |
@tentative-return-type
Definition at line 216 of file pdo_dbh.stub.php.
const int PDO::ATTR_AUTOCOMMIT = UNKNOWN |
@cvalue LONG_CONST(PDO_ATTR_AUTOCOMMIT)
Definition at line 81 of file pdo_dbh.stub.php.
const int PDO::ATTR_CASE = UNKNOWN |
@cvalue LONG_CONST(PDO_ATTR_CASE)
Definition at line 97 of file pdo_dbh.stub.php.
const int PDO::ATTR_CLIENT_VERSION = UNKNOWN |
@cvalue LONG_CONST(PDO_ATTR_CLIENT_VERSION)
Definition at line 91 of file pdo_dbh.stub.php.
const int PDO::ATTR_CONNECTION_STATUS = UNKNOWN |
@cvalue LONG_CONST(PDO_ATTR_CONNECTION_STATUS)
Definition at line 95 of file pdo_dbh.stub.php.
const int PDO::ATTR_CURSOR = UNKNOWN |
@cvalue LONG_CONST(PDO_ATTR_CURSOR)
Definition at line 101 of file pdo_dbh.stub.php.
const int PDO::ATTR_CURSOR_NAME = UNKNOWN |
@cvalue LONG_CONST(PDO_ATTR_CURSOR_NAME)
Definition at line 99 of file pdo_dbh.stub.php.
const int PDO::ATTR_DEFAULT_FETCH_MODE = UNKNOWN |
@cvalue LONG_CONST(PDO_ATTR_DEFAULT_FETCH_MODE)
Definition at line 121 of file pdo_dbh.stub.php.
const int PDO::ATTR_DEFAULT_STR_PARAM = UNKNOWN |
@cvalue LONG_CONST(PDO_ATTR_DEFAULT_STR_PARAM)
Definition at line 123 of file pdo_dbh.stub.php.
const int PDO::ATTR_DRIVER_NAME = UNKNOWN |
@cvalue LONG_CONST(PDO_ATTR_DRIVER_NAME)
Definition at line 113 of file pdo_dbh.stub.php.
const int PDO::ATTR_EMULATE_PREPARES = UNKNOWN |
@cvalue LONG_CONST(PDO_ATTR_EMULATE_PREPARES)
Definition at line 119 of file pdo_dbh.stub.php.
const int PDO::ATTR_ERRMODE = UNKNOWN |
@cvalue LONG_CONST(PDO_ATTR_ERRMODE)
Definition at line 87 of file pdo_dbh.stub.php.
const int PDO::ATTR_FETCH_CATALOG_NAMES = UNKNOWN |
@cvalue LONG_CONST(PDO_ATTR_FETCH_CATALOG_NAMES)
Definition at line 111 of file pdo_dbh.stub.php.
const int PDO::ATTR_FETCH_TABLE_NAMES = UNKNOWN |
@cvalue LONG_CONST(PDO_ATTR_FETCH_TABLE_NAMES)
Definition at line 109 of file pdo_dbh.stub.php.
const int PDO::ATTR_MAX_COLUMN_LEN = UNKNOWN |
@cvalue LONG_CONST(PDO_ATTR_MAX_COLUMN_LEN)
Definition at line 117 of file pdo_dbh.stub.php.
const int PDO::ATTR_ORACLE_NULLS = UNKNOWN |
@cvalue LONG_CONST(PDO_ATTR_ORACLE_NULLS)
Definition at line 103 of file pdo_dbh.stub.php.
const int PDO::ATTR_PERSISTENT = UNKNOWN |
@cvalue LONG_CONST(PDO_ATTR_PERSISTENT)
Definition at line 105 of file pdo_dbh.stub.php.
const int PDO::ATTR_PREFETCH = UNKNOWN |
@cvalue LONG_CONST(PDO_ATTR_PREFETCH)
Definition at line 83 of file pdo_dbh.stub.php.
const int PDO::ATTR_SERVER_INFO = UNKNOWN |
@cvalue LONG_CONST(PDO_ATTR_SERVER_INFO)
Definition at line 93 of file pdo_dbh.stub.php.
const int PDO::ATTR_SERVER_VERSION = UNKNOWN |
@cvalue LONG_CONST(PDO_ATTR_SERVER_VERSION)
Definition at line 89 of file pdo_dbh.stub.php.
const int PDO::ATTR_STATEMENT_CLASS = UNKNOWN |
@cvalue LONG_CONST(PDO_ATTR_STATEMENT_CLASS)
Definition at line 107 of file pdo_dbh.stub.php.
const int PDO::ATTR_STRINGIFY_FETCHES = UNKNOWN |
@cvalue LONG_CONST(PDO_ATTR_STRINGIFY_FETCHES)
Definition at line 115 of file pdo_dbh.stub.php.
const int PDO::ATTR_TIMEOUT = UNKNOWN |
@cvalue LONG_CONST(PDO_ATTR_TIMEOUT)
Definition at line 85 of file pdo_dbh.stub.php.
const int PDO::CASE_LOWER = UNKNOWN |
@cvalue LONG_CONST(PDO_CASE_LOWER)
Definition at line 135 of file pdo_dbh.stub.php.
const int PDO::CASE_NATURAL = UNKNOWN |
@cvalue LONG_CONST(PDO_CASE_NATURAL)
Definition at line 133 of file pdo_dbh.stub.php.
const int PDO::CASE_UPPER = UNKNOWN |
@cvalue LONG_CONST(PDO_CASE_UPPER)
Definition at line 137 of file pdo_dbh.stub.php.
const int PDO::CURSOR_FWDONLY = UNKNOWN |
@cvalue LONG_CONST(PDO_CURSOR_FWDONLY)
Definition at line 163 of file pdo_dbh.stub.php.
const int PDO::CURSOR_SCROLL = UNKNOWN |
@cvalue LONG_CONST(PDO_CURSOR_SCROLL)
Definition at line 165 of file pdo_dbh.stub.php.
const string PDO::ERR_NONE = UNKNOWN |
@cvalue PDO_ERR_NONE
Definition at line 147 of file pdo_dbh.stub.php.
const int PDO::ERRMODE_EXCEPTION = UNKNOWN |
@cvalue LONG_CONST(PDO_ERRMODE_EXCEPTION)
Definition at line 130 of file pdo_dbh.stub.php.
const int PDO::ERRMODE_SILENT = UNKNOWN |
@cvalue LONG_CONST(PDO_ERRMODE_SILENT)
Definition at line 126 of file pdo_dbh.stub.php.
const int PDO::ERRMODE_WARNING = UNKNOWN |
@cvalue LONG_CONST(PDO_ERRMODE_WARNING)
Definition at line 128 of file pdo_dbh.stub.php.
const int PDO::FETCH_ASSOC = UNKNOWN |
@cvalue LONG_CONST(PDO_FETCH_ASSOC)
Definition at line 47 of file pdo_dbh.stub.php.
const int PDO::FETCH_BOTH = UNKNOWN |
@cvalue LONG_CONST(PDO_FETCH_BOTH)
Definition at line 51 of file pdo_dbh.stub.php.
const int PDO::FETCH_BOUND = UNKNOWN |
@cvalue LONG_CONST(PDO_FETCH_BOUND)
Definition at line 55 of file pdo_dbh.stub.php.
const int PDO::FETCH_CLASS = UNKNOWN |
@cvalue LONG_CONST(PDO_FETCH_CLASS)
Definition at line 59 of file pdo_dbh.stub.php.
const int PDO::FETCH_CLASSTYPE = UNKNOWN |
@cvalue LONG_CONST(PDO_FETCH_CLASSTYPE)
Definition at line 71 of file pdo_dbh.stub.php.
const int PDO::FETCH_COLUMN = UNKNOWN |
@cvalue LONG_CONST(PDO_FETCH_COLUMN)
Definition at line 57 of file pdo_dbh.stub.php.
const int PDO::FETCH_DEFAULT = UNKNOWN |
@cvalue LONG_CONST(PDO_FETCH_USE_DEFAULT)
Definition at line 43 of file pdo_dbh.stub.php.
const int PDO::FETCH_FUNC = UNKNOWN |
@cvalue LONG_CONST(PDO_FETCH_FUNC)
Definition at line 63 of file pdo_dbh.stub.php.
const int PDO::FETCH_GROUP = UNKNOWN |
@cvalue LONG_CONST(PDO_FETCH_GROUP)
Definition at line 65 of file pdo_dbh.stub.php.
const int PDO::FETCH_INTO = UNKNOWN |
@cvalue LONG_CONST(PDO_FETCH_INTO)
Definition at line 61 of file pdo_dbh.stub.php.
const int PDO::FETCH_KEY_PAIR = UNKNOWN |
@cvalue LONG_CONST(PDO_FETCH_KEY_PAIR)
Definition at line 69 of file pdo_dbh.stub.php.
const int PDO::FETCH_LAZY = UNKNOWN |
@cvalue LONG_CONST(PDO_FETCH_LAZY)
Definition at line 45 of file pdo_dbh.stub.php.
const int PDO::FETCH_NAMED = UNKNOWN |
@cvalue LONG_CONST(PDO_FETCH_NAMED)
Definition at line 78 of file pdo_dbh.stub.php.
const int PDO::FETCH_NUM = UNKNOWN |
@cvalue LONG_CONST(PDO_FETCH_NUM)
Definition at line 49 of file pdo_dbh.stub.php.
const int PDO::FETCH_OBJ = UNKNOWN |
@cvalue LONG_CONST(PDO_FETCH_OBJ)
Definition at line 53 of file pdo_dbh.stub.php.
const int PDO::FETCH_ORI_ABS = UNKNOWN |
@cvalue LONG_CONST(PDO_FETCH_ORI_ABS)
Definition at line 158 of file pdo_dbh.stub.php.
const int PDO::FETCH_ORI_FIRST = UNKNOWN |
@cvalue LONG_CONST(PDO_FETCH_ORI_FIRST)
Definition at line 154 of file pdo_dbh.stub.php.
const int PDO::FETCH_ORI_LAST = UNKNOWN |
@cvalue LONG_CONST(PDO_FETCH_ORI_LAST)
Definition at line 156 of file pdo_dbh.stub.php.
const int PDO::FETCH_ORI_NEXT = UNKNOWN |
@cvalue LONG_CONST(PDO_FETCH_ORI_NEXT)
Definition at line 150 of file pdo_dbh.stub.php.
const int PDO::FETCH_ORI_PRIOR = UNKNOWN |
@cvalue LONG_CONST(PDO_FETCH_ORI_PRIOR)
Definition at line 152 of file pdo_dbh.stub.php.
const int PDO::FETCH_ORI_REL = UNKNOWN |
@cvalue LONG_CONST(PDO_FETCH_ORI_REL)
Definition at line 160 of file pdo_dbh.stub.php.
const int PDO::FETCH_PROPS_LATE = UNKNOWN |
@cvalue LONG_CONST(PDO_FETCH_PROPS_LATE)
Definition at line 76 of file pdo_dbh.stub.php.
const int PDO::FETCH_SERIALIZE = UNKNOWN |
@cvalue LONG_CONST(PDO_FETCH_SERIALIZE)
Definition at line 74 of file pdo_dbh.stub.php.
const int PDO::FETCH_UNIQUE = UNKNOWN |
@cvalue LONG_CONST(PDO_FETCH_UNIQUE)
Definition at line 67 of file pdo_dbh.stub.php.
const int PDO::NULL_EMPTY_STRING = UNKNOWN |
@cvalue LONG_CONST(PDO_NULL_EMPTY_STRING)
Definition at line 142 of file pdo_dbh.stub.php.
const int PDO::NULL_NATURAL = UNKNOWN |
@cvalue LONG_CONST(PDO_NULL_NATURAL)
Definition at line 140 of file pdo_dbh.stub.php.
const int PDO::NULL_TO_STRING = UNKNOWN |
@cvalue LONG_CONST(PDO_NULL_TO_STRING)
Definition at line 144 of file pdo_dbh.stub.php.
const int PDO::PARAM_BOOL = 5 |
@cvalue LONG_CONST(PDO_PARAM_BOOL)
Definition at line 11 of file pdo_dbh.stub.php.
const int PDO::PARAM_EVT_ALLOC = UNKNOWN |
@cvalue LONG_CONST(PDO_PARAM_EVT_ALLOC)
Definition at line 28 of file pdo_dbh.stub.php.
const int PDO::PARAM_EVT_EXEC_POST = UNKNOWN |
@cvalue LONG_CONST(PDO_PARAM_EVT_EXEC_POST)
Definition at line 34 of file pdo_dbh.stub.php.
const int PDO::PARAM_EVT_EXEC_PRE = UNKNOWN |
@cvalue LONG_CONST(PDO_PARAM_EVT_EXEC_PRE)
Definition at line 32 of file pdo_dbh.stub.php.
const int PDO::PARAM_EVT_FETCH_POST = UNKNOWN |
@cvalue LONG_CONST(PDO_PARAM_EVT_FETCH_POST)
Definition at line 38 of file pdo_dbh.stub.php.
const int PDO::PARAM_EVT_FETCH_PRE = UNKNOWN |
@cvalue LONG_CONST(PDO_PARAM_EVT_FETCH_PRE)
Definition at line 36 of file pdo_dbh.stub.php.
const int PDO::PARAM_EVT_FREE = UNKNOWN |
@cvalue LONG_CONST(PDO_PARAM_EVT_FREE)
Definition at line 30 of file pdo_dbh.stub.php.
const int PDO::PARAM_EVT_NORMALIZE = UNKNOWN |
@cvalue LONG_CONST(PDO_PARAM_EVT_NORMALIZE)
Definition at line 40 of file pdo_dbh.stub.php.
const int PDO::PARAM_INPUT_OUTPUT = UNKNOWN |
@cvalue LONG_CONST(PDO_PARAM_INPUT_OUTPUT)
Definition at line 21 of file pdo_dbh.stub.php.
const int PDO::PARAM_INT = 1 |
@cvalue LONG_CONST(PDO_PARAM_INT)
Definition at line 13 of file pdo_dbh.stub.php.
const int PDO::PARAM_LOB = 3 |
@cvalue LONG_CONST(PDO_PARAM_LOB)
Definition at line 17 of file pdo_dbh.stub.php.
const int PDO::PARAM_NULL = 0 |
@cvalue LONG_CONST(PDO_PARAM_NULL)
Definition at line 9 of file pdo_dbh.stub.php.
const int PDO::PARAM_STMT = 4 |
@cvalue LONG_CONST(PDO_PARAM_STMT)
Definition at line 19 of file pdo_dbh.stub.php.
const int PDO::PARAM_STR = 2 |
@cvalue LONG_CONST(PDO_PARAM_STR)
Definition at line 15 of file pdo_dbh.stub.php.
const int PDO::PARAM_STR_CHAR = UNKNOWN |
@cvalue LONG_CONST(PDO_PARAM_STR_CHAR)
Definition at line 25 of file pdo_dbh.stub.php.
const int PDO::PARAM_STR_NATL = UNKNOWN |
@cvalue LONG_CONST(PDO_PARAM_STR_NATL)
Definition at line 23 of file pdo_dbh.stub.php.