MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / OnComplete

Method OnComplete

stores/universally/commit/store.go:62–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60}
61
62func (h *Store[H]) OnComplete() {
63
64 onceMigrate(h.name, func() {
65 db := h.db.DB(context.Background())
66
67 err := db.Table(h.commitTableName).AutoMigrate(&Commit[H]{})
68 if err != nil {
69 panic(err)
70 }
71 err = db.Table(h.latestTableName).AutoMigrate(&Latest{})
72 if err != nil {
73 panic(err)
74 }
75 })
76
77}
78
79var (
80 latestUniques = []clause.Column{

Callers

nothing calls this directly

Calls 1

onceMigrateFunction · 0.85

Tested by

no test coverage detected