| DB |
| [ class tree: DB ] [ index: DB ] [ all elements ] |
|
Packages: DB Classes:
DB
Files:DB_common DB_dbase DB_Error DB_fbsql DB_ibase DB_ifx DB_msql DB_mssql DB_mysql DB_mysqli DB_oci8 DB_odbc DB_pgsql DB_result DB_row DB_sqlite DB_storage DB_sybase
common.php
connect.inc DB.php dbase.php errors.inc fbsql.php fetchmodes.inc fetchmode_object.inc ibase.php ifx.php include.inc limit.inc mktable.inc msql.php mssql.php multiconnect.php mysql.php mysqli.php numcols.inc numrows.inc oci8.php odbc.php pgsql.php prepexe.inc sequences.inc simplequery.inc skipif.inc skipif.inc sqlite.php storage.php sybase.php transactions.inc |
[ Top ] $features = array(
|
| Type: | array |
[line 124]
SQLite data types| Type: | array |
[line 61]
The DB driver type (mysql, oci8, odbc, etc.)| Type: | string |
|
|
Don't call this method directly. Use DB::connect() instead.
PEAR DB's sqlite driver supports the following extra DSN options:
1 require_once 'DB.php';
2
3 $dsn = 'sqlite:///path/and/name/of/db/file?mode=0400';
4 $options = array(
5 'portability' => DB_PORTABILITY_ALL,
6 );
7
8 $db =& DB::connect($dsn, $options);
9 if (PEAR::isError($db)) {
10 die($db->getMessage());
11 }
| array | $dsn | — | the data source name |
| bool | $persistent | — | should the connection be persistent? |
|
| string | $seq_name | — | name of the new sequence |
|
|
| string | $seq_name | — | name of the sequence to be deleted |
|
| string | $errormsg | — | the error message returned from the database |
|
|
In SQLite, this makes things safe for inserts/updates, but may cause problems when performing text comparisons against columns containing binary data. See the PHP manual for more info.
| string | $str | — | the string to be escaped |
|
Formating of the array and the data therein are configurable. See DB_result::fetchInto() for more information.
This method is not meant to be called directly. Use DB_result::fetchInto() instead. It can't be declared "protected" because DB_result is a separate object.
| resource | $result | — | the query result resource |
| array | $arr | — | the referenced array to put the data in |
| int | $fetchmode | — | how the resulting array should be indexed |
| int | $rownum | — | the row number to fetch (0 = first row) |
|
This method is not meant to be called directly. Use DB_result::free() instead. It can't be declared "protected" because DB_result is a separate object.
| resource | $result | — | PHP's query result resource |
|
Possible arguments are dev, ino, mode, nlink, uid, gid, rdev, size, atime, mtime, ctime, blksize, blocks or a numeric key between
| string | $arg | — | the array key for stats() |
|
| string | $type | — | the kind of objects you want to retrieve |
| array | $args | — | SQLITE DRIVER ONLY: a private array of arguments used by the getSpecialQuery(). Do not use this directly. |
|
| string | $query | — | the query to modify |
| int | $from | — | the row to start to fetching (0 = the first row) |
| int | $count | — | the numbers of rows to fetch |
| mixed | $params | — | array, string or numeric data to be used in execution of the statement. Quantity of items passed must match quantity of placeholders in query: meaning 1 placeholder for non-array parameters or 1 placeholder per array element. |
|
This little hack lets you know how many rows were deleted when running a "DELETE FROM table" query. Only implemented if the DB_PORTABILITY_DELETE_COUNT portability option is on.
| string | $query | — | the query string to modify |
|
| string | $seq_name | — | name of the sequence |
| boolean | $ondemand | — | when true, the seqence is automatically created if it does not exist |
|
| resource | $result | — | the valid sqlite result resource |
|
This method is not meant to be called directly. Use DB_result::numCols() instead. It can't be declared "protected" because DB_result is a separate object.
| resource | $result | — | PHP's query result resource |
|
This method is not meant to be called directly. Use DB_result::numRows() instead. It can't be declared "protected" because DB_result is a separate object.
| resource | $result | — | PHP's query result resource |
|
NOTICE: This method needs PHP's track_errors ini setting to be on. It is automatically turned on when connecting to the database. Make sure your scripts don't turn it off.
| string | $query | — | the SQL query string |
|
| int | $errno | — | if the error is being manually raised pass a DB_ERROR* constant here. If this isn't passed the error information gathered from the DBMS. |
|
| string | $result | — | a string containing the name of a table |
| int | $mode | — | a valid tableInfo mode |