src/Db/Command.php
public function setDb($database) {
        if ($database instanceof DatabaseInterface) {
            $db = $database;
        } elseif (is_string($database) && \Reaction::$app->has($database)) {
            $db = \Reaction::$app->get($database);
        } else {
            $db = \Reaction::create($database);
        }
        $this->_db = $db;
    }
public function setDb($database) {
        if ($database instanceof DatabaseInterface) {
            $db = $database;
        } elseif (is_string($database) && \Reaction::$app->has($database)) {
            $db = \Reaction::$app->get($database);
        } else {
            $db = \Reaction::create($database);
        }
        $this->_db = $db;
    }
Set database
@param DatabaseInterface|string|array $database
@throws \Reaction\Exceptions\InvalidConfigException