Versions in this module Expand all Collapse all v0 v0.7.0 Mar 12, 2022 Changes in this version + const Schema + const SchemaVersion + type DB struct + func New(path string) (DB, error) + func NewFromDB(db *sql.DB) DB + func (db DB) Close() error + func (db DB) SetMaxIdleConns(maxIdleConns int) + func (db DB) SetMaxOpenConns(maxOpenConns int) + func (e DB) Chain(ctx context.Context, chainID []byte) ([]*x509.Certificate, error) + func (e DB) Chains(ctx context.Context, query trust.ChainQuery) ([][]*x509.Certificate, error) + func (e DB) InsertChain(ctx context.Context, chain []*x509.Certificate) (bool, error) + func (e DB) InsertTRC(ctx context.Context, trc cppki.SignedTRC) (bool, error) + func (e DB) SignedTRC(ctx context.Context, id cppki.TRCID) (cppki.SignedTRC, error) + func (e DB) SignedTRCs(ctx context.Context, query truststorage.TRCsQuery) (cppki.SignedTRCs, error)