<?php
/**
* OpenSQLManager
*
* Free Database manager for Open Source Databases
* @author Timothy J. Warren
* @copyright Copyright (c) 2012
* @link https://github.com/aviat4ion/OpenSQLManager
* @license http://philsturgeon.co.uk/code/dbad-license
*/
// --------------------------------------------------------------------------
* Abstract parent for database manipulation subclasses
abstract class DB_SQL {
* Get database-specific sql to create a new table
* @abstract
* @param string $name
* @param array $columns
* @param array $constraints
* @param array $indexes
* @return string
abstract public function create_table($name, $columns, array $constraints=array(), array $indexes=array());
* Get database-specific sql to drop a table
abstract public function delete_table($name);
* Get database specific sql for limit clause
* @param string $sql
* @param int $limiit
* @param int $offset
abstract public function limit($sql, $limit, $offset=FALSE);
* Get the sql for random ordering
abstract public function random();
* Return an SQL file with the database table structure
abstract public function backup_structure();
* Return an SQL file with the database data as insert statements
abstract public function backup_data();
}
// End of db_sql.php