| Simplify database interactions This change is a result of an audit of all places where Go code directly constructs SQL queries and executes them against a dbMap, with the goal of eliminating all instances of constructing a well-known object type (such as a core.CertificateStatus) from explicitly-listed database columns. Instead, we should be relying on helper functions defined in the sa itself to determine which columns are relevant for the construction of any given object. This audit did not find many places where this was occurring. It did reveal a few simplifications, which are contained in this change: 1) Greater use of existing SelectFoo methods provided by models.go 2) Streamlining of various SelectSingularFoo methods to always select by serial string, rather than user-provided WHERE clause 3) One spot (in ocsp-responder) where using a well-known type seemed better than using a more minimal custom type Addresses #4899 | ||
|---|---|---|
| .. | ||
| core.pb.go | ||
| core.proto | ||
| generate.go | ||