src/main.py
async def create_note(note: NoteIn):
    """Create a note into the database and send back the created record's id"""
    logger.info(f"Creating Note {note}")
    query = notes.insert(values={"text": note.text, "completed": note.completed})
    last_record_id = await database.execute(query=query)
    return {**note.dict(), "id": last_record_id}
Create a note into the database and send back the created record's id
Create a note into the database and send back the created record's id
Create a note into the database and send back the created record ' s id
async def create_note(note: NoteIn):
    logger.info(f"Creating Note {note}")
    query = notes.insert(values={"text": note.text, "completed": note.completed})
    last_record_id = await database.execute(query=query)
    return {**note.dict(), "id": last_record_id}
async def create_note ( note : NoteIn ) : logger . info ( f"Creating Note {note}" ) query = notes . insert ( values = { "text" : note . text , "completed" : note . completed } ) last_record_id = await database . execute ( query = query ) return { ** note . dict ( ) , "id" : last_record_id }
Create a note into the database and send back the created record's id
Create a note into the database and send back the created record ' s id
"""Create a note into the database and send back the created record's id"""
note
NoteIn