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

Method insert

plugin/cybercat/catdata.go:254–262  ·  view source on GitHub ↗
(gid string, dbInfo *catInfo)

Source from the content-addressed store, hash-verified

252}
253
254func (sql *catdb) insert(gid string, dbInfo *catInfo) error {
255 sql.Lock()
256 defer sql.Unlock()
257 err := sql.Create(gid, &catInfo{})
258 if err != nil {
259 return err
260 }
261 return sql.Insert(gid, dbInfo)
262}
263
264func (sql *catdb) find(gid, uid string) (dbInfo catInfo, err error) {
265 sql.Lock()

Callers 5

initFunction · 0.45
settleOfWorkMethod · 0.45
initFunction · 0.45
initFunction · 0.45
avatarMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected