(ctx context.Context)
| 50 | } |
| 51 | |
| 52 | func (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 | |
| 66 | func (s *Store) LoadSnapshot(ctx context.Context) (Snapshot, error) { |
| 67 | guildConfigs, err := s.loadGuildConfigs(ctx) |
nothing calls this directly
no test coverage detected