2

I am working on an application built using Symfony3 which needs to retrieve data from a Redshift database.

How can I go about achieving this? Appreciate any assistance.

Mr B
  • 3,980
  • 9
  • 48
  • 74

2 Answers2

1

I figured it out by following the Symfony documentation to configure mulitple entity managers.

My issue was that I was specifying the incorrect driver. This should be 'pdo_pgsql'.

I installed the driver on my system by following the steps in the first answer and comments in this question

Community
  • 1
  • 1
Mr B
  • 3,980
  • 9
  • 48
  • 74
0

You can use this bundle awsBundle by Farhad Safarov.

Follow the instuctions to install and configure the bundle with your application then use it (example from the README.md):

// AWS S3 example
public function someAction()
{
    $client = $this->get('aws.s3');

    // Upload an object to Amazon S3
    $result = $client->putObject(array(
        'Bucket' => $bucket,
        'Key'    => 'data.txt',
        'Body'   => 'Hello!'
    ));
    // ...
}
Veve
  • 6,643
  • 5
  • 39
  • 58