亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? sqlite3.php

?? 我收集的Sqlite的PHP模塊
?? PHP
字號:
<?php/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: *//** * The PEAR DB driver for PHP's sqlite3 extension * for interacting with SQLite3 databases * * PHP versions 4 and 5 * * LICENSE: This source file is subject to version 3.0 of the PHP license * that is available through the world-wide-web at the following URI: * http://www.php.net/license/3_0.txt.  If you did not receive a copy of * the PHP License and are unable to obtain it through the web, please * send a note to license@php.net so we can mail you a copy immediately. * * @category   Database * @package    DB * @author     Bruno Fleisch  * @copyright  1997-2005 The PHP Group * @license    http://www.php.net/license/3_0.txt  PHP License 3.0 3.0 * @version    CVS: $Id: sqlite3.php,v 1.3 2007/04/04 14:13:19 bfleisch Exp $ * @link       http://pear.php.net/package/DB */include_once 'DB/common.php';/** * The methods PEAR DB uses to interact with PHP's sqlite extension * for interacting with SQLite databases * * These methods overload the ones declared in DB_common. * */ class DB_sqlite3 extends DB_common{  // {{{ PROPERTIES    var $phptype = 'sqlite3';    // }}}  // {{{ constructor    /**   * constructor   *   * @return void   */    function DB_sqlite3()  {    $this->DB_common();  }      // }}}  // {{{ string errorNative(void)  /**   * Gets the DBMS' native error code produced by the last query   *   * @return mixed  the DBMS' error code.  A DB_Error object on failure.   */    function errorNative()  {    return sqlite3_error ($this->connection);  }    // }}}  // {{{ mixed connect(array $dsn, bool $persitent)    /**    * create or connect to the specified database.   *   * @param array $dsn         the data source name   * @param bool  $persitent   if the connection is persitent   *   * @return   DB_OK on success or  DB_error object on failure   */       function connect($dsn, $persitent = false)  {    $this->connection = sqlite3_open ($dsn['database']);    if (!$this->connection)     return $this->raiseError(DB_ERROR_NODBSELECTED);        return DB_OK;  }    // }}}  // {{{ bool disconnect (void)        /**   *  release all resources for this connection, and close database   *   * @return bool   TRUE on sucess, FALSE otherwise.   */    function disconnect()  {    return sqlite3_close ($this->connection);  }    // }}}  // {{{ mixed simpleQuery(string $sql)    /**   * execute a SQL query.   *   * @param string $query  the SQL query    *   * @return mixed + object DB_error object on failure   *               + object Result resource for SELECT requests   *               + bool TRUE for other sucessful requests   */    function simpleQuery($query)  {      $isSelect = preg_match ("/^\s*SELECT/i", $query);     if (! $isSelect)      $this->result = sqlite3_exec($this->connection, $query);    else      $this->result = sqlite3_query($this->connection, $query);        if (!$this->result)       return $this->RaiseError($this->errorNative());        return $this->result;  }    // }}}  // {{{  mixed fetchInto(resource $res, array $arr, int $fetchmode [, int $rownum])    /**     * Fetch a row of data into an array which is passed by reference     *     * The type of array returned can be controlled either by setting this     * method's <var>$fetchmode</var> parameter or by changing the default     * fetch mode setFetchMode() before calling this method.     *     * There are two options for standardizing the information returned     * from databases, ensuring their values are consistent when changing     * DBMS's.  These portability options can be turned on when creating a     * new DB object or by using setOption().     *     *   + <var>DB_PORTABILITY_LOWERCASE</var>     *     convert names of fields to lower case     *     *   + <var>DB_PORTABILITY_RTRIM</var>     *     right trim the data     *     * @param resource $result     the result resource      * @param array    &$arr       the variable where the data should be placed     * @param int      $fetchmode  the constant indicating how to format the data     * @param int      $rownum     the row number to fetch (index starts at 0)     *     * @return mixed  DB_OK if a row is processed, NULL when the end of the     *                 result set is reached or a DB_Error object on failure     *     * @see DB_common::setOption(), DB_common::setFetchMode()     */       function fetchInto($result, &$arr, $fetchmode, $rownum = null)    {          if ($rownum !==NULL)        return $this->RaiseError (DB_ERROR_NOTIMPLEMENTED);              switch ($fetchmode)      {                case DB_FETCHMODE_ORDERED:          $fetchfunc="sqlite3_fetch";          break;                   case DB_FETCHMODE_OBJECT:          return $this->RaiseError(DB_ERROR_NODBSELECTED);          break;                 case DB_FETCHMODE_ASSOC:       default:           $fetchfunc="sqlite3_fetch_array";          break;      }            $arr = $fetchfunc($result);            if ($arr)         return DB_OK;            return NULL;    }    	// }}}      // {{{  string modifyLimitQuery(string $query, int $from, int $count [,mixed $params])             /**     * Adds LIMIT clauses to a query string according to current DBMS standards     *     * It is defined here to assure that all implementations     * have this method defined.     *     * @param string $query   the query to modify     * @param int    $from    the row to start to fetching (0 = the first row)     * @param int    $count   the numbers of rows to fetch     * @param 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.     *     * @return string  the query string with LIMIT clauses added     *     * @access protected     */         function modifyLimitQuery($query, $from, $count, $params = array())    {      return "$query LIMIT $count OFFSET $from";    }            // }}}     // {{{ bool freeResult(void)            /**     * free the specified result.     *     * @param resource $result   the query resource result     *     * @return bool    DB_OK     *     */          function freeResult($result)     {         sqlite3_query_close($result);         return DB_OK; /* always sucessful ! */     }          // }}}     // {{{ int affectedRow(void)         /**     * Determines the number of rows affected by a data maniuplation query     *     * 0 is returned for queries that don't manipulate data.     *     * @return int  the number of rows.  A DB_Error object on failure.     */           function affectedRows()     {       return sqlite3_changes ($this->connection);     }          // }}}     // {{{ mixed numCols(resource $result)         /**     * Get the the number of columns in a result set     *     * @return int  the number of columns.  A DB_Error object on failure.     */          function numCols($result)     {	     return sqlite3_column_count($result);     }               // }}}     // {{{ mixed createSequence(string $seq_name)          /**     * Creates a new sequence     *     * The name of a given sequence is determined by passing the string     * provided in the <var>$seq_name</var> argument through PHP's sprintf()     * function using the value from the <var>seqname_format</var> option as     * the sprintf()'s format argument.     *     * <var>seqname_format</var> is set via setOption().     *     * @param string $seq_name  name of the new sequence     *     * @return int  DB_OK on success.  A DB_Error object on failure.     *     * @see DB_common::dropSequence(), DB_common::getSequenceName(),     *      DB_common::nextID()     */         function createSequence($seq_name)    {        return $this->query ("CREATE TABLE  " . $this->getSequenceName($seq_name) . " (id INTEGER PRIMARY KEY AUTOINCREMENT)");    }        // }}}    // {{{ mixed nextId(string $sequence [, bool $ondemand])        /**     * Returns the next free id in a sequence     *     * @param string  $seq_name  name of the sequence     * @param boolean $ondemand  when true, the seqence is automatically     *                            created if it does not exist     *     * @return int  the next id number in the sequence.     *               A DB_Error object on failure.     *     * @see DB_common::createSequence(), DB_common::dropSequence(),     *      DB_common::getSequenceName()     */    function nextId($seq_name, $ondemand = true)    {          $sqn = $this->getSequenceName($seq_name);            if ($ondemand)      {        $tables = $this->getTables();        if (DB::isError($tables)) return $tables;                if (! in_array ($sqn, $tables))        {          $res = $this->createSequence($seq_name);          if ( DB::isError($res))              return $res;                   }      }            $res = $this->query ("INSERT INTO " . $sqn . " VALUES (NULL)");      if (DB::isError($res)) return $res;            return sqlite3_last_insert_rowid ($this->connection);          }        // }}}    // {{{ mixed dropSequence (string $seq_name)         /**     * Deletes a sequence     *     * @param string $seq_name  name of the sequence to be deleted     *     * @return int  DB_OK on success.  A DB_Error object on failure.     *     * @see DB_common::createSequence(), DB_common::getSequenceName(),     *      DB_common::nextID()     */    function dropSequence($seq_name)    {        return $this->query("DROP TABLE ". $this->getSequenceName($seq_name));    }        // }}}    // {{{ string getSpecialQuery(string $type)         /**     * Obtains the query string needed for listing a given type of objects     *     * @param string $type  the kind of objects you want to retrieve     *     * @return string  the SQL query string or null if the driver doesn't     *                  support the object type requested     *     * @access protected     * @see DB_common::getListOf()     */         function getSpecialQuery($type)    {        switch ($type) {            case 'tables':                return "SELECT name FROM SQLITE_MASTER ORDER BY name";            default:                 return $this->raiseError(DB_ERROR_UNSUPPORTED);        }    }        // }}}}  ?>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区二区三区精品| 国产欧美日韩亚州综合| 欧美国产精品一区二区| 一区二区三区日本| 国产精品18久久久久久vr| 一本色道亚洲精品aⅴ| 精品国产一区a| 性做久久久久久久免费看| 波多野结衣欧美| 久久久久亚洲蜜桃| 奇米影视一区二区三区小说| 一本大道久久a久久综合婷婷 | 中文字幕亚洲一区二区av在线| 日韩专区在线视频| 91久久精品日日躁夜夜躁欧美| 久久精品亚洲精品国产欧美kt∨| 亚洲国产aⅴ成人精品无吗| aaa国产一区| 欧美国产欧美综合| 国产夫妻精品视频| 久久久久久久综合日本| 麻豆国产91在线播放| 4438x亚洲最大成人网| 亚洲一卡二卡三卡四卡五卡| 91小宝寻花一区二区三区| 久久精品免视看| 高清在线不卡av| 中文字幕精品一区二区三区精品| 久久精品99国产精品| 欧美草草影院在线视频| 青青草成人在线观看| 日韩一级视频免费观看在线| 日日夜夜精品免费视频| 欧美一区二区三区不卡| 免费成人av在线播放| 日韩欧美激情四射| 久久99精品国产| 久久久99精品免费观看不卡| 国产精品白丝jk黑袜喷水| 欧美激情在线一区二区| 波多野结衣欧美| 亚洲激情中文1区| 欧美少妇性性性| 麻豆专区一区二区三区四区五区| 日韩欧美国产一区二区在线播放| 精品一区二区日韩| 久久精品无码一区二区三区| 白白色 亚洲乱淫| 一区二区三区日韩在线观看| 欧美日韩一区二区三区不卡| 三级精品在线观看| 国产网站一区二区| 91丨九色丨蝌蚪富婆spa| 亚洲一区精品在线| 欧美成人精品福利| 懂色av一区二区在线播放| 亚洲精品欧美综合四区| 69堂精品视频| 丁香婷婷综合激情五月色| 一区二区三区国产豹纹内裤在线| 欧美狂野另类xxxxoooo| 国产一区二区在线免费观看| 国产精品久久久久久久裸模 | 日韩一区二区精品| 国产高清无密码一区二区三区| 1区2区3区国产精品| 欧美丰满一区二区免费视频| 久草这里只有精品视频| 亚洲欧洲精品天堂一级| 91精品婷婷国产综合久久竹菊| 国产一区 二区 三区一级| 一区二区三区日韩精品| 精品国产一区二区三区久久影院| 色婷婷av一区二区三区软件 | 日韩不卡一区二区三区| 国产欧美一二三区| 欧美美女激情18p| 成人av电影在线| 久久精品国产99国产| 一区二区三区精品视频在线| 久久久99精品免费观看不卡| 欧美三级韩国三级日本三斤| 国产成+人+日韩+欧美+亚洲| 日韩国产精品91| 亚洲欧美日韩久久| 国产亚洲婷婷免费| 欧美一级欧美三级| 在线精品亚洲一区二区不卡| 国产成人小视频| 免费成人性网站| 日韩中文字幕麻豆| 一个色在线综合| 国产精品成人免费| 欧美激情一区二区三区全黄| 欧美一三区三区四区免费在线看| 色国产综合视频| 成人av网站在线观看免费| 精品一区二区久久久| 偷拍亚洲欧洲综合| 亚洲一二三四在线| 亚洲精品第一国产综合野| 国产精品的网站| 国产精品传媒在线| 国产精品美女久久久久av爽李琼| 久久久久久久久久美女| 欧美不卡一区二区三区四区| 欧美一区二区三区在线观看视频| 在线视频国产一区| 色猫猫国产区一区二在线视频| av一二三不卡影片| 北条麻妃一区二区三区| jizzjizzjizz欧美| 99re6这里只有精品视频在线观看| 国产91丝袜在线播放九色| 国产一区二区剧情av在线| 国产乱对白刺激视频不卡| 久久爱另类一区二区小说| 久久av中文字幕片| 国产一区二区三区免费播放| 国产在线国偷精品产拍免费yy| 久久99深爱久久99精品| 国产一区二区精品久久99| 夫妻av一区二区| 99久久99久久精品国产片果冻| youjizz久久| 欧美午夜精品久久久| 欧美欧美欧美欧美| 日韩欧美中文字幕精品| 26uuu色噜噜精品一区| 久久久噜噜噜久噜久久综合| 国产亚洲欧美激情| 亚洲欧美在线观看| 亚洲成人三级小说| 国产在线麻豆精品观看| 国产电影一区二区三区| 99精品偷自拍| 欧美狂野另类xxxxoooo| 久久午夜羞羞影院免费观看| 国产精品久久久久国产精品日日| 亚洲免费观看高清| 蜜桃精品在线观看| 丁香激情综合国产| 欧美三级资源在线| 久久久国产午夜精品| 一区免费观看视频| 美日韩黄色大片| 91亚洲精品乱码久久久久久蜜桃| 69久久99精品久久久久婷婷| 精品国产乱码久久久久久图片 | 色综合天天综合狠狠| 91精品国产色综合久久| 国产欧美一区二区三区鸳鸯浴| 亚洲美女偷拍久久| 久久99在线观看| 在线看一区二区| 久久综合精品国产一区二区三区 | 色呦呦国产精品| 欧美精品一区二区三区一线天视频| 国产精品看片你懂得| 免费成人你懂的| 欧美性感一类影片在线播放| 精品国产91乱码一区二区三区 | 日韩一区二区三区电影| 中文字幕色av一区二区三区| 蜜桃视频在线一区| 91麻豆swag| 久久久亚洲午夜电影| 五月天婷婷综合| 91美女视频网站| 久久精品男人天堂av| 日本成人在线不卡视频| 99精品视频在线免费观看| 日韩欧美国产综合一区 | 亚洲一区二区三区视频在线播放| 亚洲大片一区二区三区| 石原莉奈在线亚洲二区| ㊣最新国产の精品bt伙计久久| 久久综合色天天久久综合图片| 中文字幕精品在线不卡| 欧美一级淫片007| 日产国产欧美视频一区精品| 国产欧美一区二区精品婷婷 | 91理论电影在线观看| 色老综合老女人久久久| 日韩午夜激情视频| 国产日韩欧美a| 国产欧美日韩视频一区二区| 成人午夜短视频| 2021久久国产精品不只是精品| 日韩av中文字幕一区二区三区| 欧美一级片在线| 91美女在线观看| 天天影视涩香欲综合网| 国产精品99久| 舔着乳尖日韩一区| 国产精品国产三级国产三级人妇 | 日韩一区二区高清| 久久精品国产亚洲一区二区三区| 91精品国产综合久久福利| 日本网站在线观看一区二区三区 |