Module 1 : Architecture web avec PostgreSQL
1.1 — La stack web moderne Aperçu
Module 2 : PostgreSQL avec PHP et PDO
2.1 — Connexion PDO PostgreSQL Aperçu
Module 3 : PostgreSQL avec Laravel
3.1 — Configuration .env Aperçu
Module 4 : API REST avec PostgreSQL
4.1 — Structure d'une API REST Aperçu
Module 5 : Transactions dans les applications
5.1 — Transactions côté applicatif Aperçu
Module 6 : PostgreSQL avec Node.js
6.1 — Driver pg Aperçu
Module 7 : PostgreSQL avec Python
7.1 — Driver psycopg2 Aperçu
Module 8 : Authentification et autorisation
8.1 — Authentification Aperçu
Module 9 : Gestion de fichiers et médias
9.1 — Stockage de fichiers Aperçu
Module 10 : Performance web
10.1 — Connection pooling avec PgBouncer Aperçu
Module 11 : Logging et monitoring applicatif
11.1 — Logs SQL Aperçu
Module 12 : Déploiement et Docker
12.1 — Docker PostgreSQL Aperçu
Module 13 : Tests et debugging
13.1 — Tests avec base de données Aperçu
Module 14 : Projet final — Application web full-stack
14.1 — Cahier des charges Aperçu

Le reste de la formation est réservé aux inscrits.

S'inscrire gratuitement
Module 7 : PostgreSQL avec Python Aperçu gratuit

7.1 — Driver psycopg2

import psycopg2
conn = psycopg2.connect(host="localhost", database="ma_base", user="app", password="secret")
cur = conn.cursor()
cur.execute("SELECT * FROM clients WHERE actif = %s", (True,))
clients = cur.fetchall()
# Avec context manager
with conn.cursor() as cur:
    cur.execute("INSERT INTO clients (nom, email) VALUES (%s, %s) RETURNING id", (nom, email))
    id = cur.fetchone()[0]
conn.commit()
Ceci est un aperçu gratuit.
Voir la formation complète