- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 474 for CSession (0.07 sec)
-
docs_src/sql_databases/tutorial002_py310.py
def get_session(): with Session(engine) as session: yield session app = FastAPI() @app.on_event("startup") def on_startup(): create_db_and_tables() @app.post("/heroes/", response_model=HeroPublic) def create_hero(hero: HeroCreate, session: Session = Depends(get_session)): db_hero = Hero.model_validate(hero) session.add(db_hero) session.commit()
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Oct 09 19:44:42 UTC 2024 - 2.5K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/DependencyResolver.java
} @Nonnull default DependencyResolverResult resolve(@Nonnull Session session, @Nonnull Project project) { return resolve( DependencyResolverRequest.build(session, DependencyResolverRequest.RequestType.RESOLVE, project)); } @Nonnull default DependencyResolverResult resolve( @Nonnull Session session, @Nonnull Project project, @Nonnull PathScope scope) {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Wed Oct 16 14:15:37 UTC 2024 - 9.4K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/VersionResolverRequest.java
} @NotThreadSafe class VersionResolverRequestBuilder { Session session; ArtifactCoordinates artifactCoordinates; List<RemoteRepository> repositories; public VersionResolverRequestBuilder session(Session session) { this.session = session; return this; }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Thu Sep 12 06:19:14 UTC 2024 - 4.3K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/ArtifactResolverRequest.java
@NotThreadSafe class ArtifactResolverRequestBuilder { Session session; Collection<? extends ArtifactCoordinates> coordinates; List<RemoteRepository> repositories; ArtifactResolverRequestBuilder() {} @Nonnull public ArtifactResolverRequestBuilder session(Session session) { this.session = session; return this; } @Nonnull
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Thu Sep 12 06:19:14 UTC 2024 - 4.6K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/VersionRangeResolverRequest.java
} @NotThreadSafe class VersionResolverRequestBuilder { Session session; ArtifactCoordinates artifactCoordinates; List<RemoteRepository> repositories; public VersionResolverRequestBuilder session(Session session) { this.session = session; return this; }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Thu Sep 12 06:19:14 UTC 2024 - 4.2K bytes - Viewed (0) -
docs_src/sql_databases/tutorial001_an_py310.py
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/") def create_hero(hero: Hero, session: SessionDep) -> Hero: session.add(hero) session.commit() session.refresh(hero) return hero
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Oct 09 19:44:42 UTC 2024 - 1.7K bytes - Viewed (0) -
tests/prepared_stmt_test.go
tx.Session(&gorm.Session{PrepareStmt: true}).Create(&user) return errors.New("test") }); err == nil { t.Error(err) } var result User if err := DB.First(&result, user.ID).Error; err == nil { t.Errorf("Failed, got error: %v", err) } } func TestPreparedStmtReset(t *testing.T) { tx := DB.Session(&gorm.Session{PrepareStmt: true})
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Aug 22 11:02:05 UTC 2024 - 8.5K bytes - Viewed (0) -
compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/AbstractRepositoryTestCase.java
session.withLocalRepositories(new LocalRepository(new File("target/local-repo"), "simple")); session.setTransferListener(new ConsoleTransferListener()); session.setRepositoryListener(new ConsoleRepositoryListener()); return session.build(); } public static RemoteRepository newTestRepository() throws MalformedURLException { return new RemoteRepository.Builder( "repo",
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.7K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/ArtifactDeployerRequest.java
} class ArtifactDeployerRequestBuilder { Session session; RemoteRepository repository; Collection<ProducedArtifact> artifacts; int retryFailedDeploymentCount; ArtifactDeployerRequestBuilder() {} @Nonnull public ArtifactDeployerRequestBuilder session(Session session) { this.session = session; return this; } @Nonnull
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 16:43:07 UTC 2024 - 4.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/login/LoginAction.java
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)