- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 220 for Value (0.12 sec)
-
tests/default_value_test.go
DB.Migrator().DropTable(&Harumph{}) if err := DB.AutoMigrate(&Harumph{}); err != nil { t.Fatalf("Failed to migrate with default value, got error: %v", err) } harumph := Harumph{Email: "******@****.***"} if err := DB.Create(&harumph).Error; err != nil { t.Fatalf("Failed to create data with default value, got error: %v", err)
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Mon Apr 08 03:29:55 GMT 2024 - 2.3K bytes - Viewed (0) -
migrator/migrator.go
// RunWithValue run migration with statement value func (m Migrator) RunWithValue(value interface{}, fc func(*gorm.Statement) error) error { stmt := &gorm.Statement{DB: m.DB} if m.DB.Statement != nil { stmt.Table = m.DB.Statement.Table stmt.TableExpr = m.DB.Statement.TableExpr } if table, ok := value.(string); ok { stmt.Table = table } else if err := stmt.ParseWithSpecialTableName(value, stmt.Table); err != nil { return err }
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Fri Apr 26 07:15:49 GMT 2024 - 29K bytes - Viewed (0) -
internal/cachevalue/cache.go
// but will fetch a new value in the background. NoWait bool } // Cache contains a synchronized value that is considered valid // for a specific amount of time. // An Update function must be set to provide an updated value when needed. type Cache[T any] struct { // updateFn must return an updated value. // If an error is returned the cached value is not set. // Only one caller will call this function at any time, others will be blocking.
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Mar 01 16:00:42 GMT 2024 - 4.2K bytes - Viewed (0) -
internal/config/api/api.go
Value: "5m", }, config.KV{ Key: apiDisableODirect, Value: "", HiddenIfEmpty: true, }, config.KV{ Key: apiODirect, Value: config.EnableOn, }, config.KV{ Key: apiGzipObjects, Value: config.EnableOff, }, config.KV{ Key: apiRootAccess, Value: config.EnableOn, }, config.KV{ Key: apiSyncEvents,
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Mar 28 01:08:07 GMT 2024 - 11.1K bytes - Viewed (1) -
internal/config/identity/ldap/config.go
var ( DefaultKVS = config.KVS{ config.KV{ Key: config.Enable, Value: "", }, config.KV{ Key: ServerAddr, Value: "", }, config.KV{ Key: SRVRecordName, Value: "", }, config.KV{ Key: UserDNSearchBaseDN, Value: "", }, config.KV{ Key: UserDNSearchFilter, Value: "", }, config.KV{ Key: GroupSearchFilter, Value: "",
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Apr 25 21:28:16 GMT 2024 - 7.9K bytes - Viewed (2) -
utils/utils.go
return true } } return false } func ToStringKey(values ...interface{}) string { results := make([]string, len(values)) for idx, value := range values { if valuer, ok := value.(driver.Valuer); ok { value, _ = valuer.Value() } switch v := value.(type) { case string: results[idx] = v case []byte: results[idx] = string(v) case uint: results[idx] = strconv.FormatUint(uint64(v), 10)
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Mon Apr 22 06:43:02 GMT 2024 - 3.8K bytes - Viewed (0) -
internal/config/heal/heal.go
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Apr 11 01:10:30 GMT 2024 - 4.9K bytes - Viewed (0) -
internal/config/storageclass/storage-class.go
var ( DefaultKVS = config.KVS{ config.KV{ Key: ClassStandard, Value: "", }, config.KV{ Key: ClassRRS, Value: "EC:1", }, config.KV{ Key: Optimize, Value: "availability", }, config.KV{ Key: InlineBlock, Value: "", HiddenIfEmpty: true, }, } ) // StorageClass - holds storage class information
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Apr 04 12:04:40 GMT 2024 - 11.8K bytes - Viewed (0) -
cmd/batch-expire.go
// information func (ef *BatchJobExpireFilter) UnmarshalYAML(value *yaml.Node) error { type expFilter BatchJobExpireFilter var tmp expFilter err := value.Decode(&tmp) if err != nil { return err } *ef = BatchJobExpireFilter(tmp) ef.line, ef.col = value.Line, value.Column return err } // Matches returns true if obj matches the filter conditions specified in ef.
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Apr 04 12:04:40 GMT 2024 - 21K bytes - Viewed (1) -
cmd/signature-v4-utils_test.go
} // Since the list of signed headers value contained `expect`, the default value of `100-continue` will be added to extracted signed headers. if extractedExpect != expectedExpect { t.Errorf("expect header incorrect value: expected `%s`, got `%s`", expectedExpect, extractedExpect) }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Apr 05 21:26:41 GMT 2024 - 14.3K bytes - Viewed (0)