Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 146 for raws (0.06 sec)

  1. src/database/sql/convert.go

    	// The driver is returning a cursor the client may iterate over.
    	case driver.Rows:
    		switch d := dest.(type) {
    		case *Rows:
    			if d == nil {
    				return errNilPtr
    			}
    			if rows == nil {
    				return errors.New("invalid context to convert cursor rows, missing parent *Rows")
    			}
    			rows.closemu.Lock()
    			*d = Rows{
    				dc:          rows.dc,
    				releaseConn: func(error) {},
    				rowsi:       s,
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  2. migrator/migrator.go

    	execErr := m.RunWithValue(value, func(stmt *gorm.Statement) (err error) {
    		rows, err := m.DB.Session(&gorm.Session{}).Table(stmt.Table).Limit(1).Rows()
    		if err != nil {
    			return err
    		}
    
    		defer func() {
    			err = rows.Close()
    		}()
    
    		var rawColumnTypes []*sql.ColumnType
    		rawColumnTypes, err = rows.ColumnTypes()
    		if err != nil {
    			return err
    		}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Apr 26 07:15:49 UTC 2024
    - 29K bytes
    - Viewed (0)
  3. tests/scan_test.go

    	DB.Save(&user1).Save(&user2).Save(&user3)
    
    	rows, err := DB.Table("users").Where("name = ? or name = ?", user2.Name, user3.Name).Select("name, age").Rows()
    	if err != nil {
    		t.Errorf("No error should happen, got %v", err)
    	}
    
    	type Result struct {
    		Name string
    		Age  int
    	}
    
    	var results []Result
    	for rows.Next() {
    		var result Result
    		if err := DB.ScanRows(rows, &result); err != nil {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:57:36 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  4. src/database/sql/convert_test.go

    			}
    		}
    		if !match {
    			t.Fatalf("%s: got %q (len %d); want %q (len %d)", name, buf, len(buf), want, len(want))
    		}
    	}
    
    	n := testing.AllocsPerRun(100, func() {
    		for _, tt := range tests {
    			rows.raw = rows.raw[:0]
    			test(tt.name, tt.in, tt.want)
    		}
    	})
    
    	// The numbers below are only valid for 64-bit interface word sizes,
    	// and gc. With 32-bit words there are more convT2E allocs, and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 10 20:23:22 UTC 2024
    - 17K bytes
    - Viewed (0)
  5. src/database/sql/fakedb_test.go

    		}
    		if doInsert {
    			cols[colidx] = val
    		}
    	}
    
    	if doInsert {
    		t.rows = append(t.rows, &row{cols: cols})
    	}
    	return driver.RowsAffected(1), nil
    }
    
    // hook to simulate broken connections
    var hookQueryBadConn func() bool
    
    func (s *fakeStmt) Query(args []driver.Value) (driver.Rows, error) {
    	panic("Use QueryContext")
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 01 12:38:07 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  6. cmd/signature-v2.go

    	"uploadId",
    	"uploads",
    	"versionId",
    	"versioning",
    	"versions",
    	"website",
    }
    
    // Signature and API related constants.
    const (
    	signV2Algorithm = "AWS"
    )
    
    // AWS S3 Signature V2 calculation rule is give here:
    // http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html#RESTAuthenticationStringToSign
    func doesPolicySignatureV2Match(formValues http.Header) (auth.Credentials, APIErrorCode) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/unroll_batch_matmul.cc

      }
    
      const int64_t rows = lhs_shape[lhs_dims - 2];
      const int64_t cols = rhs_shape[rhs_dims - 1];
    
      if (lhs_shape[lhs_dims - 1] != rhs_shape[rhs_dims - 2]) {
        // Input dimensions must be compatible for multiplication.
        return failure();
      }
    
      const auto matmul_type = RankedTensorType::get({rows, cols}, element_type);
    
      if (lhs_dims == 2 && rhs_dims == 2) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  8. cmd/auth-handler.go

    }
    
    // Verify if request has AWS PreSign Version '4'.
    func isRequestPresignedSignatureV4(r *http.Request) bool {
    	_, ok := r.Form[xhttp.AmzCredential]
    	return ok
    }
    
    // Verify request has AWS PreSign Version '2'.
    func isRequestPresignedSignatureV2(r *http.Request) bool {
    	_, ok := r.Form[xhttp.AmzAccessKeyID]
    	return ok
    }
    
    // Verify if request has AWS Post policy Signature Version '4'.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 26K bytes
    - Viewed (0)
  9. cmd/signature-v4.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    // Package cmd This file implements helper functions to validate AWS
    // Signature Version '4' authorization header.
    //
    // This package provides comprehensive helpers for following signature
    // types.
    // - Based on Authorization header.
    // - Based on Query parameters.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 16 23:13:47 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  10. docs/site-replication/run-sse-kms-object-replication.sh

    echo "Stat minio1/test-bucket/defpartsize"
    ./mc stat minio1/test-bucket/defpartsize --insecure --json
    stat_out2=$(./mc stat minio1/test-bucket/defpartsize --insecure --json)
    src_obj2_algo=$(echo "${stat_out2}" | jq '.metadata."X-Amz-Server-Side-Encryption"')
    src_obj2_keyid=$(echo "${stat_out2}" | jq '.metadata."X-Amz-Server-Side-Encryption-Aws-Kms-Key-Id"')
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat May 18 18:19:01 UTC 2024
    - 10.1K bytes
    - Viewed (0)
Back to top