- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 6,307 for session (0.13 sec)
-
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) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultArtifactManager.java
@SessionScoped public class DefaultArtifactManager implements ArtifactManager { @Nonnull private final InternalMavenSession session; private final Map<String, Path> paths = new ConcurrentHashMap<>(); @Inject public DefaultArtifactManager(@Nonnull InternalMavenSession session) { this.session = session; } @Nonnull @Override public Optional<Path> getPath(@Nonnull Artifact artifact) {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 4K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/DefaultConsumerPomArtifactTransformer.java
if (Features.consumerPom(session.getUserProperties()) && consumerPomPresent(request.getArtifacts())) { request.setArtifacts(replacePom(request.getArtifacts())); } return request; } public DeployRequest remapDeployArtifacts(RepositorySystemSession session, DeployRequest request) {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 8K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/AbstractMavenLifecycleParticipant.java
* before they are sorted and actual build execution starts. * * @param session the Maven session * @throws MavenExecutionException in case of issue */ public void afterProjectsRead(MavenSession session) throws MavenExecutionException { // do nothing } /** * Invoked after MavenSession instance has been created. *
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.9K bytes - Viewed (0) -
samples/slack/src/main/java/okhttp3/slack/SlackClient.java
initOauthSession(session); System.out.printf("session granted: %s\n", session); }); System.out.printf("open this URL in a browser: %s\n", authorizeUrl); } /** Set the OAuth session for this client. */ public synchronized void initOauthSession(OAuthSession session) { this.session = session; this.notifyAll(); }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 12 03:31:36 UTC 2019 - 3.4K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java
if (session != null) { request.setOffline(session.isOffline()); request.setForceUpdate(session.getRequest().isUpdateSnapshots()); } } private void injectSession2(ArtifactResolutionRequest request, MavenSession session) { injectSession1(request, session); if (session != null) {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 24.8K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/InternalMavenSession.java
import org.apache.maven.api.Session; import org.apache.maven.api.annotations.Nullable; import org.apache.maven.execution.MavenSession; import static org.apache.maven.internal.impl.Utils.cast; public interface InternalMavenSession extends InternalSession { static InternalMavenSession from(Session session) { return cast(InternalMavenSession.class, session, "session should be an " + InternalMavenSession.class);
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.1K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/feature/Features.java
} /** * Check if the consumer POM feature is active. */ public static boolean consumerPom(@Nullable Session session) { return consumerPom(session != null ? session.getUserProperties() : null); } private static boolean doGet(Properties userProperties, String key, boolean def) {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Wed Sep 11 16:31:06 UTC 2024 - 2.5K bytes - Viewed (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/internal/BootstrapCoreExtensionManager.java
.build()) { MavenSession mSession = new MavenSession(repoSession, request, new DefaultMavenExecutionResult()); InternalSession iSession = new SimpleSession(mSession, repoSystem, null); InternalSession.associate(repoSession, iSession); List<RemoteRepository> repositories = RepositoryUtils.toRepos(request.getPluginArtifactRepositories());
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 13.2K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/BaseRequest.java
import org.apache.maven.api.Session; import org.apache.maven.api.annotations.Experimental; import org.apache.maven.api.annotations.Nonnull; /** * Base class for requests. * * @since 4.0.0 */ @Experimental abstract class BaseRequest { private final Session session; protected BaseRequest(@Nonnull Session session) { this.session = nonNull(session, "session cannot be null"); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Thu Mar 23 05:29:39 UTC 2023 - 1.8K bytes - Viewed (0)