MCPcopy
hub / github.com/ananthakumaran/paisa / Like

Method Like

internal/query/posting.go:105–117  ·  view source on GitHub ↗
(accounts ...string)

Source from the content-addressed store, hash-verified

103}
104
105func (q *Query) Like(accounts ...string) *Query {
106 query := "account like ?"
107 for range accounts[1:] {
108 query += " or account like ?"
109 }
110
111 args := make([]interface{}, len(accounts))
112 for i, a := range accounts {
113 args[i] = a
114 }
115 q.context = q.context.Where(query, args...)
116 return q
117}
118
119func (q *Query) NotLike(account string) *Query {
120 q.context = q.context.Where("account not like ?", account)

Callers 15

loadInterestCacheFunction · 0.80
GetNetworthFunction · 0.80
GetCurrentNetworthFunction · 0.80
GetScheduleALFunction · 0.80
GetInvestmentFunction · 0.80
GetIncomeFunction · 0.80
GetGainFunction · 0.80
GetHarvestFunction · 0.80
GetBudgetFunction · 0.80
GetCurrentBudgetFunction · 0.80
GetAllocationFunction · 0.80

Calls 1

WhereMethod · 0.80

Tested by

no test coverage detected