- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 80 for get_session (0.09 sec)
-
docs_src/sql_databases/tutorial002_an.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 Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Oct 09 19:44:42 UTC 2024 - 2.6K bytes - Viewed (0) -
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 Nov 03 07:19:11 UTC 2024 - 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 Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Oct 09 19:44:42 UTC 2024 - 2.5K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTreeHandleImpl.java
this.resourceLoc = resourceLoc; this.treeConnection = treeConnection.acquire(); } @Override public SmbSessionImpl getSession () { return this.treeConnection.getSession(); } @Override public void ensureDFSResolved () throws CIFSException { this.treeConnection.ensureDFSResolved(this.resourceLoc); } @Override
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 8.9K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/DefaultMaven.java
session.setSession(defaultSessionFactory.newSession(session)); sessionScope.seed(MavenSession.class, session); sessionScope.seed(Session.class, session.getSession()); sessionScope.seed(InternalMavenSession.class, InternalMavenSession.from(session.getSession())); legacySupport.setSession(session);
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 27.5K bytes - Viewed (1) -
src/main/java/jcifs/smb1/http/NtlmHttpFilter.java
resp.flushBuffer(); return null; } req.getSession().setAttribute( "NtlmHttpAuth", ntlm ); } else { if (!skipAuthentication) { HttpSession ssn = req.getSession(false); if (ssn == null || (ntlm = (NtlmPasswordAuthentication) ssn.getAttribute("NtlmHttpAuth")) == null) {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 21:10:40 UTC 2019 - 10.4K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTreeConnection.java
* * @return session that this file has been loaded through */ @SuppressWarnings ( "resource" ) public SmbSessionImpl getSession () { SmbTreeImpl t = getTreeInternal(); if ( t != null ) { return t.getSession(); } return null; } /** * * Only call this method while holding a tree handle *
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Tue Jul 07 10:50:16 UTC 2020 - 31K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/aether/ReverseTreeRepositoryListener.java
boolean missing = event.getFile() == null; if (missing) { // missing artifact - let's track the path anyway File dir = event.getSession().getLocalRepository().getBasedir(); dir = new File( dir, event.getSession().getLocalRepositoryManager().getPathForLocalArtifact(event.getArtifact())); trackingDir = dir.getParentFile().toPath().resolve(".tracking"); } else {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 9.8K bytes - Viewed (0) -
src/main/java/jcifs/http/NtlmHttpFilter.java
resp.flushBuffer(); return null; } req.getSession().setAttribute("NtlmHttpAuth", ntlm); } else { if ( !skipAuthentication ) { HttpSession ssn = req.getSession(false); if ( ssn == null || ( ntlm = (NtlmPasswordAuthentication) ssn.getAttribute("NtlmHttpAuth") ) == null ) {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 14.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/login/LoginAction.java
}, validationErrorLambda); return null; }); } private OptionalThing<HttpSession> getSession() { final HttpSession session = request.getSession(false); if (session != null) { return OptionalEntity.of(session); } return OptionalEntity.empty(); }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 6.1K bytes - Viewed (0)