koolphp / koolreport

This is an Open Source PHP Reporting Framework which you can use to write perfect data reports or to construct awesome dashboards using PHP
https://www.koolreport.com/
MIT License
228 stars 65 forks source link

Update PostgreSQLDataSource.php #20

Closed r-da closed 1 year ago

r-da commented 5 years ago

I have added a function setSchema($schema) to give the possibility of choosing the postgres schema before the query.

Example:

    $this->src('mypostgres')
        ->setSchema('myschema')
        ->query(/* a query */)
        ->pipe(/* .. */);