FastAPI database querying

Job ID: 34390595

Budget: €8 – €30 EUR

I need a small help regarding how to take fastapi path parameter to search if it already exists in the database table, otherwise adding the parameter in the table with next ID
Related categories: Python MySQL Database Programming FastAPI