migrate

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Copyright © 2020 Marvin

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColumnStructRule

type ColumnStructRule struct {
	ID            uint   `gorm:"primary_key;autoIncrement;comment:id" json:"id"`
	TaskName      string `` /* 149-byte string literal not displayed */
	SchemaNameS   string `` /* 156-byte string literal not displayed */
	TableNameS    string `` /* 154-byte string literal not displayed */
	ColumnNameS   string `` /* 161-byte string literal not displayed */
	ColumnTypeS   string `gorm:"type:varchar(100);not null;uniqueIndex:uniq_column_datatype_complex;comment:source column datatype" json:"schemaNameT"`
	ColumnTypeT   string `gorm:"type:varchar(100);not null;comment:target column datatype" json:"columnTypeT"`
	DefaultValueS string `` /* 131-byte string literal not displayed */
	DefaultValueT string `gorm:"type:varchar(100);not null;comment:target column default value" json:"defaultValueT"`
	*common.Entity
}

type IStructMigrateColumnRule

type IStructMigrateColumnRule interface {
	CreateColumnStructRule(ctx context.Context, data *ColumnStructRule) (*ColumnStructRule, error)
	ListColumnStructRule(ctx context.Context, page uint64, pageSize uint64) ([]*ColumnStructRule, error)
	QueryColumnStructRule(ctx context.Context, data *ColumnStructRule) ([]*ColumnStructRule, error)
	DeleteColumnStructRule(ctx context.Context, taskName []string) error
	FindColumnStructRule(ctx context.Context, taskName string) ([]*ColumnStructRule, error)
}

type IStructMigrateSchemaRule

type IStructMigrateSchemaRule interface {
	CreateSchemaStructRule(ctx context.Context, data *SchemaStructRule) (*SchemaStructRule, error)
	ListSchemaStructRule(ctx context.Context, page uint64, pageSize uint64) ([]*SchemaStructRule, error)
	QuerySchemaStructRule(ctx context.Context, data *SchemaStructRule) ([]*SchemaStructRule, error)
	DeleteSchemaStructRule(ctx context.Context, taskName []string) error
	FindSchemaStructRule(ctx context.Context, taskName string) ([]*SchemaStructRule, error)
}

type IStructMigrateTableAttrsRule

type IStructMigrateTableAttrsRule interface {
	CreateTableAttrsRule(ctx context.Context, data *TableAttrsRule) (*TableAttrsRule, error)
	ListTableAttrsRule(ctx context.Context, page uint64, pageSize uint64) ([]*TableAttrsRule, error)
	GetTableAttrsRule(ctx context.Context, data *TableAttrsRule) (*TableAttrsRule, error)
	DeleteTableAttrsRule(ctx context.Context, taskName []string) error
	FindTableAttrsRule(ctx context.Context, taskName string) ([]*TableAttrsRule, error)
}

type IStructMigrateTableRule

type IStructMigrateTableRule interface {
	CreateTableStructRule(ctx context.Context, data *TableStructRule) (*TableStructRule, error)
	ListTableStructRule(ctx context.Context, page uint64, pageSize uint64) ([]*TableStructRule, error)
	QueryTableStructRule(ctx context.Context, data *TableStructRule) ([]*TableStructRule, error)
	DeleteTableStructRule(ctx context.Context, taskName []string) error
	FindTableStructRule(ctx context.Context, taskName string) ([]*TableStructRule, error)
}

type IStructMigrateTaskRule

type IStructMigrateTaskRule interface {
	CreateTaskStructRule(ctx context.Context, data *TaskStructRule) (*TaskStructRule, error)
	ListTaskStructRule(ctx context.Context, page uint64, pageSize uint64) ([]*TaskStructRule, error)
	QueryTaskStructRule(ctx context.Context, data *TaskStructRule) ([]*TaskStructRule, error)
	DeleteTaskStructRule(ctx context.Context, taskName []string) error
}

type RWStructMigrateColumnRule

type RWStructMigrateColumnRule struct {
	common.GormDB
}

func NewStructMigrateColumnRuleRW

func NewStructMigrateColumnRuleRW(db *gorm.DB) *RWStructMigrateColumnRule

func (*RWStructMigrateColumnRule) CreateColumnStructRule

func (rw *RWStructMigrateColumnRule) CreateColumnStructRule(ctx context.Context, data *ColumnStructRule) (*ColumnStructRule, error)

func (*RWStructMigrateColumnRule) DeleteColumnStructRule

func (rw *RWStructMigrateColumnRule) DeleteColumnStructRule(ctx context.Context, taskName []string) error

func (*RWStructMigrateColumnRule) FindColumnStructRule

func (rw *RWStructMigrateColumnRule) FindColumnStructRule(ctx context.Context, taskName string) ([]*ColumnStructRule, error)

