src/main.py
async def delete_note(note_id: int):
    """Delete one note given its id"""
    query = notes.delete().where(notes.c.id == note_id)
    await database.execute(query=query)
    return {"message": f"Note with id {note_id} has been deleted."}
Delete one note given its id
Delete one note given its id
Delete one note given its id
async def delete_note(note_id: int):
    query = notes.delete().where(notes.c.id == note_id)
    await database.execute(query=query)
    return {"message": f"Note with id {note_id} has been deleted."}
async def delete_note ( note_id : int ) : query = notes . delete ( ) . where ( notes . c . id == note_id ) await database . execute ( query = query ) return { "message" : f"Note with id {note_id} has been deleted." }
Delete one note given its id
Delete one note given its id
"""Delete one note given its id"""
note_id
int