migration

package
v1.0.1-0...-386defc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MigrationData_Source_name = map[int32]string{
		0: "SOURCE_UNSPECIFIED",
		1: "MYSQL",
		2: "POSTGRESQL",
		3: "DYNAMODB",
		4: "SQL_SERVER",
		5: "ORACLE",
		6: "CSV",
	}
	MigrationData_Source_value = map[string]int32{
		"SOURCE_UNSPECIFIED": 0,
		"MYSQL":              1,
		"POSTGRESQL":         2,
		"DYNAMODB":           3,
		"SQL_SERVER":         4,
		"ORACLE":             5,
		"CSV":                6,
	}
)

Enum value maps for MigrationData_Source.

View Source
var (
	MigrationData_SourceConnectionMechanism_name = map[int32]string{
		0: "SOURCE_CONNECTION_MECHANISM_UNSPECIFIED",
		1: "DIRECT_CONNECTION",
		2: "DB_DUMP",
		3: "FILE",
	}
	MigrationData_SourceConnectionMechanism_value = map[string]int32{
		"SOURCE_CONNECTION_MECHANISM_UNSPECIFIED": 0,
		"DIRECT_CONNECTION":                       1,
		"DB_DUMP":                                 2,
		"FILE":                                    3,
	}
)

Enum value maps for MigrationData_SourceConnectionMechanism.

View Source
var (
	MigrationData_MigrationType_name = map[int32]string{
		0: "MIGRATION_TYPE_UNSPECIFIED",
		1: "SCHEMA_ONLY",
		2: "DATA_ONLY",
		3: "SCHEMA_AND_DATA",
	}
	MigrationData_MigrationType_value = map[string]int32{
		"MIGRATION_TYPE_UNSPECIFIED": 0,
		"SCHEMA_ONLY":                1,
		"DATA_ONLY":                  2,
		"SCHEMA_AND_DATA":            3,
	}
)

Enum value maps for MigrationData_MigrationType.

View Source
var (
	MigrationData_TargetDialect_name = map[int32]string{
		0: "TARGET_DIALECT_UNSPECIFIED",
		1: "GOOGLE_STANDARD_SQL",
		2: "POSTGRESQL_STANDARD_SQL",
	}
	MigrationData_TargetDialect_value = map[string]int32{
		"TARGET_DIALECT_UNSPECIFIED": 0,
		"GOOGLE_STANDARD_SQL":        1,
		"POSTGRESQL_STANDARD_SQL":    2,
	}
)

Enum value maps for MigrationData_TargetDialect.

View Source
var File_migration_data_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type MigrationData

type MigrationData struct {

	// A system generated id with prefix ‘SMT’ to identify that the request was
	// made via Spanner migration tool.
	MigrationRequestId *string `protobuf:"bytes,1,opt,name=migration_request_id,json=migrationRequestId,proto3,oneof" json:"migration_request_id,omitempty"`
	// Source for the migration.
	Source *MigrationData_Source `protobuf:"varint,2,opt,name=source,proto3,enum=MigrationData_Source,oneof" json:"source,omitempty"`
	// Mechanism used to fetch source data.
	SourceConnectionMechanism *MigrationData_SourceConnectionMechanism `` /* 190-byte string literal not displayed */
	// Type of migration.
	MigrationType *MigrationData_MigrationType `` /* 140-byte string literal not displayed */
	// Type of target dialect.
	TargetDialect  *MigrationData_TargetDialect  `` /* 140-byte string literal not displayed */
	SchemaPatterns *MigrationData_SchemaPatterns `protobuf:"bytes,6,opt,name=schema_patterns,json=schemaPatterns,proto3,oneof" json:"schema_patterns,omitempty"`
	// contains filtered or unexported fields
}

func (*MigrationData) Descriptor deprecated

func (*MigrationData) Descriptor() ([]byte, []int)

Deprecated: Use MigrationData.ProtoReflect.Descriptor instead.

func (*MigrationData) GetMigrationRequestId

func (x *MigrationData) GetMigrationRequestId() string

func (*MigrationData) GetMigrationType

func (x *MigrationData) GetMigrationType() MigrationData_MigrationType

