We used data from nationwide registers in Sweden to perform separate analyses for all patients with type 2 diabetes who filled a first prescription of a GLP-1 receptor agonist or an SGLT2 inhibitor between 2017 and 2021. Here, SLC5A2 is linked to type 2 diabetes mellitus.