Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 374 for OK (0.14 sec)

  1. migrator.go

    	ColumnType() (columnType string, ok bool) // varchar(64)
    	PrimaryKey() (isPrimaryKey bool, ok bool)
    	AutoIncrement() (isAutoIncrement bool, ok bool)
    	Length() (length int64, ok bool)
    	DecimalSize() (precision int64, scale int64, ok bool)
    	Nullable() (nullable bool, ok bool)
    	Unique() (unique bool, ok bool)
    	ScanType() reflect.Type
    	Comment() (value string, ok bool)
    	DefaultValue() (value string, ok bool)
    }
    
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Mon Oct 30 09:15:49 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  2. tests/callbacks_test.go

    	createCallback.Remove("c1")
    	if ok, msg := assertCallbacks(createCallback, []string{"c3", "c4", "c2"}); !ok {
    		t.Errorf("callbacks tests failed, got %v", msg)
    	}
    
    	createCallback.Remove("c4")
    	if ok, msg := assertCallbacks(createCallback, []string{"c3", "c2"}); !ok {
    		t.Errorf("callbacks tests failed, got %v", msg)
    	}
    
    	createCallback.Remove("c2")
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Tue Mar 26 03:33:36 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  3. cmd/xl-storage-errors_test.go

    		ok = isSysErrNotEmpty(pathErr)
    		if !ok {
    			t.Fatalf("Unexpected error expecting %s", syscall.ENOTEMPTY)
    		}
    	} else {
    		pathErr = &os.PathError{Err: syscall.Errno(0x91)}
    		ok = isSysErrNotEmpty(pathErr)
    		if !ok {
    			t.Fatal("Unexpected error expecting 0x91")
    		}
    	}
    	if runtime.GOOS == globalWindowsOSName {
    		pathErr = &os.PathError{Err: syscall.Errno(0x03)}
    		ok = isSysErrPathNotFound(pathErr)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 1.7K bytes
    - Viewed (0)
  4. cmd/signature-v4-utils.go

    func skipContentSha256Cksum(r *http.Request) bool {
    	var (
    		v  []string
    		ok bool
    	)
    
    	if isRequestPresignedSignatureV4(r) {
    		v, ok = r.Form[xhttp.AmzContentSha256]
    		if !ok {
    			v, ok = r.Header[xhttp.AmzContentSha256]
    		}
    	} else {
    		v, ok = r.Header[xhttp.AmzContentSha256]
    	}
    
    	// Skip if no header was set.
    	if !ok {
    		return true
    	}
    
    	// If x-amz-content-sha256 is set and the value is not
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Jan 31 18:56:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  5. tensorflow/c/eager/parallel_device/parallel_device_remote_test.cc

                      .ok());
      ASSERT_TRUE(worker_server1->Start().ok());
    
      server_def.set_task_index(2);
      std::unique_ptr<tensorflow::GrpcServer> worker_server2;
      ASSERT_TRUE(tensorflow::GrpcServer::Create(
                      server_def, tensorflow::Env::Default(), &worker_server2)
                      .ok());
      ASSERT_TRUE(worker_server2->Start().ok());
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 22:09:57 GMT 2023
    - 6.7K bytes
    - Viewed (0)
  6. migrator/column_type.go

    }
    
    // ColumnType returns the database type of the column. like `varchar(16)`
    func (ct ColumnType) ColumnType() (columnType string, ok bool) {
    	return ct.ColumnTypeValue.String, ct.ColumnTypeValue.Valid
    }
    
    // PrimaryKey returns the column is primary key or not.
    func (ct ColumnType) PrimaryKey() (isPrimaryKey bool, ok bool) {
    	return ct.PrimaryKeyValue.Bool, ct.PrimaryKeyValue.Valid
    }
    
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Thu Mar 24 01:31:58 GMT 2022
    - 3.3K bytes
    - Viewed (0)
  7. soft_delete.go

    }
    
    func (sd SoftDeleteQueryClause) ModifyStatement(stmt *Statement) {
    	if _, ok := stmt.Clauses["soft_delete_enabled"]; !ok && !stmt.Statement.Unscoped {
    		if c, ok := stmt.Clauses["WHERE"]; ok {
    			if where, ok := c.Expression.(clause.Where); ok && len(where.Exprs) >= 1 {
    				for _, expr := range where.Exprs {
    					if orCond, ok := expr.(clause.OrConditions); ok && len(orCond.Exprs) == 1 {
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Wed Feb 01 06:40:55 GMT 2023
    - 4.5K bytes
    - Viewed (0)
  8. cmd/bucket-policy.go

    	for k, v := range claims {
    		vStr, ok := v.(string)
    		if ok {
    			// Trim any LDAP specific prefix
    			args[strings.ToLower(strings.TrimPrefix(k, "ldap"))] = []string{vStr}
    		}
    	}
    
    	// Add groups claim which could be a list. This will ensure that the claim
    	// `jwt:groups` works.
    	if grpsVal, ok := claims["groups"]; ok {
    		if grpsIs, ok := grpsVal.([]interface{}); ok {
    			grps := []string{}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 8K bytes
    - Viewed (0)
  9. clause/expression.go

    			if inName {
    				if nv, ok := namedMap[string(name)]; ok {
    					builder.AddVar(builder, nv)
    				} else {
    					builder.WriteByte('@')
    					builder.WriteString(string(name))
    				}
    				inName = false
    			}
    
    			afterParenthesis = false
    			builder.WriteByte(v)
    		} else if v == '?' && len(expr.Vars) > idx {
    			if afterParenthesis {
    				if _, ok := expr.Vars[idx].(driver.Valuer); ok {
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Tue Oct 10 06:45:48 GMT 2023
    - 8.3K bytes
    - Viewed (0)
  10. callbacks/delete.go

    func BeforeDelete(db *gorm.DB) {
    	if db.Error == nil && db.Statement.Schema != nil && !db.Statement.SkipHooks && db.Statement.Schema.BeforeDelete {
    		callMethod(db, func(value interface{}, tx *gorm.DB) bool {
    			if i, ok := value.(BeforeDeleteInterface); ok {
    				db.AddError(i.BeforeDelete(tx))
    				return true
    			}
    
    			return false
    		})
    	}
    }
    
    func DeleteBeforeAssociations(db *gorm.DB) {
    	if db.Error == nil && db.Statement.Schema != nil {
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Fri Feb 25 02:48:23 GMT 2022
    - 5.6K bytes
    - Viewed (0)
Back to top