func (*RWStructMigrateColumnRule) ListColumnStructRule

func (rw *RWStructMigrateColumnRule) ListColumnStructRule(ctx context.Context, page uint64, pageSize uint64) ([]*ColumnStructRule, error)

func (*RWStructMigrateColumnRule) QueryColumnStructRule

func (rw *RWStructMigrateColumnRule) QueryColumnStructRule(ctx context.Context, data *ColumnStructRule) ([]*ColumnStructRule, error)

func (*RWStructMigrateColumnRule) TableName

func (rw *RWStructMigrateColumnRule) TableName(ctx context.Context) string

type RWStructMigrateSchemaRule

type RWStructMigrateSchemaRule struct {
	common.GormDB
}

func NewStructMigrateSchemaRuleRW

func NewStructMigrateSchemaRuleRW(db *gorm.DB) *RWStructMigrateSchemaRule

func (*RWStructMigrateSchemaRule) CreateSchemaStructRule

func (rw *RWStructMigrateSchemaRule) CreateSchemaStructRule(ctx context.Context, data *SchemaStructRule) (*SchemaStructRule, error)

func (*RWStructMigrateSchemaRule) DeleteSchemaStructRule

func (rw *RWStructMigrateSchemaRule) DeleteSchemaStructRule(ctx context.Context, taskName []string) error

func (*RWStructMigrateSchemaRule) FindSchemaStructRule

func (rw *RWStructMigrateSchemaRule) FindSchemaStructRule(ctx context.Context, taskName string) ([]*SchemaStructRule, error)

func (*RWStructMigrateSchemaRule) ListSchemaStructRule

func (rw *RWStructMigrateSchemaRule) ListSchemaStructRule(ctx context.Context, page uint64, pageSize uint64) ([]*SchemaStructRule, error)

func (*RWStructMigrateSchemaRule) QuerySchemaStructRule

func (rw *RWStructMigrateSchemaRule) QuerySchemaStructRule(ctx context.Context, data *SchemaStructRule) ([]*SchemaStructRule, error)

func (*RWStructMigrateSchemaRule) TableName

func (rw *RWStructMigrateSchemaRule) TableName(ctx context.Context) string

type RWStructMigrateTableAttrsRule

type RWStructMigrateTableAttrsRule struct {
	common.GormDB
}

func NewStructMigrateTableAttrsRuleRW

func NewStructMigrateTableAttrsRuleRW(db *gorm.DB) *RWStructMigrateTableAttrsRule

func (*RWStructMigrateTableAttrsRule) CreateTableAttrsRule

func (rw *RWStructMigrateTableAttrsRule) CreateTableAttrsRule(ctx context.Context, data *TableAttrsRule) (*TableAttrsRule, error)

func (*RWStructMigrateTableAttrsRule) DeleteTableAttrsRule

func (rw *RWStructMigrateTableAttrsRule) DeleteTableAttrsRule(ctx context.Context, taskName []string) error

func (*RWStructMigrateTableAttrsRule) FindTableAttrsRule

func (rw *RWStructMigrateTableAttrsRule) FindTableAttrsRule(ctx context.Context, taskName string) ([]*TableAttrsRule, error)

func (*RWStructMigrateTableAttrsRule) GetTableAttrsRule

func (rw *RWStructMigrateTableAttrsRule) GetTableAttrsRule(ctx context.Context, data *TableAttrsRule) (*TableAttrsRule, error)

func (*RWStructMigrateTableAttrsRule) ListTableAttrsRule

func (rw *RWStructMigrateTableAttrsRule) ListTableAttrsRule(ctx context.Context, page uint64, pageSize uint64) ([]*TableAttrsRule, error)

func (*RWStructMigrateTableAttrsRule) TableName

type RWStructMigrateTableRule

type RWStructMigrateTableRule struct {
	common.GormDB
}

func NewStructMigrateTableRuleRW

func NewStructMigrateTableRuleRW(db *gorm.DB) *RWStructMigrateTableRule

func (*RWStructMigrateTableRule) CreateTableStructRule

func (rw *RWStructMigrateTableRule) CreateTableStructRule(ctx context.Context, data *TableStructRule) (*TableStructRule, error)

func (*RWStructMigrateTableRule) DeleteTableStructRule

func (rw *RWStructMigrateTableRule) DeleteTableStructRule(ctx context.Context, taskName []string) error

func (*RWStructMigrateTableRule) FindTableStructRule

func (rw *RWStructMigrateTableRule) FindTableStructRule(ctx context.Context, taskName string) ([]*TableStructRule, error)

func (*RWStructMigrateTableRule) ListTableStructRule

func (rw *RWStructMigrateTableRule) ListTableStructRule(ctx context.Context, page uint64, pageSize uint64) ([]*TableStructRule, error)

