Skip to content

Commit 11f5cf3

Browse files
authored
Merge pull request #207247 from pritamso/Broken-link-fix-sunila
Broken link fix
2 parents 66e0445 + 354e41e commit 11f5cf3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

articles/postgresql/flexible-server/connect-python.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ This article assumes that you're familiar with developing using Python, but you'
3131
- If you created your flexible server with *Public access (allowed IP addresses)*, you can add your local IP address to the list of firewall rules on your server. Refer to [Create and manage Azure Database for PostgreSQL - Flexible Server firewall rules using the Azure CLI](./how-to-manage-firewall-cli.md).
3232

3333
## Install the Python libraries for PostgreSQL
34-
The [psycopg2](https://pypi.python.org/pypi/psycopg2/) module enables connecting to and querying a PostgreSQL database, and is available as a Linux, macOS, or Windows [wheel](https://pythonwheels.com/) package. Install the binary version of the module, including all the dependencies. For more information about `psycopg2` installation and requirements, see [Installation](http://initd.org/psycopg/docs/install.html).
34+
The [psycopg2](https://pypi.python.org/pypi/psycopg2/) module enables connecting to and querying a PostgreSQL database, and is available as a Linux, macOS, or Windows [wheel](https://pythonwheels.com/) package. Install the binary version of the module, including all the dependencies.
3535

3636
To install `psycopg2`, open a terminal or command prompt and run the command `pip install psycopg2`.
3737

@@ -61,7 +61,7 @@ For each code example in this article:
6161
1. To run the file, change to your project folder in a command-line interface, and type `python` followed by the filename, for example `python postgres-insert.py`.
6262

6363
## Create a table and insert data
64-
The following code example connects to your Azure Database for PostgreSQL - Flexible Server database using the [psycopg2.connect](http://initd.org/psycopg/docs/connection.html) function, and loads data with a SQL **INSERT** statement. The [cursor.execute](http://initd.org/psycopg/docs/cursor.html#execute) function executes the SQL query against the database.
64+
The following code example connects to your Azure Database for PostgreSQL - Flexible Server database using the psycopg2.connect function, and loads data with a SQL **INSERT** statement. The cursor.execute function executes the SQL query against the database.
6565

6666
```Python
6767
import psycopg2
@@ -110,7 +110,7 @@ When the code runs successfully, it produces the following output:
110110
![Command-line output](media/connect-python/2-example-python-output.png)
111111

112112
## Read data
113-
The following code example connects to your Azure Database for PostgreSQL - Flexible Server database and uses [cursor.execute](http://initd.org/psycopg/docs/cursor.html#execute) with the SQL **SELECT** statement to read data. This function accepts a query and returns a result set to iterate over by using [cursor.fetchall()](http://initd.org/psycopg/docs/cursor.html#cursor.fetchall).
113+
The following code example connects to your Azure Database for PostgreSQL - Flexible Server database and uses cursor.execute with the SQL **SELECT** statement to read data. This function accepts a query and returns a result set to iterate over by using cursor.fetchall()
114114

115115
```Python
116116
import psycopg2
@@ -148,7 +148,7 @@ conn.close()
148148
```
149149

150150
## Update data
151-
The following code example connects to your Azure Database for PostgreSQL - Flexible Server database and uses [cursor.execute](http://initd.org/psycopg/docs/cursor.html#execute) with the SQL **UPDATE** statement to update data.
151+
The following code example connects to your Azure Database for PostgreSQL - Flexible Server database and uses cursor.execute with the SQL **UPDATE** statement to update data.
152152

153153
```Python
154154
import psycopg2
@@ -181,7 +181,7 @@ conn.close()
181181
```
182182

183183
## Delete data
184-
The following code example connects to your Azure Database for PostgreSQL - Flexible Server database and uses [cursor.execute](http://initd.org/psycopg/docs/cursor.html#execute) with the SQL **DELETE** statement to delete an inventory item that you previously inserted.
184+
The following code example connects to your Azure Database for PostgreSQL - Flexible Server database and uses cursor.execute with the SQL **DELETE** statement to delete an inventory item that you previously inserted.
185185

186186
```Python
187187
import psycopg2

articles/postgresql/single-server/concepts-connection-libraries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Most language client libraries used to connect to PostgreSQL server are external
2121

2222
| **Language** | **Client interface** | **Additional information** | **Download** |
2323
|--------------|----------------------------------------------------------------|-------------------------------------|--------------------------------------------------------------------|
24-
| Python | [psycopg](http://initd.org/psycopg/) | DB API 2.0-compliant | [Download](http://initd.org/psycopg/download/) |
24+
| Python | [psycopg](https://www.psycopg.org/) | DB API 2.0-compliant | [Download](https://sourceforge.net/projects/adodbapi/) |
2525
| PHP | [php-pgsql](https://secure.php.net/manual/en/book.pgsql.php) | Database extension | [Install](https://secure.php.net/manual/en/pgsql.installation.php) |
2626
| Node.js | [Pg npm package](https://www.npmjs.com/package/pg) | Pure JavaScript non-blocking client | [Install](https://www.npmjs.com/package/pg) |
2727
| Java | [JDBC](https://jdbc.postgresql.org/) | Type 4 JDBC driver | [Download](https://jdbc.postgresql.org/download.html)  |

0 commit comments

Comments
 (0)