Curiously, Moldova is about 1.6 km away from Danube river in this dataset. Might be a matter of precision.
https://twitter.com/allixender/status/1330072611418755072
Countries that are connected trough water - the river Danube in Europe?
Natural Earth Countries and Rivers/Lakes
https://www.naturalearthdata.com/
The Jupyter notebook (view here) is provided in my GitHub repo.