Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 1,175 for sessions (0.12 sec)

  1. 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)
  2. 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)
  3. 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)
  4. src/main/java/jcifs/smb1/smb1/SmbComTreeConnectAndX.java

            if( session.transport.server.security == SECURITY_SHARE &&
                            ( session.auth.hashesExternal ||
                            session.auth.password.length() > 0 )) {
    
                if( session.transport.server.encryptedPasswords ) {
                    // encrypted
                    password = session.auth.getAnsiHash( session.transport.server.encryptionKey );
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 6.8K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultSessionFactory.java

        }
    
        public InternalSession newSession(MavenSession mavenSession) {
            InternalSession session = new DefaultSession(
                    mavenSession, repositorySystem, null, mavenRepositorySystem, lookup, runtimeInformation);
            InternalSession.associate(mavenSession.getRepositorySession(), session);
            return session;
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. compat/maven-compat/src/main/java/org/apache/maven/DefaultProjectDependenciesResolver.java

    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  9. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/MavenArtifactRelocationSource.java

         *
         * @param session The session, never {@code null}.
         * @param result The artifact descriptor result, never {@code null}.
         * @param model The artifact model, never {@code null}.
         * @return The {@link Artifact} to relocate to, or {@code null} if no relocation wanted.
         */
        Artifact relocatedTarget(RepositorySystemSession session, ArtifactDescriptorResult result, Model model)
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  10. api/maven-api-core/src/main/java/org/apache/maven/api/services/SettingsBuilder.java

         * @throws SettingsBuilderException if the effective settings could not be built
         */
        @Nonnull
        default SettingsBuilderResult build(
                @Nonnull Session session, @Nonnull Source installationSettingsSource, @Nonnull Source userSettingsSource) {
            return build(session, installationSettingsSource, null, userSettingsSource);
        }
    
        /**
         * Builds the effective settings of the specified settings paths.
         *
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Aug 22 14:47:43 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top