Skip to content

Deprecate database management methods

Compare
Choose a tag to compare
@wdalmut wdalmut released this 18 Oct 13:24
· 17 commits to master since this release

In order to create a better support for database management e custom query support, we deprecate methods:

  • getDatabases
  • createDatabase
  • deleteDatabase

and we will remove those methods in v0.9.0 and we will introduce a manager in order to support those features

$manager->addQuery("getExceptionsInMinutes", function($minutes) {
    return "SELECT * FROM errors WHERE time > now() - {$minutes}m";
});

//late in your code...
$data = $manager->getExceptionsInMinutes(10);