@@ -8,8 +8,8 @@ ms.author: wchi
8
8
9
9
### [ .NET] ( #tab/dotnet )
10
10
11
- 1 . Install dependencies. Follow the guidance to [ install Npgsql] ( https://www.npgsql.org/doc/installation.html )
12
- 1 . In code, get the PostgreSQL connection string from environment variables added by Service Connector service .
11
+ 1 . Install dependencies following [ the Npgsql guidance ] ( https://www.npgsql.org/doc/installation.html )
12
+ 1 . In code, get the PostgreSQL connection string from environment variables added by Service Connector.
13
13
``` csharp
14
14
using System ;
15
15
using Npgsql ;
@@ -23,8 +23,8 @@ ms.author: wchi
23
23
24
24
### [Java](#tab/java)
25
25
26
- 1 . Install dependencies . Follow the guidance to [ install pgJDBC ](https :// jdbc.postgresql.org/documentation/).
27
- 1 . In code , get the PostgreSQL connection string from environment variables added by Service Connector service .
26
+ 1 . Install dependencies following [ the pgJDBC guidance ](https :// jdbc.postgresql.org/documentation/).
27
+ 1 . In code , get the PostgreSQL connection string from environment variables added by Service Connector .
28
28
```java
29
29
import java .sql .Connection ;
30
30
import java .sql .DriverManager ;
@@ -64,8 +64,8 @@ ms.author: wchi
64
64
65
65
### [Python](#tab/python)
66
66
67
- 1 . Install dependencies . Follow the guidance to [ install psycopg2 ](https :// pypi.org/project/psycopg2/).
68
- 1 . In code , get the PostgreSQL connection information from environment variables added by Service Connector service .
67
+ 1 . Install dependencies following [ the psycopg2 guidance ](https :// pypi.org/project/psycopg2/).
68
+ 1 . In code , get the PostgreSQL connection information from environment variables added by Service Connector .
69
69
```python
70
70
import os
71
71
import psycopg2
@@ -79,12 +79,12 @@ ms.author: wchi
79
79
80
80
### [Django](#tab/django)
81
81
82
- 1 . Install dependencies . Follow the guidance to [ install Django ](https :// docs.djangoproject.com/en/4.2/topics/install/) and [psycopg2](https://pypi.org/project/psycopg2/).
82
+ 1 . Install dependencies following [ the Django guidance ](https :// docs.djangoproject.com/en/4.2/topics/install/) and [psycopg2 guidance ](https://pypi.org/project/psycopg2/).
83
83
```bash
84
84
pip install django
85
85
pip install psycopg2
86
86
```
87
- 1 . In setting file , get the PostgreSQL database information from environment variables added by Service Connector service .
87
+ 1 . In the setting file , get the PostgreSQL database information from environment variables added by Service Connector .
88
88
```python
89
89
# in your setting file, eg. settings.py
90
90
host = os .getenv ('AZURE_POSTGRESQL_HOST' )
@@ -111,7 +111,7 @@ ms.author: wchi
111
111
```bash
112
112
go get github .com / lib / pq
113
113
```
114
- 1 . In code , get the PostgreSQL connection string from environment variables added by Service Connector service .
114
+ 1 . In code , get the PostgreSQL connection string from environment variables added by Service Connector .
115
115
```go
116
116
import (
117
117
" database/sql"
@@ -136,7 +136,7 @@ ms.author: wchi
136
136
```bash
137
137
npm install pg dotenv
138
138
```
139
- 1 . In code , get the PostgreSQL connection information from environment variables added by Service Connector service .
139
+ 1 . In code , get the PostgreSQL connection information from environment variables added by Service Connector .
140
140
```javascript
141
141
const { Client } = require ('pg' );
142
142
@@ -157,7 +157,7 @@ ms.author: wchi
157
157
158
158
### [PHP](#tab/php)
159
159
160
- 1 . In code , get the PostgreSQL connection information from environment variables added by Service Connector service .
160
+ 1 . In code , get the PostgreSQL connection information from environment variables added by Service Connector .
161
161
```php
162
162
< ? php
163
163
$conn_string = getenv ('AZURE_POSTGRESQL_CONNECTIONSTRING' );
@@ -171,7 +171,7 @@ ms.author: wchi
171
171
```bash
172
172
gem install pg
173
173
```
174
- 1 . In code , get the PostgreSQL connection information from environment variables added by Service Connector service .
174
+ 1 . In code , get the PostgreSQL connection information from environment variables added by Service Connector .
175
175
```ruby
176
176
require 'pg'
177
177
require 'dotenv/load'
0 commit comments