Skip to content

Commit dd30958

Browse files
committed
Merge pull request #64 from corley/feature/0.8.1-deprecation
Added database operations as deprecated
2 parents 501fc9f + 108703b commit dd30958

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Client.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,19 @@ public function query($query)
4848

4949
public function getDatabases()
5050
{
51+
@trigger_error('The '.__METHOD__.' method is deprecated since version 0.8.1 and will be removed in 0.9.', E_USER_DEPRECATED);
5152
return $this->query("show databases");
5253
}
5354

5455
public function createDatabase($name)
5556
{
57+
@trigger_error('The '.__METHOD__.' method is deprecated since version 0.8.1 and will be removed in 0.9.', E_USER_DEPRECATED);
5658
return $this->query("create database \"{$name}\"");
5759
}
5860

5961
public function deleteDatabase($name)
6062
{
63+
@trigger_error('The '.__METHOD__.' method is deprecated since version 0.8.1 and will be removed in 0.9.', E_USER_DEPRECATED);
6164
return $this->query("drop database \"{$name}\"");
6265
}
6366
}

0 commit comments

Comments
 (0)