cockroach: github.com/cockroachdb/cockroach/pkg/ccl/workloadccl/format Index | Files

package format

import "github.com/cockroachdb/cockroach/pkg/ccl/workloadccl/format"

Index

Package Files

sstable.go

func ToSSTable Uses

func ToSSTable(t workload.Table, tableID sqlbase.ID, ts time.Time) ([]byte, error)

ToSSTable constructs a single sstable with the kvs necessary to represent a workload.Table as a CockroachDB SQL table. This sstable is suitable for handing to AddSSTable or RocksDB's IngestExternalFile.

TODO(dan): Finally remove sampledataccl in favor of this.

func ToTableDescriptor Uses

func ToTableDescriptor(
    t workload.Table, tableID sqlbase.ID, ts time.Time,
) (*sqlbase.TableDescriptor, error)

ToTableDescriptor returns the corresponding TableDescriptor for a workload Table.

Package format imports 19 packages (graph). Updated 2019-09-16. Refresh now. Tools for package owners.