(ctx context.Context, arg database.InsertDBCryptKeyParams)
| 98 | } |
| 99 | |
| 100 | func (db *dbCrypt) InsertDBCryptKey(ctx context.Context, arg database.InsertDBCryptKeyParams) error { |
| 101 | // It's nicer to be able to pass a *sql.NullString to encryptField, but we need to pass a string here. |
| 102 | var digest sql.NullString |
| 103 | err := db.encryptField(&arg.Test, &digest) |
| 104 | if err != nil { |
| 105 | return err |
| 106 | } |
| 107 | arg.ActiveKeyDigest = digest.String |
| 108 | return db.Store.InsertDBCryptKey(ctx, arg) |
| 109 | } |
| 110 | |
| 111 | func (db *dbCrypt) GetUserLinkByLinkedID(ctx context.Context, linkedID string) (database.UserLink, error) { |
| 112 | link, err := db.Store.GetUserLinkByLinkedID(ctx, linkedID) |
no test coverage detected