PostgreSQL

Générateur d’images de code PostgreSQL

Transformez vos extraits PostgreSQL en images que l’on a envie de partager, sans quitter votre Mac.

Postgres-specific syntax is worth screenshotting precisely because it is not portable SQL. The window functions and CTEs are the point.

Codeshot détecte PostgreSQL à partir du code que vous collez : aucun sélecteur de langage à se tromper. Voici le même extrait dans trois des 30 thèmes fournis, rendus avec les feuilles de style de l’app.

WITH recent AS (
    SELECT theme, created_at
    FROM snapshots
    WHERE created_at >= NOW() - INTERVAL '30 days'
)
SELECT theme,
       COUNT(*) AS total,
       RANK() OVER (ORDER BY COUNT(*) DESC) AS position
FROM recent
GROUP BY theme;
Edge · sombre
WITH recent AS (
    SELECT theme, created_at
    FROM snapshots
    WHERE created_at >= NOW() - INTERVAL '30 days'
)
SELECT theme,
       COUNT(*) AS total,
       RANK() OVER (ORDER BY COUNT(*) DESC) AS position
FROM recent
GROUP BY theme;
GitHub · sombre
WITH recent AS (
    SELECT theme, created_at
    FROM snapshots
    WHERE created_at >= NOW() - INTERVAL '30 days'
)
SELECT theme,
       COUNT(*) AS total,
       RANK() OVER (ORDER BY COUNT(*) DESC) AS position
FROM recent
GROUP BY theme;
Solarized · sombre

Choisir un thème pour PostgreSQL

Format the query before you capture it. A CTE that wraps mid-line is unreadable as an image, and unlike text nobody can reformat it themselves.

Trouver la bonne taille

Laissez l’image suivre votre contenu ou fixez un rapport — 1:1, 4:3, 3:2, 16:9, 9:16, 2:3 ou 3:4 — puis exportez en 1×, 2× ou 3× pour qu’elle reste nette sur un écran retina. Copiez-la dans le presse-papiers avec C ou enregistrez avec S.

Voyez les 30 thèmes côte à côte ou lisez le déroulé complet.

Conçu pour PostgreSQL et 59 autres langages

Tout tourne sur votre Mac. Votre code ne le quitte jamais.

Télécharger pour macOS