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.
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.
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.
Index ¶
- type ColumnStructRule
- type IStructMigrateColumnRule
- type IStructMigrateSchemaRule
- type IStructMigrateTableAttrsRule
- type IStructMigrateTableRule
- type IStructMigrateTaskRule
- type RWStructMigrateColumnRule
- func (rw *RWStructMigrateColumnRule) CreateColumnStructRule(ctx context.Context, data *ColumnStructRule) (*ColumnStructRule, error)
- func (rw *RWStructMigrateColumnRule) DeleteColumnStructRule(ctx context.Context, taskName []string) error
- func (rw *RWStructMigrateColumnRule) FindColumnStructRule(ctx context.Context, taskName string) ([]*ColumnStructRule, error)
- func (rw *RWStructMigrateColumnRule) ListColumnStructRule(ctx context.Context, page uint64, pageSize uint64) ([]*ColumnStructRule, error)
- func (rw *RWStructMigrateColumnRule) QueryColumnStructRule(ctx context.Context, data *ColumnStructRule) ([]*ColumnStructRule, error)
- func (rw *RWStructMigrateColumnRule) TableName(ctx context.Context) string
- type RWStructMigrateSchemaRule
- func (rw *RWStructMigrateSchemaRule) CreateSchemaStructRule(ctx context.Context, data *SchemaStructRule) (*SchemaStructRule, error)
- func (rw *RWStructMigrateSchemaRule) DeleteSchemaStructRule(ctx context.Context, taskName []string) error
- func (rw *RWStructMigrateSchemaRule) FindSchemaStructRule(ctx context.Context, taskName string) ([]*SchemaStructRule, error)
- func (rw *RWStructMigrateSchemaRule) ListSchemaStructRule(ctx context.Context, page uint64, pageSize uint64) ([]*SchemaStructRule, error)
- func (rw *RWStructMigrateSchemaRule) QuerySchemaStructRule(ctx context.Context, data *SchemaStructRule) ([]*SchemaStructRule, error)
- func (rw *RWStructMigrateSchemaRule) TableName(ctx context.Context) string
- type RWStructMigrateTableAttrsRule
- func (rw *RWStructMigrateTableAttrsRule) CreateTableAttrsRule(ctx context.Context, data *TableAttrsRule) (*TableAttrsRule, error)
- func (rw *RWStructMigrateTableAttrsRule) DeleteTableAttrsRule(ctx context.Context, taskName []string) error
- func (rw *RWStructMigrateTableAttrsRule) FindTableAttrsRule(ctx context.Context, taskName string) ([]*TableAttrsRule, error)
- func (rw *RWStructMigrateTableAttrsRule) GetTableAttrsRule(ctx context.Context, data *TableAttrsRule) (*TableAttrsRule, error)
- func (rw *RWStructMigrateTableAttrsRule) ListTableAttrsRule(ctx context.Context, page uint64, pageSize uint64) ([]*TableAttrsRule, error)
- func (rw *RWStructMigrateTableAttrsRule) TableName(ctx context.Context) string
- type RWStructMigrateTableRule
- func (rw *RWStructMigrateTableRule) CreateTableStructRule(ctx context.Context, data *TableStructRule) (*TableStructRule, error)
- func (rw *RWStructMigrateTableRule) DeleteTableStructRule(ctx context.Context, taskName []string) error
- func (rw *RWStructMigrateTableRule) FindTableStructRule(ctx context.Context, taskName string) ([]*TableStructRule, error)
- func (rw *RWStructMigrateTableRule) ListTableStructRule(ctx context.Context, page uint64, pageSize uint64) ([]*TableStructRule, error)
- func (rw *RWStructMigrateTableRule) QueryTableStructRule(ctx context.Context, data *TableStructRule) ([]*TableStructRule, error)
- func (rw *RWStructMigrateTableRule) TableName(ctx context.Context) string
- type RWStructMigrateTaskRule
- func (rw *RWStructMigrateTaskRule) CreateTaskStructRule(ctx context.Context, data *TaskStructRule) (*TaskStructRule, error)
- func (rw *RWStructMigrateTaskRule) DeleteTaskStructRule(ctx context.Context, taskName []string) error
- func (rw *RWStructMigrateTaskRule) ListTaskStructRule(ctx context.Context, page uint64, pageSize uint64) ([]*TaskStructRule, error)
- func (rw *RWStructMigrateTaskRule) QueryTaskStructRule(ctx context.Context, data *TaskStructRule) ([]*TaskStructRule, error)
- func (rw *RWStructMigrateTaskRule) TableName(ctx context.Context) string
- type SchemaStructRule
- type TableAttrsRule
- type TableStructRule
- type TaskStructRule
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 ¶
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)
type RWStructMigrateSchemaRule ¶
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)
type RWStructMigrateTableAttrsRule ¶
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)
type RWStructMigrateTableRule ¶
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)
type RWStructMigrateTaskRule ¶
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)
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 }