Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 79 for get_db (0.08 sec)

  1. docs/em/docs/tutorial/sql-databases.md

    ```
    
    โคด๏ธ ๐Ÿ‘ฅ ๐Ÿ”œ ๐Ÿ“ฃ *โžก ๐Ÿ› ๏ธ ๐Ÿ”ข* & ๐Ÿ”— ๐Ÿต `async def`, โฎ๏ธ ๐Ÿ˜ `def`,:
    
    ```Python hl_lines="2"
    @app.get("/users/{user_id}", response_model=schemas.User)
    def read_user(user_id: int, db: Session = Depends(get_db)):
        db_user = crud.get_user(db, user_id=user_id)
        ...
    ```
    
    /// info
    
    ๐Ÿšฅ ๐Ÿ‘† ๐Ÿ’ช ๐Ÿ”— ๐Ÿ‘† ๐Ÿ”— ๐Ÿ’ฝ ๐Ÿ”, ๐Ÿ‘€ [๐Ÿ” ๐Ÿ—„ (๐Ÿ”—) ๐Ÿ’ฝ](../advanced/async-sql-databases.md){.internal-link target=_blank}.
    
    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 25K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/sql-databases.md

    ```
    
    ็„ถๅŽๆˆ‘ไปฌๅบ”่ฏฅๅฃฐๆ˜Ž*่ทฏๅพ„ๆ“ไฝœๅ‡ฝๆ•ฐ*ๅ’Œไธๅธฆ ็š„ไพ่ต–ๅ…ณ็ณป`async def`๏ผŒๅช้œ€ไฝฟ็”จๆ™ฎ้€š็š„`def`๏ผŒๅฆ‚ไธ‹๏ผš
    
    ```Python hl_lines="2"
    @app.get("/users/{user_id}", response_model=schemas.User)
    def read_user(user_id: int, db: Session = Depends(get_db)):
        db_user = crud.get_user(db, user_id=user_id)
        ...
    ```
    
    /// info
    
    ๅฆ‚ๆžœๆ‚จ้œ€่ฆๅผ‚ๆญฅ่ฟžๆŽฅๅˆฐๅ…ณ็ณปๆ•ฐๆฎๅบ“๏ผŒ่ฏทๅ‚้˜…[Async SQL (Relational) Databases](https://fastapi.tiangolo.com/zh/advanced/async-sql-databases/)
    
    ///
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/beans/util/BeanUtilTest.java

            dest.setBbb("bbb");
            dest.setDdd("ddd");
    
            BeanUtil.copyBeanToBean(src, dest);
            assertThat(dest.getAaa(), is("111"));
            assertThat(dest.getBbb(), is(nullValue()));
            assertThat(dest.getDdd(), is("ddd"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testCopy_BeanToBean_ExcludeNull() throws Exception {
            final MyClass src = new MyClass();
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/DfsImpl.java

                return null;
            }
    
        }
    
    
        /**
         * 
         * {@inheritDoc}
         *
         * @see jcifs.DfsResolver#getDc(jcifs.CIFSContext, java.lang.String)
         */
        @Override
        public SmbTransport getDc ( CIFSContext tf, String domain ) throws SmbAuthException {
            if ( tf.getConfig().isDfsDisabled() )
                return null;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:07:29 UTC 2023
    - 29.1K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java

                                }
                            }
                        }
                    }
    
                    // org.eclipse.aether.ConfigurationProperties.HTTP_HEADERS => Map<String, String>
                    if (headers != null) {
                        configProps.put(ConfigurationProperties.HTTP_HEADERS + "." + server.getId(), headers);
                    }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/service/ElevateWordService.java

        public void store(final ElevateWord elevateWord) {
            final boolean isNew = elevateWord.getId() == null;
            final String[] labelTypeIds = elevateWord.getLabelTypeIds();
    
            elevateWordBhv.insertOrUpdate(elevateWord, op -> {
                op.setRefreshPolicy(Constants.TRUE);
            });
            final String elevateWordId = elevateWord.getId();
            if (labelTypeIds != null) {
                if (isNew) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java

                    if (!repos.containsKey(repo.getId())) {
                        repos.put(repo.getId(), repo);
                    }
                }
    
                for (ArtifactRepository repo : pomRepositories) {
                    if (!repos.containsKey(repo.getId())) {
                        repos.put(repo.getId(), repo);
                    }
                }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  8. impl/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequest.java

        @Override
        public MavenExecutionRequest addProxy(Proxy proxy) {
            Objects.requireNonNull(proxy, "proxy cannot be null");
    
            for (Proxy p : getProxies()) {
                if (p.getId() != null && p.getId().equals(proxy.getId())) {
                    return this;
                }
            }
    
            getProxies().add(proxy);
    
            return this;
        }
    
        @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.java

                        try {
                            wagonManager.getArtifactMetadata(metadata, repository, file, policy.getChecksumPolicy());
                        } catch (ResourceDoesNotExistException e) {
                            getLogger().debug(metadata + " could not be found on repository: " + repository.getId());
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  10. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/PluginDescriptor.java

            if (this == object) {
                return true;
            }
    
            return object instanceof PluginDescriptor && getId().equals(((PluginDescriptor) object).getId());
        }
    
        public int hashCode() {
            return 10 + getId().hashCode();
        }
    
        public MojoDescriptor getMojo(String goal) {
            if (getMojos() == null) {
                return null; // no mojo in this POM
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16.2K bytes
    - Viewed (0)
Back to top