Location: PHPKode > scripts > KumbiaPHP Framework > kumbiaphp-framework/core/libs/db/adapters/pdo/interface.php
<?php
/**
 * KumbiaPHP web & app Framework
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://wiki.kumbiaphp.com/Licencia
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to hide@address.com so we can send you a copy immediately.
 *
 * Esta interface expone los metodos que se deben implementar en un driver
 * de Kumbia
 * 
 * @category   Kumbia
 * @package    Db
 * @subpackage Adapters 
 * @copyright  Copyright (c) 2005-2009 Kumbia Team (http://www.kumbiaphp.com)
 * @license    http://wiki.kumbiaphp.com/Licencia     New BSD License
 */
interface DbPdoInterface {
	public function initialize();
	public function connect($config);
	public function query($sql);
	public function exec($sql);
	public function fetch_array($resultQuery='', $opt='');
	public function close();
	/**
	 * Este metodo no esta soportado por PDO, usar fetch_all y luego contar con count()
	 *
	 * @param resource $result_query
	 */
	public function num_rows($resultQuery='');
	public function field_name($number, $resultQuery='');
	/**
	 * Este metodo no esta soportado por PDO, usar fetch_all y luego contar con count()
	 *
	 * @param resource $result_query
	 */
	public function data_seek($number, $resultQuery='');
	public function affected_rows($result_query='');
	public function error($err='');
	public function no_error($number=0);
	public function in_query($sql, $type=db::DB_BOTH);
	public function in_query_assoc($sql);
	public function in_query_num($sql);
	public function fetch_one($sql);
	public function fetch_all($sql);
	public function last_insert_id($name='');
	public function insert($table, $values, $pk='');
	public function update($table, $fields, $values, $where_condition=null);
	public function delete($table, $where_condition);
	public function limit($sql);
	public function create_table($table, $definition, $index=array());
	public function drop_table($table, $if_exists=false);
	public function table_exists($table, $schema='');
	public function describe_table($table, $schema='');

}
Return current item: KumbiaPHP Framework