{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": "# RefgetDBAgent Tutorial\n\nThis tutorial shows you how to use `RefgetDBAgent` to manage a PostgreSQL database of sequence collections for building a seqcol API server.\n\n
Learning objectives
\nNote
\nFor most users, the CLI (refget admin) or RefgetStore (local file-based storage) are simpler alternatives. Use RefgetDBAgent when you need direct database access for building a seqcol API server.
Summary
\nRefgetDBAgent() connects to PostgreSQL using POSTGRES_* environment variablesagent.seqcol.list_by_offset() and agent.seqcol.get(digest) for querying collectionsagent.compare_digests(a, b) compares two collectionsseqcol, seq, fasta_drs, pangenome, attribute