Closed bbest closed 1 week ago
Hi @mfrants, @edweber, @evsatt,
Here are some tips on how to document the PostgreSQL database...
COMMENT ON
How to Document PostgreSQL Databases, eg:
-- comment on table COMMENT ON TABLE actor IS ‘Table containing actors’; --comment on column COMMENT ON COLUMN actor.actor_id IS ‘id of the actor’;
By pulling into R, we can render these in the Quarto book Documenting CalCOFI at calcofi.io/docs and the R package calcofi4r .
calcofi4r
Hmisc::label()
# view table cog with Comments under column headers View(cog)
networkD3
/db_tables
/db_columns
calcofi4r::cc\_db\_catalog()
Hi @mfrants, @edweber, @evsatt,
Here are some tips on how to document the PostgreSQL database...
Use
COMMENT ON
SQL for tables and columnsHow to Document PostgreSQL Databases, eg:
Entity-Relationship (ER) Diagram
Use in R
By pulling into R, we can render these in the Quarto book Documenting CalCOFI at calcofi.io/docs and the R package
calcofi4r
.Show Comments
Hmisc::label()
:Show ER Diagram
networkD3
to visualize interactive networks, including graphML