MCPcopy Create free account
hub / github.com/MMadmer/EpicAssetsNotifyBot / Initialize

Method Initialize

internal/store/sqlite/store.go:52–64  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

50}
51
52func (s *Store) Initialize(ctx context.Context) error {
53 if err := s.applyPragmas(ctx); err != nil {
54 return err
55 }
56
57 for _, stmt := range schemaStatements {
58 if _, err := s.db.ExecContext(ctx, stmt); err != nil {
59 return err
60 }
61 }
62
63 return nil
64}
65
66func (s *Store) LoadSnapshot(ctx context.Context) (Snapshot, error) {
67 guildConfigs, err := s.loadGuildConfigs(ctx)

Callers

nothing calls this directly

Implementers 2

Storeinternal/store/sqlite/store.go
sqliteAdapterinternal/app/bootstrap.go

Calls 1

applyPragmasMethod · 0.95

Tested by

no test coverage detected