PostgreSQL

Generador de imágenes de código PostgreSQL

Convierte fragmentos de PostgreSQL en imágenes que merece la pena compartir, sin salir de tu Mac.

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

Codeshot detecta PostgreSQL a partir del código que pegas, así que no hay selector de lenguaje que puedas equivocar. Aquí tienes el mismo fragmento en tres de los 30 temas incluidos, renderizados con las hojas de estilo de la propia 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 · oscuro
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 · oscuro
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 · oscuro

Elegir un tema para 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.

Acertar con el tamaño

Deja que la imagen siga a tu contenido o fíjala a una proporción — 1:1, 4:3, 3:2, 16:9, 9:16, 2:3 o 3:4 — y exporta a 1×, 2× o 3× para que se mantenga nítida en pantallas retina. Cópiala al portapapeles con C o guárdala con S.

Mira los 30 temas comparados o lee el flujo completo.

Hecho para PostgreSQL y otros 59 lenguajes

Todo se ejecuta en tu Mac. Tu código nunca sale de ahí.

Descargar para macOS