func (*RWStructMigrateTableRule) QueryTableStructRule

func (rw *RWStructMigrateTableRule) QueryTableStructRule(ctx context.Context, data *TableStructRule) ([]*TableStructRule, error)

func (*RWStructMigrateTableRule) TableName

func (rw *RWStructMigrateTableRule) TableName(ctx context.Context) string

type RWStructMigrateTaskRule

type RWStructMigrateTaskRule struct {
	common.GormDB
}

func NewStructMigrateTaskRuleRW

func NewStructMigrateTaskRuleRW(db *gorm.DB) *RWStructMigrateTaskRule

func (*RWStructMigrateTaskRule) CreateTaskStructRule

func (rw *RWStructMigrateTaskRule) CreateTaskStructRule(ctx context.Context, data *TaskStructRule) (*TaskStructRule, error)

func (*RWStructMigrateTaskRule) DeleteTaskStructRule

func (rw *RWStructMigrateTaskRule) DeleteTaskStructRule(ctx context.Context, taskName []string) error

func (*RWStructMigrateTaskRule) ListTaskStructRule

func (rw *RWStructMigrateTaskRule) ListTaskStructRule(ctx context.Context, page uint64, pageSize uint64) ([]*TaskStructRule, error)

func (*RWStructMigrateTaskRule) QueryTaskStructRule

func (rw *RWStructMigrateTaskRule) QueryTaskStructRule(ctx context.Context, data *TaskStructRule) ([]*TaskStructRule, error)

func (*RWStructMigrateTaskRule) TableName

func (rw *RWStructMigrateTaskRule) TableName(ctx context.Context) string

type SchemaStructRule

type SchemaStructRule struct {
	ID            uint   `gorm:"primary_key;autoIncrement;comment:id" json:"id"`
	TaskName      string `` /* 149-byte string literal not displayed */
	SchemaNameS   string `` /* 156-byte string literal not displayed */
	ColumnTypeS   string `gorm:"type:varchar(100);not null;uniqueIndex:uniq_schema_datatype_complex;comment:source column datatype" json:"schemaNameT"`
	ColumnTypeT   string `gorm:"type:varchar(100);not null;comment:target column datatype" json:"columnTypeT"`
	DefaultValueS string `` /* 131-byte string literal not displayed */
	DefaultValueT string `gorm:"type:varchar(100);not null;comment:target column default value" json:"defaultValueT"`
	*common.Entity
}

type TableAttrsRule

type TableAttrsRule struct {
	ID          uint   `gorm:"primary_key;autoIncrement;comment:id" json:"id"`
	TaskName    string `gorm:"type:varchar(100);not null;uniqueIndex:uniq_task_table_complex;comment:task name" json:"taskName"`
	SchemaNameS string `gorm:"type:varchar(150);not null;uniqueIndex:uniq_task_table_complex;comment:source schema" json:"schemaNameS"`
	TableNameS  string `gorm:"type:varchar(150);not null;uniqueIndex:uniq_task_table_complex;comment:source table" json:"tableNameS"`
	TableAttrT  string `gorm:"type:varchar(200);not null;comment:target table suffix attr" json:"tableAttrT"`
}

type TableStructRule

type TableStructRule struct {
	ID            uint   `gorm:"primary_key;autoIncrement;comment:id" json:"id"`
	TaskName      string `` /* 148-byte string literal not displayed */
	SchemaNameS   string `` /* 155-byte string literal not displayed */
	TableNameS    string `` /* 153-byte string literal not displayed */
	ColumnTypeS   string `gorm:"type:varchar(100);not null;uniqueIndex:uniq_table_datatype_complex;comment:source column datatype" json:"schemaNameT"`
	ColumnTypeT   string `gorm:"type:varchar(100);not null;comment:target column datatype" json:"columnTypeT"`
	DefaultValueS string `` /* 131-byte string literal not displayed */
	DefaultValueT string `gorm:"type:varchar(100);not null;comment:target column default value" json:"defaultValueT"`
	*common.Entity
}

type TaskStructRule

type TaskStructRule struct {
	ID            uint   `gorm:"primary_key;autoIncrement;comment:id" json:"id"`
	TaskName      string `` /* 147-byte string literal not displayed */
	ColumnTypeS   string `gorm:"type:varchar(100);not null;uniqueIndex:uniq_task_datatype_complex;comment:source column datatype" json:"columnTypeS"`
	ColumnTypeT   string `gorm:"type:varchar(100);not null;comment:target column datatype" json:"columnTypeT"`
	DefaultValueS string `` /* 131-byte string literal not displayed */
	DefaultValueT string `gorm:"type:varchar(100);not null;comment:target column default value" json:"defaultValueT"`
	*common.Entity
}

Jump to

Keyboard shortcuts

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