Vergleich inc/db_base.php - 1.8.6 - 1.8.30

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 8Zeile 8
 *
*/


 *
*/


 
/**
* @property string title The title of the database access layer.
* @property string short_title The short title of the database access layer.
* @property string type The type of db software being used.
* @property int query_count A count of the number of queries.
* @property array querylist A list of the performed queries.
* @property float query_time The time spent performing queries.
* @property string engine The engine used to run the SQL database.
* @property bool can_search Whether or not this engine can use the search functionality.
*/

interface DB_Base
{
/**

interface DB_Base
{
/**

Zeile 348Zeile 358
	 *
* @param string $table The table
* @param array $replacements The replacements

	 *
* @param string $table The table
* @param array $replacements The replacements

 
	 * @param string|array $default_field The default field(s)
* @param boolean $insert_id Whether or not to return an insert id. True by default

	 */

	 */

	function replace_query($table, $replacements=array());

	function replace_query($table, $replacements=array(), $default_field="", $insert_id=true);


/**
* Drops a column


/**
* Drops a column

Zeile 373Zeile 385
	 *
* @param string $table The table
* @param string $column The column name

	 *
* @param string $table The table
* @param string $column The column name

	 * @param string $new_definition The new column definition




	 * @param string $new_definition the new column definition
* @param boolean|string $new_not_null Whether to "drop" or "set" the NOT NULL attribute (no change if false)
* @param boolean|string $new_default_value The new default value, or false to drop the attribute
* @return bool Returns true if all queries are executed successfully or false if one of them failed

	 */

	 */

	function modify_column($table, $column, $new_definition);

	function modify_column($table, $column, $new_definition, $new_not_null=false, $new_default_value=false);


/**
* Renames a column
*
* @param string $table The table
* @param string $old_column The old column name


/**
* Renames a column
*
* @param string $table The table
* @param string $old_column The old column name

	 * @param string $new_column The new column name
* @param string $new_definition The new column definition




	 * @param string $new_column the new column name
* @param string $new_definition the new column definition
* @param boolean|string $new_not_null Whether to "drop" or "set" the NOT NULL attribute (no change if false)
* @param boolean|string $new_default_value The new default value, or false to drop the attribute
* @return bool Returns true if all queries are executed successfully

	 */

	 */

	function rename_column($table, $old_column, $new_column, $new_definition);

	function rename_column($table, $old_column, $new_column, $new_definition, $new_not_null=false, $new_default_value=false);


/**
* Sets the table prefix used by the simple select, insert, update and delete functions


/**
* Sets the table prefix used by the simple select, insert, update and delete functions