diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-12-08 09:57:38 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-12-08 11:04:28 +0100 |
commit | 9f9884930609addad3e37325731fb5406dd3aa44 (patch) | |
tree | 27adaa156fa4e393b7b91454fe6a35b58b4d577a /lib/public/db | |
parent | a3391248e46bbc389dc1880f7ae50aa5dade8731 (diff) | |
download | nextcloud-server-9f9884930609addad3e37325731fb5406dd3aa44.tar.gz nextcloud-server-9f9884930609addad3e37325731fb5406dd3aa44.zip |
Add a method to the get "to use" table and column name
Diffstat (limited to 'lib/public/db')
-rw-r--r-- | lib/public/db/querybuilder/iquerybuilder.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/public/db/querybuilder/iquerybuilder.php b/lib/public/db/querybuilder/iquerybuilder.php index 1ff1077d53f..dd3ee7da5f5 100644 --- a/lib/public/db/querybuilder/iquerybuilder.php +++ b/lib/public/db/querybuilder/iquerybuilder.php @@ -820,4 +820,23 @@ interface IQueryBuilder { * @since 9.0.0 */ public function getLastInsertId(); + + /** + * Returns the table name quoted and with database prefix as needed by the implementation + * + * @param string $table + * @return string + * @since 9.0.0 + */ + public function getTableName($table); + + /** + * Returns the column name quoted and with table alias prefix as needed by the implementation + * + * @param string $column + * @param string $tableAlias + * @return string + * @since 9.0.0 + */ + public function getColumnName($column, $tableAlias = ''); } |