Documentation ¶
Overview ¶
Package sqlignorestore contains a SQL implementation of ignore.Store.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertIgnoreRules ¶
func ConvertIgnoreRules(rules []paramtools.ParamSet) (string, []interface{})
ConvertIgnoreRules turns a Paramset into a SQL clause that would match rows using a column named "keys". It is currently implemented with AND/OR clauses, but could potentially be done with UNION/INTERSECT depending on performance needs.
Types ¶
type StoreImpl ¶
type StoreImpl struct {
// contains filtered or unexported fields
}
func (*StoreImpl) Create ¶
Create implements the ignore.Store interface. It will mark all traces that match the rule as "ignored".
func (*StoreImpl) Delete ¶
Delete implements the ignore.Store interface. It will mark the traces that match the params of the deleted rule as "ignored" or not depending on how the unchanged n-1 rules affect them.
func (*StoreImpl) Update ¶
Update implements the ignore.Store interface. If the rule paramset changes, it will mark the traces that match the old params as "ignored" or not depending on how the unchanged n-1 rules plus the new rule affect them. It will then update all traces that match the new rule as "ignored".