* Abstract class with SQL standard implementation of CRUD features for collections using a SQL database.
*/
abstractclassSQLCollectionextendsCollection{
/**
* @var string The SQL collections table
*/
public$table;
/**
* Executes a SQL query
*
* @param string $sql The SQL query
* @return mixed If the query doesn't return any null, nothing. If the query return a row with one field, the scalar value. Otheriwse, an aossciative array, the fields as keys, the row as values.
*/
publicabstractfunctionquery($sql);
/**
* Escapes the SQL string
*
* @param string $value The value to escape
* @return string The escaped value
*/
publicabstractfunctionescape($value);
/**
* Adds a document to the collection
*
* @param CollectionDocument $document The document to add
* @return boolean true if the operation succeeded; otherwise, false.