Is it pregnancy or diabetes?

So today I've noticed I've been going to the bathroom a lot. I haven't drunk anything in the past 2 hours and I've been to the bathroom maybe twice every hour. I was reading online that it might be because of diabetes does anyone know anything about this ?