Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBPool ¶
type DBPool interface {
Ping(ctx context.Context) error
Begin(ctx context.Context) (pgx.Tx, error)
Query(ctx context.Context, sql string, args ...interface{}) (pgx.Rows, error)
// Add Exec to the interface so we can mock it
Exec(ctx context.Context, sql string, args ...any) (pgconn.CommandTag, error)
CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource) (int64, error)
}
DBPool is an interface that abstracts the pgxpool.Pool to allow for mocking in tests.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store provides a PostgreSQL implementation of the Repository interface.
func (*Store) GetFindingsByScanID ¶
func (*Store) PersistData ¶
PersistData handles the database transaction for inserting all data from a result envelope.
Click to show internal directories.
Click to hide internal directories.