- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 392 for UNIQUE (0.4 seconds)
-
schema/index_test.go
} func TestParseIndexWithUniqueIndexAndUnique(t *testing.T) { type IndexTest struct { FieldA string `gorm:"unique;index"` // unique and index FieldB string `gorm:"unique"` // unique FieldC string `gorm:"index:,unique"` // uniqueIndex FieldD string `gorm:"uniqueIndex;index"` // uniqueIndex and index FieldE1 string `gorm:"uniqueIndex:uniq_field_e1_e2"` // mul uniqueIndex
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Fri Dec 06 02:27:44 GMT 2024 - 7.9K bytes - Click Count (0) -
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) } } })Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Mon Jul 21 02:46:58 GMT 2025 - 12.7K bytes - Click Count (0) -
schema/constraint_test.go
Name: "uni_user_uniques_name1", Field: &schema.Field{Name: "Name1", Unique: true}, }, } for k, result := range results { v, ok := constraints[k] if !ok { t.Errorf("Failed to found unique constraint %v from parsed constraints %+v", k, constraints) } tests.AssertObjEqual(t, result, v, "Name") tests.AssertObjEqual(t, result.Field, v.Field, "Name", "Unique", "UniqueIndex") }
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sun Feb 04 07:49:19 GMT 2024 - 2.2K bytes - Click Count (0) -
migrator/index.go
// PrimaryKey returns the index is primary key or not. func (idx Index) PrimaryKey() (isPrimaryKey bool, ok bool) { return idx.PrimaryKeyValue.Bool, idx.PrimaryKeyValue.Valid } // Unique returns whether the index is unique or not. func (idx Index) Unique() (unique bool, ok bool) { return idx.UniqueValue.Bool, idx.UniqueValue.Valid } // Option return the optional attribute of the index func (idx Index) Option() string {
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Tue Apr 11 02:32:46 GMT 2023 - 1023 bytes - Click Count (0) -
schema/index.go
return } subName = composite } name = field.Schema.namer.IndexName( field.Schema.Table, subName) } if (k == "UNIQUEINDEX") || settings["UNIQUE"] != "" { settings["CLASS"] = "UNIQUE" } priority, err := strconv.Atoi(settings["PRIORITY"]) if err != nil { priority = 10 } indexes = append(indexes, Index{ Name: name,
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Wed May 21 02:35:56 GMT 2025 - 3.8K bytes - Click Count (0) -
migrator.go
Nullable() (nullable bool, ok bool) Unique() (unique bool, ok bool) ScanType() reflect.Type Comment() (value string, ok bool) DefaultValue() (value string, ok bool) } type Index interface { Table() string Name() string Columns() []string PrimaryKey() (isPrimaryKey bool, ok bool) Unique() (unique bool, ok bool) Option() string } // TableType table type interface
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Mon Oct 30 09:15:49 GMT 2023 - 3.1K bytes - Click Count (0) -
docs/en/docs/advanced/generate-clients.md
In this case, you will have to ensure that each operation ID is **unique** in some other way. For example, you could make sure that each *path operation* has a tag, and then generate the operation ID based on the **tag** and the *path operation* **name** (the function name). ### Custom Generate Unique ID Function { #custom-generate-unique-id-function }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 9.7K bytes - Click Count (1) -
docs/security/README.md
To summarize for any encrypted object there exists (at least) three different keys: - [OEK](#oek): A secret and unique key used to encrypted the object, stored in an encrypted form as part of the object metadata and only loaded to RAM in plaintext during en/decrypting the object.
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Feb 26 09:25:50 GMT 2025 - 13.8K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/AbstractSetMultimap.java
* * <p>Because a {@code SetMultimap} has unique values for a given key, this method returns a * {@link Set}, instead of the {@link Collection} specified in the {@link Multimap} interface. */ @Override public Set<V> get(@ParametricNullness K key) { return (Set<V>) super.get(key); } /** * {@inheritDoc} * * <p>Because a {@code SetMultimap} has unique values for a given key, this method returns aCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 20 13:05:10 GMT 2025 - 4.9K bytes - Click Count (0) -
guava/src/com/google/common/collect/AbstractSetMultimap.java
* * <p>Because a {@code SetMultimap} has unique values for a given key, this method returns a * {@link Set}, instead of the {@link Collection} specified in the {@link Multimap} interface. */ @Override public Set<V> get(@ParametricNullness K key) { return (Set<V>) super.get(key); } /** * {@inheritDoc} * * <p>Because a {@code SetMultimap} has unique values for a given key, this method returns aCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 20 13:05:10 GMT 2025 - 4.9K bytes - Click Count (0)