- Sort Score
- Result 10 results
- Languages All
Results 21 - 25 of 25 for dep_session (0.04 sec)
-
docs_src/sql_databases/tutorial001_an_py39.py
engine = create_engine(sqlite_url, connect_args=connect_args) def create_db_and_tables(): SQLModel.metadata.create_all(engine) def get_session(): with Session(engine) as session: yield session SessionDep = Annotated[Session, Depends(get_session)] app = FastAPI() @app.on_event("startup") def on_startup(): create_db_and_tables() @app.post("/heroes/")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Oct 09 19:44:42 UTC 2024 - 1.7K bytes - Viewed (0) -
docs_src/sql_databases/tutorial002_an_py310.py
engine = create_engine(sqlite_url, connect_args=connect_args) def create_db_and_tables(): SQLModel.metadata.create_all(engine) def get_session(): with Session(engine) as session: yield session SessionDep = Annotated[Session, Depends(get_session)] app = FastAPI() @app.on_event("startup") def on_startup(): create_db_and_tables()
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Oct 09 19:44:42 UTC 2024 - 2.5K bytes - Viewed (0) -
impl/maven-core/src/test/java/org/apache/maven/project/ProjectModelResolverTest.java
final DefaultRepositorySystemSession repoSession = new DefaultRepositorySystemSession(h -> false); repoSession.setLocalRepositoryManager(new LegacyLocalRepositoryManager(localRepo)); return new ProjectModelResolver( repoSession, null, getContainer().lookup(RepositorySystem.class),
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 17 10:01:14 UTC 2025 - 8.7K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/artifact/AbstractArtifactComponentTestCase.java
return container; } @BeforeEach public void setUp() throws Exception { RepositorySystemSession repoSession = initRepoSession(); MavenSession session = new MavenSession( getContainer(), repoSession, new DefaultMavenExecutionRequest(), new DefaultMavenExecutionResult()); session.setSession(new DefaultSessionFactory(Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Oct 10 09:40:15 UTC 2025 - 13.8K bytes - Viewed (0) -
impl/maven-core/src/test/java/org/apache/maven/project/PomConstructionTest.java
DefaultRepositorySystemSession repoSession = MavenTestHelper.createSession(repositorySystem, container); LocalRepository localRepo = new LocalRepository(config.getLocalRepository().getBasedir()); repoSession.setLocalRepositoryManager( new SimpleLocalRepositoryManagerFactory().newInstance(repoSession, localRepo)); config.setRepositorySession(repoSession);Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 17 10:01:14 UTC 2025 - 94.8K bytes - Viewed (0)