github.com/quay/claircore@v1.5.28/datastore/postgres/doc.go (about)

     1  /*
     2  Package postgres implements the indexer store interface for a PostgreSQL
     3  database.
     4  
     5  SQL statements should be arranged in this package such that they're
     6  constants in the closest scope possible to where they're used. They
     7  should be run through sqlfmt and then checked for correctness, as sqlfmt
     8  doesn't fully understand the PostgreSQL dialect. Queries should endeavor
     9  to do work database-side, as opposed to making queries to construct
    10  further queries.
    11  */
    12  package postgres