func (*MigrationData) GetSchemaPatterns

func (x *MigrationData) GetSchemaPatterns() *MigrationData_SchemaPatterns

func (*MigrationData) GetSource

func (x *MigrationData) GetSource() MigrationData_Source

func (*MigrationData) GetSourceConnectionMechanism

func (x *MigrationData) GetSourceConnectionMechanism() MigrationData_SourceConnectionMechanism

func (*MigrationData) GetTargetDialect

func (x *MigrationData) GetTargetDialect() MigrationData_TargetDialect

func (*MigrationData) ProtoMessage

func (*MigrationData) ProtoMessage()

func (*MigrationData) ProtoReflect

func (x *MigrationData) ProtoReflect() protoreflect.Message

func (*MigrationData) Reset

func (x *MigrationData) Reset()

func (*MigrationData) String

func (x *MigrationData) String() string

type MigrationData_MigrationType

type MigrationData_MigrationType int32
const (
	MigrationData_MIGRATION_TYPE_UNSPECIFIED MigrationData_MigrationType = 0
	MigrationData_SCHEMA_ONLY                MigrationData_MigrationType = 1
	MigrationData_DATA_ONLY                  MigrationData_MigrationType = 2
	MigrationData_SCHEMA_AND_DATA            MigrationData_MigrationType = 3
)

func (MigrationData_MigrationType) Descriptor

func (MigrationData_MigrationType) Enum

func (MigrationData_MigrationType) EnumDescriptor deprecated

func (MigrationData_MigrationType) EnumDescriptor() ([]byte, []int)

Deprecated: Use MigrationData_MigrationType.Descriptor instead.

func (MigrationData_MigrationType) Number

func (MigrationData_MigrationType) String

func (MigrationData_MigrationType) Type

type MigrationData_SchemaPatterns

type MigrationData_SchemaPatterns struct {

	// Number of tables in the database being migrated.
	NumTables          *int32 `protobuf:"varint,1,opt,name=num_tables,json=numTables,proto3,oneof" json:"num_tables,omitempty"`
	MaxInterleaveDepth *int32 `protobuf:"varint,2,opt,name=max_interleave_depth,json=maxInterleaveDepth,proto3,oneof" json:"max_interleave_depth,omitempty"`
	// Number of interleaves in the database being migrated.
	NumInterleaves *int32 `protobuf:"varint,3,opt,name=num_interleaves,json=numInterleaves,proto3,oneof" json:"num_interleaves,omitempty"`
	// Number of indexes in the database being migrated.
	NumIndexes *int32 `protobuf:"varint,4,opt,name=num_indexes,json=numIndexes,proto3,oneof" json:"num_indexes,omitempty"`
	// number of tables with missing primary key in the database being migrated
	NumMissingPrimaryKey *int32 `` /* 132-byte string literal not displayed */
	// Number of foreign key in the database being migrated.
	NumForeignKey *int32 `protobuf:"varint,6,opt,name=num_foreign_key,json=numForeignKey,proto3,oneof" json:"num_foreign_key,omitempty"`
	// Number of columns in the database.
	NumColumns *int32 `protobuf:"varint,7,opt,name=num_columns,json=numColumns,proto3,oneof" json:"num_columns,omitempty"`
	// Number of warnings occurred for the columns that didn’t map cleanly.
	NumWarnings *int32 `protobuf:"varint,8,opt,name=num_warnings,json=numWarnings,proto3,oneof" json:"num_warnings,omitempty"`
	// contains filtered or unexported fields
}

func (*MigrationData_SchemaPatterns) Descriptor deprecated

func (*MigrationData_SchemaPatterns) Descriptor() ([]byte, []int)

Deprecated: Use MigrationData_SchemaPatterns.ProtoReflect.Descriptor instead.

func (*MigrationData_SchemaPatterns) GetMaxInterleaveDepth

func (x *MigrationData_SchemaPatterns) GetMaxInterleaveDepth() int32

func (*MigrationData_SchemaPatterns) GetNumColumns

func (x *MigrationData_SchemaPatterns) GetNumColumns() int32

func (*MigrationData_SchemaPatterns) GetNumForeignKey

