Use of metformin, DPP-4 inhibitors, GLP-1 RAs and SGLT2 inhibitors were associated with lower risk of dementia, with a gradual decrease in risk of dementia for each increase in daily defined dose. This evidence concerns the gene SLC5A2 and dementia.