Skip to content

Commit

Permalink
Merge pull request #64 from corley/feature/0.8.1-deprecation
Browse files Browse the repository at this point in the history
Added database operations as deprecated
  • Loading branch information
wdalmut committed Oct 18, 2015
2 parents 501fc9f + 108703b commit dd30958
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,19 @@ public function query($query)

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

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

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

0 comments on commit dd30958

Please sign in to comment.