Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for NewRecord (0.04 sec)

  1. internal/s3select/csv/record.go

    	return sql.SelectFmtCSV, r
    }
    
    // Replace - is not supported for CSV
    func (r *Record) Replace(_ any) error {
    	return errors.New("Replace is not supported for CSV")
    }
    
    // NewRecord - creates new CSV record.
    func NewRecord() *Record {
    	return &Record{}
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  2. internal/s3select/json/record.go

    	v, ok := k.(jstream.KVS)
    	if !ok {
    		return fmt.Errorf("cannot replace internal data in json record with type %T", k)
    	}
    	r.KVS = v
    	return nil
    }
    
    // NewRecord - creates new empty JSON record.
    func NewRecord(f sql.SelectObjectFormat) *Record {
    	return &Record{
    		KVS:          jstream.KVS{},
    		SelectFormat: f,
    	}
    }
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  3. internal/s3select/simdj/record.go

    	v, ok := k.(simdjson.Object)
    	if !ok {
    		return fmt.Errorf("cannot replace internal data in simd json record with type %T", k)
    	}
    	r.object = v
    	return nil
    }
    
    // NewRecord - creates new empty JSON record.
    func NewRecord(f sql.SelectObjectFormat, obj simdjson.Object) *Record {
    	return &Record{
    		object: obj,
    	}
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  4. logger/slog.go

    func (l *slogLogger) log(ctx context.Context, level slog.Level, msg string, args ...any) {
    	if ctx == nil {
    		ctx = context.Background()
    	}
    
    	if !l.Logger.Enabled(ctx, level) {
    		return
    	}
    
    	r := slog.NewRecord(time.Now(), level, msg, utils.CallerFrame().PC)
    	r.Add(args...)
    	_ = l.Logger.Handler().Handle(ctx, r)
    }
    
    // ParamsFilter filter params
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Thu Oct 30 10:56:26 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  5. internal/s3select/select.go

    	*s3Select = S3Select(parsedS3Select)
    	return nil
    }
    
    func (s3Select *S3Select) outputRecord() sql.Record {
    	switch s3Select.Output.format {
    	case csvFormat:
    		return csv.NewRecord()
    	case jsonFormat:
    		return json.NewRecord(sql.SelectFmtJSON)
    	}
    
    	panic(fmt.Errorf("unknown output format '%v'", s3Select.Output.format))
    }
    
    func (s3Select *S3Select) getProgress() (bytesScanned, bytesProcessed int64) {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Feb 18 16:25:55 UTC 2025
    - 21.2K bytes
    - Viewed (0)
Back to top