Catalyzes the NAD(P)(+)-dependent oxidation of D-glucose to D-gluconate via gluconolactone. Can utilize both NAD(+) and NADP(+) as electron acceptor. Is involved in the degradation of glucose through a non-phosphorylative variant of the Entner-Doudoroff pathway. D-glucose + NAD(+) = D-glucono-1,5-lactone + H(+) + NADH D-glucose + NADP(+) = D-glucono-1,5-lactone + H(+) + NADPH Belongs to the zinc-containing alcohol dehydrogenase family. Glucose 1-dehydrogenase subfamily.