- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 4,360 for IF (0.02 seconds)
-
statement.go
write := func(raw bool, str string) { if raw { writer.WriteString(str) } else { stmt.DB.Dialector.QuoteTo(writer, str) } } switch v := field.(type) { case clause.Table: if v.Name == clause.CurrentTable { if stmt.TableExpr != nil { stmt.TableExpr.Build(stmt) } else if stmt.Table != "" { write(v.Raw, stmt.Table) } else if stmt.AddError(stmt.Parse(stmt.Model)) == nil {
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Fri Sep 12 04:33:27 GMT 2025 - 20.9K bytes - Click Count (0) -
cmd/xl-storage-format-v2.go
var version xlMetaV2Version if _, err := version.unmarshalV(x.metaV, ver.meta); err != nil { return fi, err } if fi, err = version.ToFileInfo(volume, path, allParts); err != nil { return fi, err } fi.IsLatest = isLatest if succModTime != 0 { fi.SuccessorModTime = time.Unix(0, succModTime) } } if !found { if versionID == "" { if inclFreeVers && nonFreeVersions == 0 {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 65.6K bytes - Click Count (1) -
cmd/auth-handler.go
} else if isRequestSignStreamingTrailerV4(r) { return authTypeStreamingSignedTrailer } else if isRequestUnsignedTrailerV4(r) { return authTypeStreamingUnsignedTrailer } else if isRequestSignatureV4(r) { return authTypeSigned } else if isRequestPresignedSignatureV4(r) { return authTypePresigned } else if isRequestJWT(r) { return authTypeJWT } else if isRequestPostPolicySignatureV4(r) { return authTypePostPolicy
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 25.4K bytes - Click Count (0) -
schema/schema.go
} } if schema.PrioritizedPrimaryField == nil { if len(schema.PrimaryFields) == 1 { schema.PrioritizedPrimaryField = schema.PrimaryFields[0] } else if len(schema.PrimaryFields) > 1 { // If there are multiple primary keys, the AUTOINCREMENT field is prioritized for _, field := range schema.PrimaryFields { if field.AutoIncrement { schema.PrioritizedPrimaryField = fieldCreated: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Fri Oct 31 12:13:56 GMT 2025 - 13.1K bytes - Click Count (0) -
internal/event/target/redis.go
// Validate RedisArgs fields func (r RedisArgs) Validate() error { if !r.Enable { return nil } if r.Format != "" { f := strings.ToLower(r.Format) if f != event.NamespaceFormat && f != event.AccessFormat { return fmt.Errorf("unrecognized format") } } if r.Key == "" { return fmt.Errorf("empty key") } if r.QueueDir != "" { if !filepath.IsAbs(r.QueueDir) {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Mar 30 00:56:02 GMT 2025 - 9.1K bytes - Click Count (0) -
cmd/metacache_gen.go
if err != nil { return } err = en.WriteString(z.bucket) if err != nil { err = msgp.WrapError(err, "bucket") return } // write "flt" err = en.Append(0xa3, 0x66, 0x6c, 0x74) if err != nil { return } err = en.WriteString(z.filter) if err != nil { err = msgp.WrapError(err, "filter") return } // write "id" err = en.Append(0xa2, 0x69, 0x64) if err != nil { returnCreated: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 10K bytes - Click Count (0) -
cmd/xl-storage-meta-inline.go
if err != nil { return nil } } return nil } // validate checks if the data is valid. // It does not check integrity of the stored data. func (x xlMetaInlineData) validate() error { if len(x) == 0 { return nil } if !x.versionOK() { return fmt.Errorf("xlMetaInlineData: unknown version 0x%x", x[0]) } sz, buf, err := msgp.ReadMapHeaderBytes(x.afterVersion()) if err != nil {Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 9.4K bytes - Click Count (0) -
cmd/admin-handlers-idp-ldap.go
var lookupResult *xldap.DNSearchResult lookupResult, targetGroups, err = globalIAMSys.LDAPConfig.LookupUserDN(targetUser) if err != nil { // if not found, check if DN if strings.Contains(err.Error(), "User DN not found for:") { if isDN { // warn user that DNs are not allowed writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErrWithErr(ErrAdminLDAPExpectedLoginName, err), r.URL)
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 08 02:46:04 GMT 2025 - 19.2K bytes - Click Count (0) -
cmd/metacache-set.go
if vnf > 0 && vnf >= len(readers)-opts.minDisks { return errVolumeNotFound } // Since minDisks is set to quorum, we return if we have enough. if fnf > 0 && fnf >= len(readers)-opts.minDisks { return errFileNotFound } // Stop if we exceed number of bad disks. if hasErr > 0 && hasErr+fnf > len(disks)-opts.minDisks { if opts.finished != nil {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 30.7K bytes - Click Count (0) -
tests/transaction_test.go
tx.Create(&user2) if err := tx.First(&User{}, "name = ?", user2.Name).Error; err != nil { t.Fatalf("Should find saved record") } if err := tx.Commit().Error; err != nil { t.Fatalf("Failed to commit, got error %v", err) } if err := DB.First(&User{}, "name = ?", user.Name).Error; err != nil { t.Fatalf("Should find saved record") }
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Mon Sep 08 09:19:22 GMT 2025 - 13.3K bytes - Click Count (0)