cockroach: github.com/cockroachdb/cockroach/pkg/ccl/changefeedccl/schemafeed/schematestutils Index | Files

package schematestutils

import "github.com/cockroachdb/cockroach/pkg/ccl/changefeedccl/schemafeed/schematestutils"

Package schematestutils is a utility package for constructing schema objects in the context of cdc.

Index

Package Files

schema_test_utils.go

func AddColumnDropBackfillMutation Uses

func AddColumnDropBackfillMutation(
    desc *sqlbase.ImmutableTableDescriptor,
) *sqlbase.ImmutableTableDescriptor

AddColumnDropBackfillMutation adds a mutation to desc to drop a column. Yes, this does modify an ImmutableTableDescriptor.

func AddNewColumnBackfillMutation Uses

func AddNewColumnBackfillMutation(
    desc *sqlbase.ImmutableTableDescriptor,
) *sqlbase.ImmutableTableDescriptor

AddNewColumnBackfillMutation adds a mutation to desc to add a column. Yes, this does modify an ImmutableTableDescriptor.

func MakeColumnDesc Uses

func MakeColumnDesc(id descpb.ColumnID) *descpb.ColumnDescriptor

MakeColumnDesc makes a generic column descriptor with the provided id.

func MakeTableDesc Uses

func MakeTableDesc(
    tableID descpb.ID, version descpb.DescriptorVersion, modTime hlc.Timestamp, cols int,
) *sqlbase.ImmutableTableDescriptor

MakeTableDesc makes a generic table descriptor with the provided properties.

Package schematestutils imports 6 packages (graph). Updated 2020-08-12. Refresh now. Tools for package owners.