Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Potvin (0.23 sec)

  1. tests/test_tutorial/test_async_sql_databases/test_tutorial001.py

                                    }
                                },
                                "required": True,
                            },
                        },
                    }
                },
                "components": {
                    "schemas": {
                        "NoteIn": {
                            "title": "NoteIn",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Oct 18 12:36:40 GMT 2023
    - 6K bytes
    - Viewed (0)
  2. docs_src/async_sql_databases/tutorial001.py

        sqlalchemy.Column("completed", sqlalchemy.Boolean),
    )
    
    
    engine = sqlalchemy.create_engine(
        DATABASE_URL, connect_args={"check_same_thread": False}
    )
    metadata.create_all(engine)
    
    
    class NoteIn(BaseModel):
        text: str
        completed: bool
    
    
    class Note(BaseModel):
        id: int
        text: str
        completed: bool
    
    
    app = FastAPI()
    
    
    @app.on_event("startup")
    async def startup():
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Mar 26 19:09:53 GMT 2020
    - 1.4K bytes
    - Viewed (0)
Back to top