Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1391 - 1400 of 1,427 for appends (0.05 sec)

  1. tests/query_test.go

    	var (
    		sub, results []User
    		lastBatch    int
    	)
    
    	// offset limit
    	if result := DB.Offset(3).Limit(5).Where("name = ?", users[0].Name).FindInBatches(&sub, 2, func(tx *gorm.DB, batch int) error {
    		results = append(results, sub...)
    		lastBatch = batch
    		return nil
    	}); result.Error != nil || result.RowsAffected != 5 {
    		t.Errorf("Failed to batch find, got error %v, rows affected: %v", result.Error, result.RowsAffected)
    	}
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 50.4K bytes
    - Viewed (0)
  2. .bazelrc

    build:rbe_cross_compile_base --config=rbe_base
    build:rbe_cross_compile_base --remote_instance_name=projects/tensorflow-testing/instances/default_instance
    
    # XLA depends on some local Python headers that are configured as Genrule. They
    # are present on the local host machine but not on the remote execution machine,
    # leading to build failures. To resolve the issue, the following line is added
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Oct 28 22:02:31 UTC 2024
    - 51.3K bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/sql-databases.md

    user = db.query(User).first()
    ```
    
    然后我们应该声明*路径操作函数*和不带 的依赖关系`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)
  4. android/guava/src/com/google/common/math/LongMath.java

          return div;
        }
    
        /*
         * Normal Java division rounds towards 0, consistently with RoundingMode.DOWN. We just have to
         * deal with the cases where rounding towards 0 is wrong, which typically depends on the sign of
         * p / q.
         *
         * signum is 1 if p and q are both nonnegative or both negative, and -1 otherwise.
         */
        int signum = 1 | (int) ((p ^ q) >> (Long.SIZE - 1));
        boolean increment;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 09 16:39:37 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  5. apache-maven/src/main/appended-resources/licenses/CDDL+GPLv2-with-classpath-exception.txt

    the Program is not restricted, and the output from the Program is
    covered only if its contents constitute a work based on the Program
    (independent of having been made by running the Program). Whether that
    is true depends on what the Program does.
    
    1. You may copy and distribute verbatim copies of the Program's source
    code as you receive it, in any medium, provided that you conspicuously
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri May 17 19:14:22 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  6. api/go1.5.txt

    pkg math/big, method (*Float) Abs(*Float) *Float
    pkg math/big, method (*Float) Acc() Accuracy
    pkg math/big, method (*Float) Add(*Float, *Float) *Float
    pkg math/big, method (*Float) Append([]uint8, uint8, int) []uint8
    pkg math/big, method (*Float) Cmp(*Float) int
    pkg math/big, method (*Float) Copy(*Float) *Float
    pkg math/big, method (*Float) Float32() (float32, Accuracy)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Jul 30 21:14:09 UTC 2015
    - 46.6K bytes
    - Viewed (0)
  7. internal/s3select/select_test.go

    	statusCode int
    	response   []byte
    }
    
    func (w *testResponseWriter) Header() http.Header {
    	return nil
    }
    
    func (w *testResponseWriter) Write(p []byte) (int, error) {
    	w.response = append(w.response, p...)
    	return len(p), nil
    }
    
    func (w *testResponseWriter) WriteHeader(statusCode int) {
    	w.statusCode = statusCode
    }
    
    func (w *testResponseWriter) Flush() {
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Dec 23 07:19:11 UTC 2023
    - 76.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

          ClosingFuture<?> future6,
          ClosingFuture<?>... moreFutures) {
        return whenAllSucceed(
            FluentIterable.of(future1, future2, future3, future4, future5, future6)
                .append(moreFutures));
      }
    
      private final AtomicReference<State> state = new AtomicReference<>(OPEN);
      private final CloseableList closeables;
      private final FluentFuture<V> future;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 08 19:36:35 UTC 2024
    - 98.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/io/CopyUtil.java

            try {
                final char[] buf = new char[DEFAULT_BUF_SIZE];
                int len;
                int amount = 0;
                while ((len = in.read(buf)) != -1) {
                    out.append(buf, 0, len);
                    amount += len;
                }
                return amount;
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 52.4K bytes
    - Viewed (0)
  10. common-protos/k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto

      // +optional
      optional int64 generation = 7;
    
      // CreationTimestamp is a timestamp representing the server time when this object was
      // created. It is not guaranteed to be set in happens-before order across separate operations.
      // Clients may not set this value. It is represented in RFC3339 form and is in UTC.
      //
      // Populated by the system.
      // Read-only.
      // Null for lists.
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 53.3K bytes
    - Viewed (0)
Back to top