Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 981 for RECORD (0.09 sec)

  1. tests/transaction_test.go

    		t.Fatalf("Should find saved record")
    	}
    
    	if err := DB.First(&User{}, "name = ?", user1.Name).Error; err == nil {
    		t.Fatalf("Should not find rollbacked record")
    	}
    
    	if err := DB.First(&User{}, "name = ?", user2.Name).Error; err != nil {
    		t.Fatalf("Should find saved record")
    	}
    }
    
    func TestNestedTransactionWithBlock(t *testing.T) {
    	var (
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed May 08 04:07:58 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  2. tests/soft_delete_test.go

    		t.Errorf("Can't find a soft deleted record")
    	}
    
    	count = 0
    	if DB.Model(&User{}).Where("name = ?", user.Name).Count(&count).Error != nil || count != 0 {
    		t.Errorf("Count soft deleted record, expects: %v, got: %v", 0, count)
    	}
    
    	age = 0
    	if DB.Model(&User{}).Select("age").Where("name = ?", user.Name).Scan(&age).Error != nil || age != 0 {
    		t.Errorf("Age soft deleted record, expects: %v, got: %v", 0, age)
    	}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Feb 01 06:40:55 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  3. src/runtime/histogram_test.go

    			for k := 0; k < (i+1-TimeHistMinBucketBits)*TimeHistNumSubBuckets+j; k++ {
    				// Record a number of times equal to the bucket index.
    				h.Record(base + v)
    			}
    		}
    	}
    	// Hit the underflow and overflow buckets.
    	h.Record(int64(-1))
    	h.Record(math.MaxInt64)
    	h.Record(math.MaxInt64)
    
    	// Check to make sure there's exactly one count in each
    	// bucket.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 16 16:32:01 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  4. src/encoding/csv/reader.go

    		r:     bufio.NewReader(r),
    	}
    }
    
    // Read reads one record (a slice of fields) from r.
    // If the record has an unexpected number of fields,
    // Read returns the record along with the error [ErrFieldCount].
    // If the record contains a field that cannot be parsed,
    // Read returns a partial record along with the parse error.
    // The partial record contains all fields read before the error.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:32:28 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  5. src/crypto/tls/conn_test.go

    				t.Errorf("io.ReadFull = %d, %v", n, err)
    				return
    			}
    
    			length := int(recordHeader[3])<<8 | int(recordHeader[4])
    			if len(record) < length {
    				record = make([]byte, length)
    			}
    
    			n, err = io.ReadFull(clientConn, record[:length])
    			if err != nil || n != length {
    				t.Errorf("io.ReadFull = %d, %v", n, err)
    				return
    			}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 21:35:01 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  6. src/log/slog/internal/benchmarks/handlers.go

    // background goroutine for processing.
    // Because sending to a channel can be expensive due to locking,
    // we simulate a lock-free queue by adding the Record to a ring buffer.
    // Omitting the locking makes this little more than a copy of the Record,
    // but that is a worthwhile thing to measure because Records are on the large
    // side. Since nothing actually reads from the ring buffer, it can handle an
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 12 20:33:37 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  7. src/encoding/csv/example_test.go

    		{"Rob", "Pike", "rob"},
    		{"Ken", "Thompson", "ken"},
    		{"Robert", "Griesemer", "gri"},
    	}
    
    	w := csv.NewWriter(os.Stdout)
    
    	for _, record := range records {
    		if err := w.Write(record); err != nil {
    			log.Fatalln("error writing record to csv:", err)
    		}
    	}
    
    	// Write any buffered data to the underlying writer (standard output).
    	w.Flush()
    
    	if err := w.Error(); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 22 11:11:37 UTC 2015
    - 2.6K bytes
    - Viewed (0)
  8. internal/s3select/sql/statement.go

    		}
    		return r, nil
    	}
    }
    
    // EvalFrom evaluates the From clause on the input record. It only
    // applies to JSON input data format (currently).
    func (e *SelectStatement) EvalFrom(format string, input Record) ([]*Record, error) {
    	if !e.selectAST.From.HasKeypath() {
    		return []*Record{&input}, nil
    	}
    	_, rawVal := input.Raw()
    
    	if format != "json" {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jan 09 17:19:11 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  9. pkg/monitoring/monitoring_test.go

    	assertRecordedMetrics()
    
    	// Once we write it shows up
    	testEmptyGauge.Record(0)
    	testEmptySum.Record(0)
    	testEmptyDistribution.Record(0)
    	assertRecordedMetrics(relevantMetrics.UnsortedList()...)
    }
    
    func TestGauge(t *testing.T) {
    	mt := monitortest.New(t)
    
    	testGauge.Record(42)
    	testGauge.Record(77)
    
    	mt.Assert(testGauge.Name(), nil, monitortest.Exactly(77))
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Sep 13 16:04:48 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  10. pkg/monitoring/distribution.go

    	r.baseMetric = baseMetric{
    		name: o.name,
    		rest: r,
    	}
    	return r
    }
    
    func (f *distribution) Record(value float64) {
    	f.runRecordHook(value)
    	if f.precomputedRecordOption != nil {
    		f.d.Record(context.Background(), value, f.precomputedRecordOption...)
    	} else {
    		f.d.Record(context.Background(), value)
    	}
    }
    
    func (f *distribution) With(labelValues ...LabelValue) Metric {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 1.8K bytes
    - Viewed (0)
Back to top