Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 266 for Record (0.32 sec)

  1. internal/s3select/json/record.go

    }
    
    // Reset the record.
    func (r *Record) Reset() {
    	if len(r.KVS) > 0 {
    		r.KVS = r.KVS[:0]
    	}
    }
    
    // Clone the record and if possible use the destination provided.
    func (r *Record) Clone(dst sql.Record) sql.Record {
    	other, ok := dst.(*Record)
    	if !ok {
    		other = &Record{}
    	}
    	if len(other.KVS) > 0 {
    		other.KVS = other.KVS[:0]
    	}
    	other.KVS = append(other.KVS, r.KVS...)
    	return other
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Feb 25 20:31:19 GMT 2022
    - 5.2K bytes
    - Viewed (0)
  2. internal/s3select/csv/record.go

    		r.csvRecord = r.csvRecord[:0]
    	}
    	for k := range r.nameIndexMap {
    		delete(r.nameIndexMap, k)
    	}
    }
    
    // Clone the record.
    func (r *Record) Clone(dst sql.Record) sql.Record {
    	other, ok := dst.(*Record)
    	if !ok {
    		other = &Record{}
    	}
    	if len(other.columnNames) > 0 {
    		other.columnNames = other.columnNames[:0]
    	}
    	if len(other.csvRecord) > 0 {
    		other.csvRecord = other.csvRecord[:0]
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Sep 13 00:00:59 GMT 2022
    - 4.1K bytes
    - Viewed (0)
  3. internal/s3select/sql/record.go

    	QuoteEscape    rune
    	AlwaysQuote    bool
    }
    
    // Record - is a type containing columns and their values.
    type Record interface {
    	Get(name string) (*Value, error)
    
    	// Set a value.
    	// Can return a different record type.
    	Set(name string, value *Value) (Record, error)
    	WriteCSV(writer io.Writer, opts WriteCSVOpts) error
    	WriteJSON(writer io.Writer) error
    
    	// Clone the record and if possible use the destination provided.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 3.4K bytes
    - Viewed (0)
  4. internal/s3select/simdj/record.go

    }
    
    // Reset the record.
    func (r *Record) Reset() {
    	r.object = simdjson.Object{}
    }
    
    // Clone the record and if possible use the destination provided.
    func (r *Record) Clone(dst sql.Record) sql.Record {
    	other, ok := dst.(*Record)
    	if !ok {
    		other = &Record{}
    	}
    	other.object = r.object
    	return other
    }
    
    // CloneTo clones the record to a json Record.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 5.4K bytes
    - Viewed (0)
  5. 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)
    	}
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Wed Feb 01 06:40:55 GMT 2023
    - 5.7K bytes
    - Viewed (0)
  6. internal/s3select/json/preader_test.go

    		t.Run(file.Name(), func(t *testing.T) {
    			f, err := os.Open(filepath.Join("testdata", file.Name()))
    			if err != nil {
    				t.Fatal(err)
    			}
    			r := NewPReader(f, &ReaderArgs{})
    			var record sql.Record
    			for {
    				record, err = r.Read(record)
    				if err != nil {
    					break
    				}
    			}
    			r.Close()
    			if err != io.EOF {
    				t.Fatalf("Reading failed with %s, %s", err, file.Name())
    			}
    		})
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 2.5K bytes
    - Viewed (0)
  7. internal/s3select/sql/evaluate.go

    // processed, and the `getAggregate` function is called.
    
    func (e *AliasedExpression) evalNode(r Record, tableAlias string) (*Value, error) {
    	return e.Expression.evalNode(r, tableAlias)
    }
    
    func (e *Expression) evalNode(r Record, tableAlias string) (*Value, error) {
    	if len(e.And) == 1 {
    		// In this case, result is not required to be boolean
    		// type.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 12K 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" {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jan 09 17:19:11 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  9. internal/config/dns/etcd_dns.go

    		records, err := c.list(key+etcdPathSeparator, true)
    		if err != nil {
    			return srvRecords, err
    		}
    		for _, record := range records {
    			if record.Key == "" {
    				continue
    			}
    			srvRecords[record.Key] = append(srvRecords[record.Key], record)
    		}
    	}
    	return srvRecords, nil
    }
    
    // Get - Retrieves DNS records for a bucket.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 8.3K bytes
    - Viewed (0)
  10. 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 (
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Sat Jun 10 13:05:19 GMT 2023
    - 10.9K bytes
    - Viewed (0)
Back to top