|
| 1 | +--- |
| 2 | +title: Connection libraries - Azure Database for PostgreSQL - Flexible Server |
| 3 | +description: This article describes several libraries and drivers that you can use when coding applications to connect and query Azure Database for PostgreSQL - Flexible Server. |
| 4 | +ms.service: postgresql |
| 5 | +ms.subservice: flexible-server |
| 6 | +ms.topic: conceptual |
| 7 | +ms.author: olmoloce |
| 8 | +author: olmoloce |
| 9 | +ms.date: 03/24/2023 |
| 10 | +--- |
| 11 | + |
| 12 | +# Connection libraries for Azure Database for PostgreSQL - Flexible Server |
| 13 | + |
| 14 | +[!INCLUDE [applies-to-postgresql-flexible-server](../includes/applies-to-postgresql-flexible-server.md)] |
| 15 | + |
| 16 | +This article lists libraries and drivers that developers can use to develop applications to connect to and query Azure Database for PostgreSQL. |
| 17 | + |
| 18 | +## Client interfaces |
| 19 | + |
| 20 | +Most language client libraries used to connect to PostgreSQL server are external projects and are distributed independently. The libraries listed are supported on the Windows, Linux, and Mac platforms, for connecting to Azure Database for PostgreSQL. Several quickstart examples are listed in the Next steps section. |
| 21 | + |
| 22 | +| **Language** | **Client interface** | **Additional information** | **Download** | |
| 23 | +|--------------|----------------------------------------------------------------|-------------------------------------|--------------------------------------------------------------------| |
| 24 | +| Python | [psycopg](https://www.psycopg.org/) | DB API 2.0-compliant | [Download](https://sourceforge.net/projects/adodbapi/) | |
| 25 | +| PHP | [php-pgsql](https://secure.php.net/manual/en/book.pgsql.php) | Database extension | [Install](https://secure.php.net/manual/en/pgsql.installation.php) | |
| 26 | +| Node.js | [Pg npm package](https://www.npmjs.com/package/pg) | Pure JavaScript non-blocking client | [Install](https://www.npmjs.com/package/pg) | |
| 27 | +| Java | [JDBC](https://jdbc.postgresql.org/) | Type 4 JDBC driver | [Download](https://jdbc.postgresql.org/download/) | |
| 28 | +| Ruby | [Pg gem](https://deveiate.org/code/pg/) | Ruby Interface | [Download](https://rubygems.org/downloads/pg-0.20.0.gem) | |
| 29 | +| Go | [Package pq](https://godoc.org/github.com/lib/pq) | Pure Go postgres driver | [Install](https://github.com/lib/pq/blob/master/README.md) | |
| 30 | +| C\#/ .NET | [Npgsql](https://www.npgsql.org/) | ADO.NET Data Provider | [Download](https://dotnet.microsoft.com/download) | |
| 31 | +| ODBC | [psqlODBC](https://odbc.postgresql.org/) | ODBC Driver | [Download](https://www.postgresql.org/ftp/odbc/versions/) | |
| 32 | +| C | [libpq](https://www.postgresql.org/docs/9.6/static/libpq.html) | Primary C language interface | Included | |
| 33 | +| C++ | [libpqxx](http://pqxx.org/) | New-style C++ interface | [Download](https://pqxx.org/libpqxx/) | |
| 34 | + |
| 35 | +## Next steps |
| 36 | + |
| 37 | +Read these quickstarts on how to connect to and query Azure Database for PostgreSQL by using your language of choice: |
| 38 | + |
| 39 | +[Python](./connect-python.md) | [Java](./connect-java.md) | [Azure CLI](./connect-azure-cli.md) | [.NET (C#)](./connect-csharp.md) |
0 commit comments