MCPcopy Create free account
hub / github.com/FloatTech/ZeroBot-Plugin-Playground / getByKey

Method getByKey

plugin/chinesebqb/model.go:86–90  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

84}
85
86func (bdb *bqbdb) getByKey(key string) (b []bqb, err error) {
87 db := (*gorm.DB)(bdb)
88 err = db.Where("name like ?", "%"+key+"%").Find(&b).Error
89 return
90}
91
92func (bdb *bqbdb) truncateAndInsert() (err error) {
93 db := (*gorm.DB)(bdb)

Callers 1

initFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected