Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 323 for unique (0.04 sec)

  1. schema/constraint.go

    	return "CONSTRAINT ? UNIQUE (?)", []interface{}{clause.Column{Name: uni.Name}, clause.Column{Name: uni.Field.DBName}}
    }
    
    // ParseUniqueConstraints parse schema unique constraints
    func (schema *Schema) ParseUniqueConstraints() map[string]UniqueConstraint {
    	uniques := make(map[string]UniqueConstraint)
    	for _, field := range schema.Fields {
    		if field.Unique {
    Registered: 2025-05-25 09:35
    - Last Modified: 2024-03-18 07:33
    - 1.9K bytes
    - Viewed (0)
  2. 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
    Registered: 2025-05-25 09:35
    - Last Modified: 2024-12-06 02:27
    - 7.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/dcerpc/msrpc/srvsvc.idl

    	} ShareCtr;
    
    	[op(0x0f)]
    	int ShareEnumAll([in,string,unique] wchar_t *servername,
    			[in,out] int *level,
    			[in,out,switch_is(*level)] ShareCtr *info,
    			[in] unsigned long prefmaxlen,
    			[out] unsigned long *totalentries,
    			[in,out] unsigned long *resume_handle);
    
    	[op(0x10)]
    	int ShareGetInfo([in,string,unique] wchar_t *servername,
    			[in,string] wchar_t *sharename,
    			[in] int level,
    Registered: 2025-05-25 00:10
    - Last Modified: 2019-03-22 20:39
    - 2.2K bytes
    - Viewed (0)
  4. 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")
    	}
    Registered: 2025-05-25 09:35
    - Last Modified: 2024-02-04 07:49
    - 2.2K bytes
    - Viewed (0)
  5. 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
    Registered: 2025-05-25 09:35
    - Last Modified: 2023-10-30 09:15
    - 3.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/dcerpc/msrpc/srvsvc.idl

    	} ShareCtr;
    
    	[op(0x0f)]
    	int ShareEnumAll([in,string,unique] wchar_t *servername,
    			[in,out] int *level,
    			[in,out,switch_is(*level)] ShareCtr *info,
    			[in] unsigned long prefmaxlen,
    			[out] unsigned long *totalentries,
    			[in,out] unsigned long *resume_handle);
    
    	[op(0x10)]
    	int ShareGetInfo([in,string,unique] wchar_t *servername,
    			[in,string] wchar_t *sharename,
    			[in] int level,
    Registered: 2025-05-25 00:10
    - Last Modified: 2018-07-01 13:12
    - 2.2K bytes
    - Viewed (0)
  7. tests/migrate_test.go

    		if field == nil {
    			t.Fatalf("%v: failed to find column %q", utils.FileWithLineNum(), fieldName)
    		}
    		if field.Unique != unique {
    			t.Fatalf("%v: %q column %q unique should be %v but got %v", utils.FileWithLineNum(), stmt.Schema.Table, fieldName, unique, field.Unique)
    		}
    		if field.UniqueIndex != uniqueIndex {
    Registered: 2025-05-25 09:35
    - Last Modified: 2024-11-14 09:40
    - 57.4K bytes
    - Viewed (0)
  8. 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: 2025-05-25 09:35
    - Last Modified: 2024-03-09 09:31
    - 10.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/dcerpc/msrpc/netdfs.idl

    	typedef struct {
    		uint32_t level,
    		[switch_is(level)] DfsEnumInfo e;
    	} DfsEnumStruct;
    
    	[op(0x15)]
    	int NetrDfsEnumEx([in,string,unique] wchar_t dfs_name,
    			[in] uint32_t level,
    			[in] uint32_t prefmaxlen,
    			[in,out,unique] DfsEnumStruct *info,
    			[in,out,unique] uint32_t *totalentries);
    Registered: 2025-05-25 00:10
    - Last Modified: 2018-07-01 13:12
    - 1.7K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/dcerpc/msrpc/lsarpc.idl

    			[in] uint16_t level,
    			[out,switch_is(level),unique] LsarPolicyInfo *info);
    
    	[op(0x0f)]
    	int LsarLookupSids([in] policy_handle *handle,
    			[in] LsarSidArray *sids,
    			[out,unique] LsarRefDomainList *domains,
    			[in,out] LsarTransNameArray *names,
    			[in] uint16_t level,
    			[in,out] uint32_t *count);
    
    	[op(0x2c)]
    	int LsarOpenPolicy2([in,string,unique] wchar_t *system_name,
    Registered: 2025-05-25 00:10
    - Last Modified: 2019-03-22 20:39
    - 3.1K bytes
    - Viewed (0)
Back to top