package storage import "context" func (s *Store) Ready(ctx context.Context) error { const operation = "ready" if err := s.checkOpen(operation); err != nil { return err } var one int if err := s.sql.QueryRowContext(ctx, `SELECT 1`).Scan(&one); err != nil { return classify(operation, err) } return nil }