import { PlayIcon } from "@heroicons/react/20/solid"; import { CodeBlock } from "~/components/code/CodeBlock"; import { Button } from "~/components/primitives/Buttons"; import { Header3 } from "~/components/primitives/Headers"; import { Paragraph } from "~/components/primitives/Paragraph"; import { SimpleTooltip } from "~/components/primitives/Tooltip"; import type { QueryScope } from "~/services/queryService.server"; /** A code block with an integrated "Try it" button */ export function TryableCodeBlock({ code, onTry, className, }: { code: string; onTry?: () => void; className?: string; }) { return (
{fn.example}
* to select all columns,
or list specific columns.
AS:
=,{" "}
!=, <,{" "}
>, <=,{" "}
>=
ORDER BY (ASC/DESC). Limit results with{" "}
LIMIT.
GROUP BY with aggregate functions. Filter groups with{" "}
HAVING.