Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 664 Bytes

File metadata and controls

15 lines (10 loc) · 664 Bytes

PGAdapter Spanner and PHP PDO

PGAdapter has experimental support for the PostgreSQL PHP PDO driver. This sample application shows how to connect to PGAdapter with PHP PDO, and how to execute a simple query on Spanner.

The sample uses the Spanner emulator. You can run the sample on the emulator with this command:

php pdo_sample.php

PGAdapter and the emulator are started in a Docker test container by the sample application. Docker is therefore required to be installed on your system to run this sample.