- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 203 for idx (0.01 sec)
-
callbacks/preload.go
for i := 0; i < joinResults.Len(); i++ { joinIndexValue := joinResults.Index(i) for idx, field := range joinForeignFields { fieldValues[idx], _ = field.ValueOf(tx.Statement.Context, joinIndexValue) } for idx, field := range joinRelForeignFields { joinFieldValues[idx], _ = field.ValueOf(tx.Statement.Context, joinIndexValue) }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Jun 12 10:52:33 UTC 2024 - 11.6K bytes - Viewed (0) -
ci/official/containers/linux_arm64/builder.devtoolset/stringop_trunc.patch
- | ((const unsigned char *) (const char *) (src))[idx]) -# else -# define __STRING2_SMALL_GET16(src, idx) \ - (((const unsigned char *) (const char *) (src))[idx] << 8 \ - | ((const unsigned char *) (const char *) (src))[idx + 1]) -# define __STRING2_SMALL_GET32(src, idx) \ - (((((const unsigned char *) (const char *) (src))[idx] << 8 \
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Mon Sep 18 14:52:45 UTC 2023 - 42.9K bytes - Viewed (0) -
clause/select_test.go
}, }, }, }, }, }, clause.From{}}, "SELECT `age` = ? as name FROM `users`", []interface{}{18}, }, } for idx, result := range results { t.Run(fmt.Sprintf("case #%v", idx), func(t *testing.T) { checkBuildClauses(t, result.Clauses, result.Result, result.Vars) }) }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Sat Feb 18 01:06:43 UTC 2023 - 1.7K bytes - Viewed (0) -
cmd/bucket-replication-metrics.go
s.buf[s.idx] = next if s.filledBuf { s.prevSMA += (next - prev) / float64(s.window) s.CAvg += (next - s.CAvg) / float64(s.window) } else { s.CAvg = s.simpleMovingAvg() s.prevSMA = s.CAvg } if s.idx == s.window-1 { s.filledBuf = true } s.idx = (s.idx + 1) % s.window } func (s *SMA) simpleMovingAvg() float64 { if s.filledBuf { return s.prevSMA } var tot float64
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 15 12:04:40 UTC 2024 - 14.2K bytes - Viewed (0) -
internal/s3select/csv/record.go
index, found := r.nameIndexMap[name] if !found { // Check if index. if strings.HasPrefix(name, "_") { idx, err := strconv.Atoi(strings.TrimPrefix(name, "_")) if err != nil { return nil, fmt.Errorf("column %v not found", name) } // The position count starts at 1. idx-- if idx >= len(r.csvRecord) || idx < 0 { // If field index > number of columns, return null return sql.FromNull(), nil }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 23 19:35:41 UTC 2024 - 4.1K bytes - Viewed (0) -
clause/update_test.go
}, { []clause.Interface{clause.Update{Table: clause.Table{Name: "products"}, Modifier: "LOW_PRIORITY"}}, "UPDATE LOW_PRIORITY `products`", nil, }, } for idx, result := range results { t.Run(fmt.Sprintf("case #%v", idx), func(t *testing.T) { checkBuildClauses(t, result.Clauses, result.Result, result.Vars) }) }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Tue Jun 02 01:18:01 UTC 2020 - 722 bytes - Viewed (0) -
internal/s3select/sql/jsonpath.go
default: return nil, false, errKeyLookup } case p[0].Index != nil: idx := *p[0].Index arr, ok := v.([]interface{}) if !ok { return nil, false, errIndexLookup } if idx >= len(arr) { return nil, false, nil } return jsonpathEval(p[1:], arr[idx]) case p[0].ObjectWildcard: switch kvs := v.(type) { case jstream.KVS: if len(p[1:]) > 0 {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 23 19:35:41 UTC 2024 - 3.5K bytes - Viewed (0) -
clause/on_conflict.go
builder.WriteString("ON CONSTRAINT ") builder.WriteString(onConflict.OnConstraint) builder.WriteByte(' ') } else { if len(onConflict.Columns) > 0 { builder.WriteByte('(') for idx, column := range onConflict.Columns { if idx > 0 { builder.WriteByte(',') } builder.WriteQuoted(column) } builder.WriteString(`) `) } if len(onConflict.TargetWhere.Exprs) > 0 {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Fri Oct 07 05:46:20 UTC 2022 - 1.3K bytes - Viewed (0) -
clause/expression_test.go
Result: "create table `users` (`id` int, `name` text)", }} for idx, result := range results { t.Run(fmt.Sprintf("case #%v", idx), func(t *testing.T) { user, _ := schema.Parse(&tests.User{}, &sync.Map{}, db.NamingStrategy) stmt := &gorm.Statement{DB: db, Table: user.Table, Schema: user, Clauses: map[string]clause.Clause{}}
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Aug 10 05:34:33 UTC 2023 - 8.4K bytes - Viewed (0) -
docs/debugging/inspect/export.go
b, e := header.MarshalJSON() if e != nil { return e } var buf bytes.Buffer if _, e := msgp.UnmarshalAsJSON(&buf, meta); e != nil { return e } versions[idx] = version{ Idx: idx, Header: b, Metadata: buf.Bytes(), } return nil }) if e != nil { return nil, e } enc := json.NewEncoder(buf) if e := enc.Encode(struct {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Nov 08 15:58:02 UTC 2022 - 9.1K bytes - Viewed (0)