Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for unique (0.5 sec)

  1. src/cmd/compile/internal/types/fmt.go

    // The default is regular Go syntax (fmtGo).
    // fmtDebug is like fmtGo but for debugging dumps and prints the type kind too.
    // fmtTypeID and fmtTypeIDName are for generating various unique representations
    // of types used in hashes, the linker, and function/method instantiations.
    type fmtMode int
    
    const (
    	fmtGo fmtMode = iota
    	fmtDebug
    	fmtTypeID
    	fmtTypeIDName
    )
    
    // Sym
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 15:41:17 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/typeset.go

    // only comparable types are meant; in all other cases comparable is false.
    type _TypeSet struct {
    	methods    []*Func  // all methods of the interface; sorted by unique ID
    	terms      termlist // type terms of the type set
    	comparable bool     // invariant: !comparable || terms.isAll()
    }
    
    // IsEmpty reports whether type set s is the empty set.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  3. tests/table_test.go

    		if err != nil {
    			t.Fatalf("failed to parse user unique, got error %v", err)
    		}
    
    		constraints := user.ParseUniqueConstraints()
    		if len(constraints) != 1 {
    			t.Fatalf("failed to find unique constraint, got %v", constraints)
    		}
    
    		for key := range constraints {
    			if len(key) != 63 {
    				t.Errorf("failed to find unique constraint, got %v", constraints)
    			}
    		}
    	})
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sat Mar 09 09:31:28 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  4. schema/field.go

    	Serializer             SerializerInterface
    	NewValuePool           FieldNewValuePool
    
    	// In some db (e.g. MySQL), Unique and UniqueIndex are indistinguishable.
    	// When a column has a (not Mul) UniqueIndex, Migrator always reports its gorm.ColumnType is Unique.
    	// It causes field unnecessarily migration.
    	// Therefore, we need to record the UniqueIndex on this column (exclude Mul UniqueIndex) for MigrateColumnUnique.
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Apr 15 03:20:20 UTC 2024
    - 32K bytes
    - Viewed (0)
  5. src/cmd/go/internal/work/buildid.go

    }
    
    // contentID returns the content ID half of a build ID.
    func contentID(buildID string) string {
    	return buildID[strings.LastIndex(buildID, buildIDSeparator)+1:]
    }
    
    // toolID returns the unique ID to use for the current copy of the
    // named tool (asm, compile, cover, link).
    //
    // It is important that if the tool changes (for example a compiler bug is fixed
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:31:25 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  6. src/cmd/go/internal/modload/import.go

    }
    
    // ImportMissingSumError is reported in readonly mode when we need to check
    // if a module contains a package, but we don't have a sum for its .zip file.
    // We might need sums for multiple modules to verify the package is unique.
    //
    // TODO(#43653): consolidate multiple errors of this type into a single error
    // that suggests a 'go get' command for root packages that transitively import
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 15:21:14 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  7. schema/relationship.go

    			PkgPath: ownField.StructField.PkgPath,
    			Type:    ownField.StructField.Type,
    			Tag: removeSettingFromTag(appendSettingFromTag(ownField.StructField.Tag, "primaryKey"),
    				"column", "autoincrement", "index", "unique", "uniqueindex"),
    		})
    	}
    
    	for idx, relField := range refForeignFields {
    		joinFieldName := cases.Title(language.Und, cases.NoLower).String(relation.FieldSchema.Name) + relField.Name
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 03:46:59 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/typestring.go

    			w.error("unknown channel direction")
    		}
    		w.string(s)
    		if parens {
    			w.byte('(')
    		}
    		w.typ(t.elem)
    		if parens {
    			w.byte(')')
    		}
    
    	case *Named:
    		// If hashing, write a unique prefix for t to represent its identity, since
    		// named type identity is pointer identity.
    		if w.ctxt != nil {
    			w.string(strconv.Itoa(w.ctxt.getID(t)))
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/decl.go

    			assert(m.name != "_")
    			assert(mset.insert(m) == nil)
    		}
    	}
    
    	// add valid methods
    	for _, m := range methods {
    		// spec: "For a base type, the non-blank names of methods bound
    		// to it must be unique."
    		assert(m.name != "_")
    		if alt := mset.insert(m); alt != nil {
    			if alt.Pos().IsKnown() {
    				check.errorf(m.pos, DuplicateMethod, "method %s.%s already declared at %v", obj.Name(), m.name, alt.Pos())
    			} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  10. migrator/migrator.go

    	unique, ok := columnType.Unique()
    	if !ok || field.PrimaryKey {
    		return nil // skip primary key
    	}
    	// By default, ColumnType's Unique is not affected by UniqueIndex, so we don't care about UniqueIndex.
    	return m.RunWithValue(value, func(stmt *gorm.Statement) error {
    		// We're currently only receiving boolean values on `Unique` tag,
    		// so the UniqueConstraint name is fixed
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Apr 26 07:15:49 UTC 2024
    - 29K bytes
    - Viewed (0)
Back to top