Verwandle PostgreSQL-Snippets in Bilder, die man gerne teilt — ohne deinen Mac zu verlassen.
Postgres-specific syntax is worth screenshotting precisely because it is not portable SQL. The window functions and CTEs are the point.
Codeshot erkennt PostgreSQL an dem Code, den du einfügst; es gibt also keine Sprachauswahl, die man falsch treffen kann. Hier ist dasselbe Snippet in drei der 30 mitgelieferten Themes, gerendert mit den Stylesheets der App.
WITH recent AS (
SELECT theme, created_at
FROM snapshots
WHERE created_at >= NOW() - INTERVAL'30 days'
)
SELECT theme,
COUNT(*) AS total,
RANK() OVER (ORDERBY COUNT(*) DESC) AS position
FROM recent
GROUPBY theme;
Edge · dunkel
WITH recent AS (
SELECT theme, created_at
FROM snapshots
WHERE created_at >= NOW() - INTERVAL'30 days'
)
SELECT theme,
COUNT(*) AS total,
RANK() OVER (ORDERBY COUNT(*) DESC) AS position
FROM recent
GROUPBY theme;
GitHub · dunkel
WITH recent AS (
SELECT theme, created_at
FROM snapshots
WHERE created_at >= NOW() - INTERVAL'30 days'
)
SELECT theme,
COUNT(*) AS total,
RANK() OVER (ORDERBY COUNT(*) DESC) AS position
FROM recent
GROUPBY theme;
Solarized · dunkel
Das passende Theme für 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.
Die richtige Größe
Lass das Bild dem Inhalt folgen oder lege es auf ein Verhältnis fest — 1:1, 4:3, 3:2, 16:9, 9:16, 2:3 oder 3:4 — und exportiere dann mit 1×, 2× oder 3×, damit es auf Retina-Displays scharf bleibt. Kopiere es mit ⌘⇧C direkt in die Zwischenablage oder sichere mit ⌘S.