public function build($vendor, array $options)
    {
        return new Db(new QueryBuilder(), $this->createPdo($vendor, $options), $this->paginator, new QueryLogger());
    }
public function build($vendor, array $options)
    {
        return new Db(new QueryBuilder(), $this->createPdo($vendor, $options), $this->paginator, new QueryLogger());
    }
public function build ( $ vendor , array $ options ) { return new Db ( new QueryBuilder ( ) , $ this -> createPdo ( $ vendor , $ options ) , $ this -> paginator , new QueryLogger ( ) ) ; }
Builds database service instance

@param string $vendor Database vendor name
@param array $options Options for connection, such as username and password
@return \Krystal\Db\Sql\DbInterface
Builds database service instance