PostgreSQL

Gerador de imagens de código PostgreSQL

Transforme trechos de PostgreSQL em imagens que valem a pena compartilhar, sem sair do seu Mac.

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

O Codeshot detecta PostgreSQL pelo código que você cola, então não há seletor de linguagem para errar. Aqui está o mesmo trecho em três dos 30 temas inclusos, renderizados com as folhas de estilo do próprio 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 · escuro
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 · escuro
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 · escuro

Escolhendo um 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.

Acertando o tamanho

Deixe a imagem seguir o conteúdo ou fixe uma proporção — 1:1, 4:3, 3:2, 16:9, 9:16, 2:3 ou 3:4 — e exporte em 1×, 2× ou 3× para que continue nítida em telas retina. Copie direto para a área de transferência com C ou salve com S.

Veja os 30 temas lado a lado ou leia o fluxo completo.

Feito para PostgreSQL e outras 59 linguagens

Tudo roda no seu Mac. Seu código nunca sai dele.

Baixar para macOS