Sqlite
class Sqlite extends PDO (View source)
Constants
PARAM_NULL |
Represents the SQL NULL data type. |
PARAM_INT |
Represents the SQL INTEGER data type. |
PARAM_STR |
Represents the SQL CHAR, VARCHAR, or other string data type. |
PARAM_LOB |
Represents the SQL large object data type. |
PARAM_STMT |
Represents a recordset type. Not currently supported by any drivers. |
PARAM_BOOL |
Represents a boolean data type. |
PARAM_STR_NATL
Since: 7.2
|
Flag to denote a string uses the national character set. |
PARAM_STR_CHAR
Since: 7.2
|
Flag to denote a string uses the regular character set. |
ATTR_DEFAULT_STR_PARAM
Since: 7.2
|
Sets the default string parameter type, this can be one of PDO::PARAM_STR_NATL and PDO::PARAM_STR_CHAR. |
SQLITE_DETERMINISTIC
Since: 7.1.4
|
Specifies that a function created with PDO::sqliteCreateFunction() is deterministic, i.e. it always returns the same result given the same inputs within a single SQL statement. |
SQLITE_OPEN_READONLY
Since: 7.3
|
|
SQLITE_OPEN_READWRITE
Since: 7.3
|
|
SQLITE_OPEN_CREATE
Since: 7.3
|
|
SQLITE_ATTR_OPEN_FLAGS
Since: 7.3
|
|
PARAM_INPUT_OUTPUT |
Specifies that the parameter is an INOUT parameter for a stored
procedure. You must bitwise-OR this value with an explicit
PDO::PARAM_* data type. |
PARAM_EVT_ALLOC |
Allocation event |
PARAM_EVT_FREE |
Deallocation event |
PARAM_EVT_EXEC_PRE |
Event triggered prior to execution of a prepared statement. |
PARAM_EVT_EXEC_POST |
Event triggered subsequent to execution of a prepared statement. |
PARAM_EVT_FETCH_PRE |
Event triggered prior to fetching a result from a resultset. |
PARAM_EVT_FETCH_POST |
Event triggered subsequent to fetching a result from a resultset. |
PARAM_EVT_NORMALIZE |
Event triggered during bound parameter registration
allowing the driver to normalize the parameter name. |
FETCH_LAZY |
Specifies that the fetch method shall return each row as an object with
variable names that correspond to the column names returned in the result
set. PDO::FETCH_LAZY creates the object variable names as they are accessed. Not valid inside PDOStatement::fetchAll. |
FETCH_ASSOC |
Specifies that the fetch method shall return each row as an array indexed
by column name as returned in the corresponding result set. If the result
set contains multiple columns with the same name,
PDO::FETCH_ASSOC returns
only a single value per column name. |
FETCH_NUM |
Specifies that the fetch method shall return each row as an array indexed
by column number as returned in the corresponding result set, starting at
column 0. |
FETCH_BOTH |
Specifies that the fetch method shall return each row as an array indexed
by both column name and number as returned in the corresponding result set,
starting at column 0. |
FETCH_OBJ |
Specifies that the fetch method shall return each row as an object with
property names that correspond to the column names returned in the result
set. |
FETCH_BOUND |
Specifies that the fetch method shall return TRUE and assign the values of
the columns in the result set to the PHP variables to which they were
bound with the PDOStatement::bindParam or
PDOStatement::bindColumn methods. |
FETCH_COLUMN |
Specifies that the fetch method shall return only a single requested
column from the next row in the result set. |
FETCH_CLASS |
Specifies that the fetch method shall return a new instance of the
requested class, mapping the columns to named properties in the class. The magic __set method is called if the property doesn't exist in the requested class |
FETCH_INTO |
Specifies that the fetch method shall update an existing instance of the
requested class, mapping the columns to named properties in the class. |
FETCH_FUNC |
Allows completely customize the way data is treated on the fly (only
valid inside PDOStatement::fetchAll). |
FETCH_GROUP |
Group return by values. Usually combined with
PDO::FETCH_COLUMN or
PDO::FETCH_KEY_PAIR. |
FETCH_UNIQUE |
Fetch only the unique values. |
FETCH_KEY_PAIR
Since: 5.2.3
|
Fetch a two-column result into an array where the first column is a key and the second column
is the value. |
FETCH_CLASSTYPE |
Determine the class name from the value of first column. |
FETCH_SERIALIZE |
As PDO::FETCH_INTO but object is provided as a serialized string. Available since PHP 5.1.0. Since PHP 5.3.0 the class constructor is never called if this flag is set. |
FETCH_PROPS_LATE
Since: 5.2
|
Call the constructor before setting properties. |
FETCH_NAMED |
Specifies that the fetch method shall return each row as an array indexed
by column name as returned in the corresponding result set. If the result
set contains multiple columns with the same name,
PDO::FETCH_NAMED returns
an array of values per column name. |
ATTR_AUTOCOMMIT |
If this value is FALSE, PDO attempts to disable autocommit so that the
connection begins a transaction. |
ATTR_PREFETCH |
Setting the prefetch size allows you to balance speed against memory
usage for your application. Not all database/driver combinations support
setting of the prefetch size. A larger prefetch size results in
increased performance at the cost of higher memory usage. |
ATTR_TIMEOUT |
Sets the timeout value in seconds for communications with the database. |
ATTR_ERRMODE |
|
ATTR_SERVER_VERSION |
This is a read only attribute; it will return information about the
version of the database server to which PDO is connected. |
ATTR_CLIENT_VERSION |
This is a read only attribute; it will return information about the
version of the client libraries that the PDO driver is using. |
ATTR_SERVER_INFO |
This is a read only attribute; it will return some meta information about the
database server to which PDO is connected. |
ATTR_CONNECTION_STATUS |
|
ATTR_CASE |
Force column names to a specific case specified by the PDO::CASE_*
constants. |
ATTR_CURSOR_NAME |
Get or set the name to use for a cursor. Most useful when using
scrollable cursors and positioned updates. |
ATTR_CURSOR |
Selects the cursor type. PDO currently supports either
PDO::CURSOR_FWDONLY and
PDO::CURSOR_SCROLL. Stick with
PDO::CURSOR_FWDONLY unless you know that you need a
scrollable cursor. |
ATTR_ORACLE_NULLS |
Convert empty strings to SQL NULL values on data fetches. |
ATTR_PERSISTENT |
Request a persistent connection, rather than creating a new connection. |
ATTR_STATEMENT_CLASS |
Sets the class name of which statements are returned as. |
ATTR_FETCH_TABLE_NAMES |
Prepend the containing table name to each column name returned in the
result set. The table name and column name are separated by a decimal (.)
character. Support of this attribute is at the driver level; it may not
be supported by your driver. |
ATTR_FETCH_CATALOG_NAMES |
Prepend the containing catalog name to each column name returned in the
result set. The catalog name and column name are separated by a decimal
(.) character. Support of this attribute is at the driver level; it may
not be supported by your driver. |
ATTR_DRIVER_NAME |
Returns the name of the driver. using PDO::ATTR_DRIVER_NAME ``` if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') { echo "Running on mysql; doing something mysql specific here\n"; } ``` |
ATTR_STRINGIFY_FETCHES |
Forces all values fetched to be treated as strings. |
ATTR_MAX_COLUMN_LEN |
Sets the maximum column name length. |
ATTR_EMULATE_PREPARES
Since: 5.1.3
|
|
ATTR_DEFAULT_FETCH_MODE
Since: 5.2
|
|
ERRMODE_SILENT |
Do not raise an error or exception if an error occurs. The developer is
expected to explicitly check for errors. This is the default mode. |
ERRMODE_WARNING |
Issue a PHP E_WARNING message if an error occurs. |
ERRMODE_EXCEPTION |
Throw a PDOException if an error occurs. |
CASE_NATURAL |
Leave column names as returned by the database driver. |
CASE_LOWER |
Force column names to lower case. |
CASE_UPPER |
Force column names to upper case. |
NULL_NATURAL |
|
NULL_EMPTY_STRING |
|
NULL_TO_STRING |
|
ERR_NONE |
Corresponds to SQLSTATE '00000', meaning that the SQL statement was
successfully issued with no errors or warnings. This constant is for
your convenience when checking PDO::errorCode or
PDOStatement::errorCode to determine if an error
occurred. You will usually know if this is the case by examining the
return code from the method that raised the error condition anyway. |
FETCH_ORI_NEXT |
Fetch the next row in the result set. Valid only for scrollable cursors. |
FETCH_ORI_PRIOR |
Fetch the previous row in the result set. Valid only for scrollable
cursors. |
FETCH_ORI_FIRST |
Fetch the first row in the result set. Valid only for scrollable cursors. |
FETCH_ORI_LAST |
Fetch the last row in the result set. Valid only for scrollable cursors. |
FETCH_ORI_ABS |
Fetch the requested row by row number from the result set. Valid only
for scrollable cursors. |
FETCH_ORI_REL |
Fetch the requested row by relative position from the current position
of the cursor in the result set. Valid only for scrollable cursors. |
FETCH_DEFAULT
Since: 8.0.7
|
Specifies that the default fetch mode shall be used. |
CURSOR_FWDONLY |
Create a PDOStatement object with a forward-only cursor. This is the
default cursor choice, as it is the fastest and most common data access
pattern in PHP. |
CURSOR_SCROLL |
Create a PDOStatement object with a scrollable cursor. Pass the
PDO::FETCHORI* constants to control the rows fetched from the result set. |
MYSQL_ATTR_USE_BUFFERED_QUERY |
If this attribute is set to TRUE on a
PDOStatement, the MySQL driver will use the
buffered versions of the MySQL API. If you're writing portable code, you
should use PDOStatement::fetchAll instead. Forcing queries to be buffered in mysql ``` if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') { $stmt = $db->prepare('select * from foo', array(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true)); } else { die("my application only works with mysql; I should use \$stmt->fetchAll() instead"); } ``` |
MYSQL_ATTR_LOCAL_INFILE |
Enable LOAD LOCAL INFILE. Note, this constant can only be used in the driver_options array when constructing a new database handle. |
MYSQL_ATTR_INIT_COMMAND |
Command to execute when connecting to the MySQL server. Will
automatically be re-executed when reconnecting. Note, this constant can only be used in the driver_options array when constructing a new database handle. |
MYSQL_ATTR_MAX_BUFFER_SIZE |
Maximum buffer size. Defaults to 1 MiB. This constant is not supported when
compiled against mysqlnd. |
MYSQL_ATTR_READ_DEFAULT_FILE |
Read options from the named option file instead of from
my.cnf. This option is not available if
mysqlnd is used, because mysqlnd does not read the mysql
configuration files. |
MYSQL_ATTR_READ_DEFAULT_GROUP |
Read options from the named group from my.cnf or the
file specified with MYSQL_READ_DEFAULT_FILE. This option
is not available if mysqlnd is used, because mysqlnd does not read the mysql
configuration files. |
MYSQL_ATTR_COMPRESS |
Enable network communication compression. This is not supported when
compiled against mysqlnd. |
MYSQL_ATTR_DIRECT_QUERY |
Perform direct queries, don't use prepared statements. |
MYSQL_ATTR_FOUND_ROWS |
Return the number of found (matched) rows, not the
number of changed rows. |
MYSQL_ATTR_IGNORE_SPACE |
Permit spaces after function names. Makes all functions
names reserved words. |
MYSQL_ATTR_SERVER_PUBLIC_KEY |
|
MYSQL_ATTR_SSL_KEY
Since: 5.3.7
|
The file path to the SSL key. |
MYSQL_ATTR_SSL_CERT
Since: 5.3.7
|
The file path to the SSL certificate. |
MYSQL_ATTR_SSL_CA
Since: 5.3.7
|
The file path to the SSL certificate authority. |
MYSQL_ATTR_SSL_CAPATH
Since: 5.3.7
|
The file path to the directory that contains the trusted SSL
CA certificates, which are stored in PEM format. |
MYSQL_ATTR_SSL_CIPHER
Since: 5.3.7
|
A list of one or more permissible ciphers to use for SSL encryption,
in a format understood by OpenSSL. For example: DHE-RSA-AES256-SHA:AES128-SHA |
MYSQL_ATTR_MULTI_STATEMENTS
Since: 5.5.21
|
Disables multi query execution in both {[PDO](https://www.php.net/PDO) and {[PDO](https://www.php.net/PDO) when set to FALSE. Note, this constant can only be used in the driver_options array when constructing a new database handle. |
MYSQL_ATTR_SSL_VERIFY_SERVER_CERT
Since: 7.0.18
|
Disables SSL peer verification when set to FALSE. |
MYSQL_ATTR_LOCAL_INFILE_DIRECTORY
Since: 8.1
|
|
PGSQL_ASSOC |
|
PGSQL_ATTR_DISABLE_NATIVE_PREPARED_STATEMENT |
|
PGSQL_ATTR_DISABLE_PREPARES
Since: 5.6
|
|
PGSQL_BAD_RESPONSE |
|
PGSQL_BOTH |
|
PGSQL_TRANSACTION_IDLE |
|
PGSQL_TRANSACTION_ACTIVE |
|
PGSQL_TRANSACTION_INTRANS |
|
PGSQL_TRANSACTION_INERROR |
|
PGSQL_TRANSACTION_UNKNOWN |
|
PGSQL_CONNECT_ASYNC |
|
PGSQL_CONNECT_FORCE_NEW |
|
PGSQL_CONNECTION_AUTH_OK |
|
PGSQL_CONNECTION_AWAITING_RESPONSE |
|
PGSQL_CONNECTION_BAD |
|
PGSQL_CONNECTION_OK |
|
PGSQL_CONNECTION_MADE |
|
PGSQL_CONNECTION_SETENV |
|
PGSQL_CONNECTION_SSL_STARTUP |
|
PGSQL_CONNECTION_STARTED |
|
PGSQL_COMMAND_OK |
|
PGSQL_CONV_FORCE_NULL |
|
PGSQL_CONV_IGNORE_DEFAULT |
|
PGSQL_CONV_IGNORE_NOT_NULL |
|
PGSQL_COPY_IN |
|
PGSQL_COPY_OUT |
|
PGSQL_DIAG_CONTEXT |
|
PGSQL_DIAG_INTERNAL_POSITION |
|
PGSQL_DIAG_INTERNAL_QUERY |
|
PGSQL_DIAG_MESSAGE_DETAIL |
|
PGSQL_DIAG_MESSAGE_HINT |
|
PGSQL_DIAG_MESSAGE_PRIMARY |
|
PGSQL_DIAG_SEVERITY |
|
PGSQL_DIAG_SOURCE_FILE |
|
PGSQL_DIAG_SOURCE_FUNCTION |
|
PGSQL_DIAG_SOURCE_LINE |
|
PGSQL_DIAG_SQLSTATE |
|
PGSQL_DIAG_STATEMENT_POSITION |
|
PGSQL_DML_ASYNC |
|
PGSQL_DML_EXEC |
|
PGSQL_DML_NO_CONV |
|
PGSQL_DML_STRING |
|
PGSQL_DML_ESCAPE |
|
PGSQL_EMPTY_QUERY |
|
PGSQL_ERRORS_DEFAULT |
|
PGSQL_ERRORS_TERSE |
|
PGSQL_ERRORS_VERBOSE |
|
PGSQL_FATAL_ERROR |
|
PGSQL_NONFATAL_ERROR |
|
PGSQL_NOTICE_ALL |
|
PGSQL_NOTICE_CLEAR |
|
PGSQL_NOTICE_LAST |
|
PGSQL_NUM |
|
PGSQL_POLLING_ACTIVE |
|
PGSQL_POLLING_FAILED |
|
PGSQL_POLLING_OK |
|
PGSQL_POLLING_READING |
|
PGSQL_POLLING_WRITING |
|
PGSQL_SEEK_CUR |
|
PGSQL_SEEK_END |
|
PGSQL_SEEK_SET |
|
PGSQL_STATUS_LONG |
|
PGSQL_STATUS_STRING |
|
PGSQL_TUPLES_OK |
|
SQLSRV_TXN_READ_UNCOMMITTED |
|
SQLSRV_TXN_READ_COMMITTED |
|
SQLSRV_TXN_REPEATABLE_READ |
|
SQLSRV_TXN_SNAPSHOT |
|
SQLSRV_TXN_SERIALIZABLE |
|
SQLSRV_ENCODING_BINARY |
|
SQLSRV_ENCODING_SYSTEM |
|
SQLSRV_ENCODING_UTF8 |
|
SQLSRV_ENCODING_DEFAULT |
|
SQLSRV_ATTR_ENCODING |
|
SQLSRV_ATTR_QUERY_TIMEOUT |
|
SQLSRV_ATTR_DIRECT_QUERY |
|
SQLSRV_ATTR_CURSOR_SCROLL_TYPE |
|
SQLSRV_ATTR_CLIENT_BUFFER_MAX_KB_SIZE |
|
SQLSRV_ATTR_FETCHES_NUMERIC_TYPE |
|
SQLSRV_ATTR_FETCHES_DATETIME_TYPE |
|
SQLSRV_ATTR_FORMAT_DECIMALS |
|
SQLSRV_ATTR_DECIMAL_PLACES |
|
SQLSRV_ATTR_DATA_CLASSIFICATION |
|
SQLSRV_PARAM_OUT_DEFAULT_SIZE |
|
SQLSRV_CURSOR_KEYSET |
|
SQLSRV_CURSOR_DYNAMIC |
|
SQLSRV_CURSOR_STATIC |
|
SQLSRV_CURSOR_BUFFERED |
|
SQLITE_ATTR_READONLY_STATEMENT
Since: 7.4
|
|
SQLITE_ATTR_EXTENDED_RESULT_CODES
Since: 7.4
|
|
OCI_ATTR_ACTION
Since: 7.2.16
|
Provides a way to specify the action on the database session. |
OCI_ATTR_CLIENT_INFO
Since: 7.2.16
|
Provides a way to specify the client info on the database session. |
OCI_ATTR_CLIENT_IDENTIFIER
Since: 7.2.16
|
Provides a way to specify the client identifier on the database session. |
OCI_ATTR_MODULE
Since: 7.2.16
|
Provides a way to specify the module on the database session. |
OCI_ATTR_CALL_TIMEOUT
Since: 8.0
|
The number of milliseconds to wait for individual round trips to the database to complete before timing out. |
FB_ATTR_DATE_FORMAT |
Sets the date format. |
FB_ATTR_TIME_FORMAT |
Sets the time format. |
FB_ATTR_TIMESTAMP_FORMAT |
Sets the timestamp format. |
DETERMINISTIC |
|
OPEN_READONLY |
|
OPEN_READWRITE |
|
OPEN_CREATE |
|
ATTR_OPEN_FLAGS |
|
ATTR_READONLY_STATEMENT |
|
ATTR_EXTENDED_RESULT_CODES |
|
Methods
(PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
Creates a PDO instance representing a connection to a database
(PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
Prepares a statement for execution and returns a statement object
(PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
Initiates a transaction
Turns off autocommit mode. While autocommit mode is turned off, changes made to the database via the PDO object instance are not committed until you end the transaction by calling [PDO](https://www.php.net/PDO).
(PHP 5 >= 5.3.3, Bundled pdo_pgsql, PHP 7)
Checks if inside a transaction
(PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
Set an attribute
(PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
Execute an SQL statement and return the number of affected rows
(PHP 5 >= 5.1.0, PHP 7, PHP 8, PECL pdo >= 0.2.0)
Executes an SQL statement, returning a result set as a PDOStatement object
(PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
Returns the ID of the last inserted row or sequence value
(PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
Fetch the SQLSTATE associated with the last operation on the database handle
(PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
Fetch extended error information associated with the last operation on the database handle
(PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.0)
Retrieve a database connection attribute
(PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.1)
Quotes a string for use in a query.
(PHP 5 >= 5.1.3, PHP 7, PECL pdo >= 1.0.3)
Return an array of available PDO drivers
(PHP 5 >= 5.1.0, PHP 7, PECL pdo_sqlite >= 1.0.0)
Registers an aggregating User Defined Function for use in SQL statements
(PHP 5 >= 5.3.11, PHP 7)
Registers a User Defined Function for use as a collating function in SQL statements
(PHP 5 >= 5.1.0, PHP 7, PECL pdo_sqlite >= 1.0.0)
Registers a User Defined Function for use in SQL statements
(PHP 5 >= 5.3.3, PHP 7, PHP 8)
Copy data from PHP array into table
(PHP 5 >= 5.3.3, PHP 7, PHP 8)
Copy data from file into table
(PHP 5 >= 5.3.3, PHP 7, PHP 8)
Copy data from database table into PHP array
(PHP 5 >= 5.3.3, PHP 7, PHP 8)
Copy data from table into file
(PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL pdo_pgsql >= 1.0.2)
Creates a new large object
(PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL pdo_pgsql >= 1.0.2)
Opens an existing large object stream
(PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL pdo_pgsql >= 1.0.2)
Deletes the large object
(PHP 5 >= 5.6.0, PHP 7, PHP 8)
Get asynchronous notification
No description
No description
No description
No description
No description
No description
Details
in
PDO at line 931
__construct(string $dsn, string $username = null, string $password = null, array $options = null)
(PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
Creates a PDO instance representing a connection to a database
in
PDO at line 965
PDOStatement|false
prepare(string $query, array $options = [])
(PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
Prepares a statement for execution and returns a statement object
in
PDO at line 995
bool
beginTransaction()
(PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
Initiates a transaction
Turns off autocommit mode. While autocommit mode is turned off, changes made to the database via the PDO object instance are not committed until you end the transaction by calling [PDO](https://www.php.net/PDO).
Calling PDO will roll back all changes to the database and return the connection to autocommit mode.
Some databases, including MySQL, automatically issue an implicit COMMIT when a database definition language (DDL) statement such as DROP TABLE or CREATE TABLE is issued within a transaction. The implicit COMMIT will prevent you from rolling back any other changes within the transaction boundary.
in
PDO at line 1005
bool
commit()
(PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
Commits a transaction
in
PDO at line 1015
bool
rollBack()
(PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
Rolls back a transaction
in
PDO at line 1024
bool
inTransaction()
(PHP 5 >= 5.3.3, Bundled pdo_pgsql, PHP 7)
Checks if inside a transaction
in
PDO at line 1035
bool
setAttribute(int $attribute, mixed $value)
(PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
Set an attribute
in
PDO at line 1069
int|false
exec(string $statement)
(PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
Execute an SQL statement and return the number of affected rows
in
PDO at line 1120
PDOStatement|false
query(string $query, int|null $fetchMode = null, ...$fetchModeArgs)
(PHP 5 >= 5.1.0, PHP 7, PHP 8, PECL pdo >= 0.2.0)
Executes an SQL statement, returning a result set as a PDOStatement object
in
PDO at line 1151
string|false
lastInsertId(string $name = null)
(PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
Returns the ID of the last inserted row or sequence value
in
PDO at line 1180
string|null
errorCode()
(PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
Fetch the SQLSTATE associated with the last operation on the database handle
in
PDO at line 1222
array
errorInfo()
(PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
Fetch extended error information associated with the last operation on the database handle
in
PDO at line 1249
mixed
getAttribute(int $attribute)
(PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.0)
Retrieve a database connection attribute
in
PDO at line 1266
string|false
quote(string $string, int $type = PDO::PARAM_STR)
(PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.1)
Quotes a string for use in a query.
in
PDO at line 1272
final
__wakeup()
No description
in
PDO at line 1274
final
__sleep()
No description
in
PDO at line 1283
static array
getAvailableDrivers()
(PHP 5 >= 5.1.3, PHP 7, PECL pdo >= 1.0.3)
Return an array of available PDO drivers
in
PDO at line 1304
bool
sqliteCreateAggregate(string $function_name, callable $step_func, callable $finalize_func, int $num_args = -1)
(PHP 5 >= 5.1.0, PHP 7, PECL pdo_sqlite >= 1.0.0)
Registers an aggregating User Defined Function for use in SQL statements
in
PDO at line 1318
bool
sqliteCreateCollation(string $name, callable $callback)
(PHP 5 >= 5.3.11, PHP 7)
Registers a User Defined Function for use as a collating function in SQL statements
in
PDO at line 1341
bool
sqliteCreateFunction(string $function_name, callable $callback, int $num_args = -1, int $flags = 0)
(PHP 5 >= 5.1.0, PHP 7, PECL pdo_sqlite >= 1.0.0)
Registers a User Defined Function for use in SQL statements
in
PDO at line 1364
bool
pgsqlCopyFromArray(string $tableName, array $rows, string $separator = "\t", string $nullAs = "\\\\N", string|null $fields = null)
(PHP 5 >= 5.3.3, PHP 7, PHP 8)
Copy data from PHP array into table
in
PDO at line 1387
bool
pgsqlCopyFromFile(string $tableName, string $filename, string $separator = "\t", string $nullAs = "\\\\N", string|null $fields = null)
(PHP 5 >= 5.3.3, PHP 7, PHP 8)
Copy data from file into table
in
PDO at line 1407
array|false
pgsqlCopyToArray(string $tableName, string $separator = "\t", string $nullAs = "\\\\N", string|null $fields = null)
(PHP 5 >= 5.3.3, PHP 7, PHP 8)
Copy data from database table into PHP array
in
PDO at line 1430
bool
pgsqlCopyToFile(string $tableName, string $filename, string $separator = "\t", string $nullAs = "\\\\N", string|null $fields = null)
(PHP 5 >= 5.3.3, PHP 7, PHP 8)
Copy data from table into file
in
PDO at line 1439
string|false
pgsqlLOBCreate()
(PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL pdo_pgsql >= 1.0.2)
Creates a new large object
in
PDO at line 1453
resource|false
pgsqlLOBOpen(string $oid, string $mode = "rb")
(PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL pdo_pgsql >= 1.0.2)
Opens an existing large object stream
in
PDO at line 1464
bool
pgsqlLOBUnlink(string $oid)
(PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL pdo_pgsql >= 1.0.2)
Deletes the large object
in
PDO at line 1479
array|false
pgsqlGetNotify(int $fetchMode = PDO::FETCH_DEFAULT, int $timeoutMilliseconds = 0)
(PHP 5 >= 5.6.0, PHP 7, PHP 8)
Get asynchronous notification
in
PDO at line 1487
int
pgsqlGetPid()
(PHP 5 >= 5.6.0, PHP 7, PHP 8)
Get the server PID
in
PDO at line 1492
static PDO
connect(string $dsn, string|null $username = null, string|null $password = null, array|null $options = null)
No description
bool
createAggregate(string $name, callable $step, callable $finalize, int $numArgs = -1)
No description
bool
createCollation(string $name, callable $callback)
No description
bool
createFunction(string $function_name, callable $callback, int $num_args = -1, int $flags = 0)
No description
void
loadExtension(string $name)
No description
resource|false
openBlob(string $table, string $column, int $rowid, string|null $dbname = "main", int $flags = \Pdo\Sqlite::OPEN_READONLY)
No description