GetDatabase returns the models.dev database, fetching from cache or API as needed.
(ctx context.Context)
| 146 | |
| 147 | // GetDatabase returns the models.dev database, fetching from cache or API as needed. |
| 148 | func (s *Store) GetDatabase(ctx context.Context) (*Database, error) { |
| 149 | return s.getDatabase(ctx, true) |
| 150 | } |
| 151 | |
| 152 | // getDatabase returns the models.dev database. When allowFetch is false the |
| 153 | // catalog is served from memory or the on-disk cache only and the network is |
nothing calls this directly
no test coverage detected