Raw
 1package storage
 2
 3import "context"
 4
 5func (s *Store) Ready(ctx context.Context) error {
 6	const operation = "ready"
 7	if err := s.checkOpen(operation); err != nil {
 8		return err
 9	}
10	var one int
11	if err := s.sql.QueryRowContext(ctx, `SELECT 1`).Scan(&one); err != nil {
12		return classify(operation, err)
13	}
14	return nil
15}