cockroach: Index | Files

package format

import ""


Package Files


func ToSSTable Uses

func ToSSTable(t workload.Table, tableID descpb.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 descpb.ID, ts time.Time,
) (*sqlbase.ImmutableTableDescriptor, error)

ToTableDescriptor returns the corresponding TableDescriptor for a workload Table.

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