pacman -D

This command is an alias of pacman --database.

tldr pacman database