This commit is contained in:
Yuri Kuznetsov
2020-08-19 14:13:34 +03:00
parent 5116469856
commit a09ed79242
3 changed files with 10 additions and 24 deletions
@@ -39,23 +39,4 @@ interface QueryComposer
* Compose a SQL query by a given query parameters.
*/
public function compose(Query $query) : string;
/**
* Convert a camelCase string to a corresponding representation for DB.
* @todo Remove from the interface? Make protected?
*/
public function toDb(string $string) : string;
/**
* Sanitize a string.
* @todo Remove from the interface?
*/
public function sanitize(string $string) : string;
/**
* Sanitize an alias for a SELECT statement.
* Needed to be able to access rows by alias from a query results.
* Different database systems may have different restrictions on alias names.
*/
public function sanitizeSelectAlias(string $string);
}