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 Binds 2 Zn(2+) ions per subunit. One of the zinc atoms is essential for catalytic activity while the other has a structural function. Belongs to the zinc-containing alcohol dehydrogenase family. Glucose 1-dehydrogenase subfamily. Extended N-terminus.