Skip to content

Commit c741d01

Browse files
committed
address review
1 parent 6dedd10 commit c741d01

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

cloud_sql/postgres/pdo/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,5 @@ First, update `app-standard.yaml` with the correct values to pass the environmen
8989
Next, the following command will deploy the application to your Google Cloud project:
9090

9191
```bash
92-
$ gcloud app deploy app-standard.yaml
92+
$ gcloud app deploy app.standard.yaml
9393
```

cloud_sql/postgres/pdo/src/app.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,14 @@
6262
}
6363

6464
// Connect to the database.
65+
# [START cloud_sql_postgres_pdo_timeout]
6566
// Here we set the connection timeout to five seconds and ask PDO to
6667
// throw an exception if any errors occur.
6768
$conn = new PDO($dsn, $username, $password, [
6869
PDO::ATTR_TIMEOUT => 5,
6970
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION
7071
]);
72+
# [END cloud_sql_postgres_pdo_timeout]
7173
# [END cloud_sql_postgres_pdo_create]
7274
} catch (TypeError $e) {
7375
throw new RuntimeException(

0 commit comments

Comments
 (0)