Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 857 for NIL (0.13 sec)

  1. migrator/migrator.go

    							return err
    						}
    					}
    				}
    
    				for _, idx := range parseIndexes {
    					if !queryTx.Migrator().HasIndex(value, idx.Name) {
    						if err := execTx.Migrator().CreateIndex(value, idx.Name); err != nil {
    							return err
    						}
    					}
    				}
    
    				return nil
    			}); err != nil {
    				return err
    			}
    		}
    	}
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Fri Apr 26 07:15:49 UTC 2024
    - 29K bytes
    - Viewed (0)
  2. tests/serializer_test.go

    		t.Fatalf("no error should happen when migrate scanner, valuer struct, got error %v", err)
    	}
    
    	data := SerializerStruct{}
    
    	if err := DB.Create(&data).Error; err != nil {
    		t.Fatalf("failed to create data, got error %v", err)
    	}
    
    	var result SerializerStruct
    	if err := DB.First(&result, data.ID).Error; err != nil {
    		t.Fatalf("failed to query data, got error %v", err)
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Fri Apr 21 14:09:38 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  3. internal/config/identity/openid/jwt_test.go

    	cfgGet := func(param string) string {
    		return testKvs.Get(param)
    	}
    
    	if testConfig.provider != nil {
    		t.Errorf("Empty config cannot have any provider!")
    	}
    
    	if err := testConfig.initializeProvider(cfgGet, http.DefaultTransport); err != nil {
    		t.Error(err)
    	}
    
    	if testConfig.provider == nil {
    		t.Errorf("keycloak provider must be initialized!")
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  4. cmd/warm-backend-azure.go

    	if opts.startOffset < 0 {
    		return nil, InvalidRange{}
    	}
    	resp, err := az.clnt.DownloadStream(ctx, az.Bucket, az.getDest(object), &azblob.DownloadStreamOptions{
    		Range: blob.HTTPRange{Offset: opts.startOffset, Count: opts.length},
    	})
    	if err != nil {
    		return nil, azureToObjectError(err, az.Bucket, az.getDest(object))
    	}
    
    	return resp.Body, nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 7K bytes
    - Viewed (0)
  5. cmd/metrics-v2_gen.go

    	if err != nil {
    		err = msgp.WrapError(err)
    		return
    	}
    	for zb0001 > 0 {
    		zb0001--
    		field, bts, err = msgp.ReadMapKeyZC(bts)
    		if err != nil {
    			err = msgp.WrapError(err)
    			return
    		}
    		switch msgp.UnsafeString(field) {
    		case "Namespace":
    			{
    				var zb0002 string
    				zb0002, bts, err = msgp.ReadStringBytes(bts)
    				if err != nil {
    					err = msgp.WrapError(err, "Namespace")
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Mar 10 09:15:15 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  6. internal/ioutil/read_file.go

    // A successful call returns err == nil, not err == EOF.
    // Because ReadFile reads the whole file, it does not treat an EOF from Read
    // as an error to be reported.
    func ReadFileWithFileInfo(name string) ([]byte, fs.FileInfo, error) {
    	f, err := OsOpenFile(name, readMode, 0o666)
    	if err != nil {
    		return nil, nil, err
    	}
    	defer f.Close()
    
    	st, err := f.Stat()
    	if err != nil {
    		return nil, nil, err
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Dec 09 18:17:51 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  7. cmd/endpoint-ellipses.go

    		patterns, perr := ellipses.FindEllipsesPatterns(arg)
    		if perr != nil {
    			return endpointSet{}, config.ErrInvalidErasureEndpoints(nil).Msg(perr.Error())
    		}
    		argPatterns[i] = patterns
    	}
    
    	ep.setIndexes, err = getSetIndexes(args, getTotalSizes(argPatterns), setDriveCount, argPatterns)
    	if err != nil {
    		return endpointSet{}, config.ErrInvalidErasureEndpoints(nil).Msg(err.Error())
    	}
    
    	ep.argPatterns = argPatterns
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  8. schema/relationship.go

    			relation.FieldSchema.Relationships.Relations["_"+relation.Schema.Name+"_"+relation.Name] = relation
    		}
    
    		switch field.IndirectFieldType.Kind() {
    		case reflect.Struct:
    			relation.Type = HasOne
    		case reflect.Slice:
    			relation.Type = HasMany
    		}
    	}
    
    	if schema.err == nil {
    		schema.setRelation(relation)
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 12 03:46:59 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  9. tests/upsert_test.go

    		t.Fatalf("failed to upsert, got %v", err)
    	}
    
    	lang2 := Language{Code: "upsert", Name: "Upsert"}
    	if err := DB.Clauses(clause.OnConflict{DoNothing: true}).Create(&lang2).Error; err != nil {
    		t.Fatalf("failed to upsert, got %v", err)
    	}
    
    	var langs []Language
    	if err := DB.Find(&langs, "code = ?", lang.Code).Error; err != nil {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Sep 05 07:39:19 UTC 2022
    - 11.4K bytes
    - Viewed (0)
  10. internal/http/dial_dnscache.go

    		host, port, err := net.SplitHostPort(addr)
    		if err != nil {
    			return nil, err
    		}
    
    		if net.ParseIP(host) != nil {
    			// For IP only setups there is no need for DNS lookups.
    			return baseDialCtx(ctx, "tcp", addr)
    		}
    
    		ips, err := lookupHost(ctx, host)
    		if err != nil {
    			return nil, err
    		}
    
    		for _, ip := range ips {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 03 19:30:51 UTC 2023
    - 2.6K bytes
    - Viewed (0)
Back to top