func (x *MigrationData_SchemaPatterns) GetNumForeignKey() int32

func (*MigrationData_SchemaPatterns) GetNumIndexes

func (x *MigrationData_SchemaPatterns) GetNumIndexes() int32

func (*MigrationData_SchemaPatterns) GetNumInterleaves

func (x *MigrationData_SchemaPatterns) GetNumInterleaves() int32

func (*MigrationData_SchemaPatterns) GetNumMissingPrimaryKey

func (x *MigrationData_SchemaPatterns) GetNumMissingPrimaryKey() int32

func (*MigrationData_SchemaPatterns) GetNumTables

func (x *MigrationData_SchemaPatterns) GetNumTables() int32

func (*MigrationData_SchemaPatterns) GetNumWarnings

func (x *MigrationData_SchemaPatterns) GetNumWarnings() int32

func (*MigrationData_SchemaPatterns) ProtoMessage

func (*MigrationData_SchemaPatterns) ProtoMessage()

func (*MigrationData_SchemaPatterns) ProtoReflect

func (*MigrationData_SchemaPatterns) Reset

func (x *MigrationData_SchemaPatterns) Reset()

func (*MigrationData_SchemaPatterns) String

type MigrationData_Source

type MigrationData_Source int32
const (
	MigrationData_SOURCE_UNSPECIFIED MigrationData_Source = 0
	MigrationData_MYSQL              MigrationData_Source = 1
	MigrationData_POSTGRESQL         MigrationData_Source = 2
	MigrationData_DYNAMODB           MigrationData_Source = 3
	MigrationData_SQL_SERVER         MigrationData_Source = 4
	MigrationData_ORACLE             MigrationData_Source = 5
	MigrationData_CSV                MigrationData_Source = 6
)

func (MigrationData_Source) Descriptor

func (MigrationData_Source) Enum

func (MigrationData_Source) EnumDescriptor deprecated

func (MigrationData_Source) EnumDescriptor() ([]byte, []int)

Deprecated: Use MigrationData_Source.Descriptor instead.

func (MigrationData_Source) Number

func (MigrationData_Source) String

func (x MigrationData_Source) String() string

func (MigrationData_Source) Type

type MigrationData_SourceConnectionMechanism

type MigrationData_SourceConnectionMechanism int32
const (
	MigrationData_SOURCE_CONNECTION_MECHANISM_UNSPECIFIED MigrationData_SourceConnectionMechanism = 0
	MigrationData_DIRECT_CONNECTION                       MigrationData_SourceConnectionMechanism = 1
	MigrationData_DB_DUMP                                 MigrationData_SourceConnectionMechanism = 2
	MigrationData_FILE                                    MigrationData_SourceConnectionMechanism = 3
)

func (MigrationData_SourceConnectionMechanism) Descriptor

func (MigrationData_SourceConnectionMechanism) Enum

func (MigrationData_SourceConnectionMechanism) EnumDescriptor deprecated

func (MigrationData_SourceConnectionMechanism) EnumDescriptor() ([]byte, []int)

Deprecated: Use MigrationData_SourceConnectionMechanism.Descriptor instead.

func (MigrationData_SourceConnectionMechanism) Number

func (MigrationData_SourceConnectionMechanism) String

func (MigrationData_SourceConnectionMechanism) Type

type MigrationData_TargetDialect

type MigrationData_TargetDialect int32
const (
	MigrationData_TARGET_DIALECT_UNSPECIFIED MigrationData_TargetDialect = 0
	MigrationData_GOOGLE_STANDARD_SQL        MigrationData_TargetDialect = 1
	MigrationData_POSTGRESQL_STANDARD_SQL    MigrationData_TargetDialect = 2
)

func (MigrationData_TargetDialect) Descriptor

func (MigrationData_TargetDialect) Enum

func (MigrationData_TargetDialect) EnumDescriptor deprecated

func (MigrationData_TargetDialect) EnumDescriptor() ([]byte, []int)

Deprecated: Use MigrationData_TargetDialect.Descriptor instead.

func (MigrationData_TargetDialect) Number

func (MigrationData_TargetDialect) String

func (MigrationData_TargetDialect) Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL