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.
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 ¶
- func CompatibleRuleSliceSplit(items []*BuildinCompatibleRule, splitCounts int) [][]*BuildinCompatibleRule
- func DatatypeSliceSplit(items []*BuildinDatatypeRule, splitCounts int) [][]*BuildinDatatypeRule
- func DefaultValueSliceSplit(items []*BuildinDefaultvalRule, splitCounts int) [][]*BuildinDefaultvalRule
- type BuildinCompatibleRule
- type BuildinDatatypeRule
- type BuildinDefaultvalRule
- type BuildinRuleRecord
- type IBuildInCompatibleRule
- type IBuildInDatatypeRule
- type IBuildInDefaultValueRule
- type IBuildInRuleRecord
- type RWBuildinCompatibleRule
- func (rw *RWBuildinCompatibleRule) CreateBuildInCompatibleRule(ctx context.Context, rec []*BuildinCompatibleRule) ([]*BuildinCompatibleRule, error)
- func (rw *RWBuildinCompatibleRule) QueryBuildInCompatibleRule(ctx context.Context, dbTypeS, dbTypeT string) ([]*BuildinCompatibleRule, error)
- func (rw *RWBuildinCompatibleRule) TableName(ctx context.Context) string
- type RWBuildinDatatypeRule
- func (rw *RWBuildinDatatypeRule) CreateBuildInDatatypeRule(ctx context.Context, rec []*BuildinDatatypeRule) ([]*BuildinDatatypeRule, error)
- func (rw *RWBuildinDatatypeRule) QueryBuildInDatatypeRule(ctx context.Context, dbTypeS, dbTypeT string) ([]*BuildinDatatypeRule, error)
- func (rw *RWBuildinDatatypeRule) TableName(ctx context.Context) string
- type RWBuildinDefaultValueRule
- func (rw *RWBuildinDefaultValueRule) CreateBuildInDefaultValueRule(ctx context.Context, rec []*BuildinDefaultvalRule) ([]*BuildinDefaultvalRule, error)
- func (rw *RWBuildinDefaultValueRule) QueryBuildInDefaultValueRule(ctx context.Context, dbTypeS, dbTypeT string) ([]*BuildinDefaultvalRule, error)
- func (rw *RWBuildinDefaultValueRule) TableName(ctx context.Context) string
- type RWBuildinRuleRecord
- func (rw *RWBuildinRuleRecord) CreateBuildInRuleRecord(ctx context.Context, rec *BuildinRuleRecord) (*BuildinRuleRecord, error)
- func (rw *RWBuildinRuleRecord) GetBuildInRuleRecord(ctx context.Context, ruleName string) (*BuildinRuleRecord, error)
- func (rw *RWBuildinRuleRecord) TableName(ctx context.Context) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompatibleRuleSliceSplit ¶ added in v0.0.6
func CompatibleRuleSliceSplit(items []*BuildinCompatibleRule, splitCounts int) [][]*BuildinCompatibleRule
CompatibleRuleSliceSplit used for the according to splitCounts, split slice
func DatatypeSliceSplit ¶ added in v0.0.6
func DatatypeSliceSplit(items []*BuildinDatatypeRule, splitCounts int) [][]*BuildinDatatypeRule
DatatypeSliceSplit used for the according to splitCounts, split slice
func DefaultValueSliceSplit ¶ added in v0.0.6
func DefaultValueSliceSplit(items []*BuildinDefaultvalRule, splitCounts int) [][]*BuildinDefaultvalRule
DefaultValueSliceSplit used for the according to splitCounts, split slice
Types ¶
type BuildinCompatibleRule ¶
type BuildinCompatibleRule struct { ID uint64 `gorm:"primarykey;autoIncrement;comment:id" json:"id"` DBTypeS string `gorm:"type:varchar(60);uniqueIndex:idx_taskflow_datatype_complex;comment:source db type" json:"dbTypeS"` DBTypeT string `gorm:"type:varchar(60);uniqueIndex:idx_taskflow_datatype_complex;comment:target db type" json:"dbTypeT"` ObjectNameS string `gorm:"type:varchar(300);uniqueIndex:idx_taskflow_datatype_complex;comment:source object name" json:"objectNameS"` IsCompatible string `gorm:"type:char(1);comment:is the object compatible" json:"isCompatible"` IsConvertible string `gorm:"type:char(1);comment:is the object convertible" json:"isConvertible"` *common.Entity }
func InitO2MBuildinCompatibleRule ¶
func InitO2MBuildinCompatibleRule() []*BuildinCompatibleRule
func InitO2TBuildinCompatibleRule ¶
func InitO2TBuildinCompatibleRule() []*BuildinCompatibleRule
type BuildinDatatypeRule ¶
type BuildinDatatypeRule struct { ID uint64 `gorm:"primarykey;autoIncrement;comment:id" json:"id"` DBTypeS string `gorm:"type:varchar(60);uniqueIndex:idx_taskflow_datatype_complex;comment:source db type" json:"dbTypeS"` DBTypeT string `gorm:"type:varchar(60);uniqueIndex:idx_taskflow_datatype_complex;comment:target db type" json:"dbTypeT"` DatatypeNameS string `gorm:"type:varchar(300);uniqueIndex:idx_taskflow_datatype_complex;comment:source datatype name" json:"datatypeNameS"` DatatypeNameT string `gorm:"type:varchar(300);comment:target datatype name" json:"datatypeNameT"` *common.Entity }
func InitM2OBuildinDatatypeRule ¶
func InitM2OBuildinDatatypeRule() []*BuildinDatatypeRule
func InitO2MBuildinDatatypeRule ¶
func InitO2MBuildinDatatypeRule() []*BuildinDatatypeRule
func InitO2TBuildinDatatypeRule ¶
func InitO2TBuildinDatatypeRule() []*BuildinDatatypeRule
func InitT2OBuildinDatatypeRule ¶
func InitT2OBuildinDatatypeRule() []*BuildinDatatypeRule
type BuildinDefaultvalRule ¶
type BuildinDefaultvalRule struct { ID uint64 `gorm:"primarykey;autoIncrement;comment:id" json:"id"` DBTypeS string `gorm:"type:varchar(60);uniqueIndex:idx_taskflow_datatype_complex;comment:source db type" json:"dbTypeS"` DBTypeT string `gorm:"type:varchar(60);uniqueIndex:idx_taskflow_datatype_complex;comment:target db type" json:"dbTypeT"` DefaultValueS string `gorm:"type:varchar(300);uniqueIndex:idx_taskflow_datatype_complex;comment:source default value" json:"defaultValueS"` DefaultValueT string `gorm:"type:varchar(300);comment:target default value" json:"defaultValueT"` *common.Entity }
func InitMT2OBuildinDefaultValue ¶
func InitMT2OBuildinDefaultValue() []*BuildinDefaultvalRule
func InitO2MTBuildinDefaultValue ¶
func InitO2MTBuildinDefaultValue() []*BuildinDefaultvalRule
type BuildinRuleRecord ¶
type BuildinRuleRecord struct { ID uint64 `gorm:"primarykey;autoIncrement;comment:id" json:"id"` RuleName string `gorm:"type:varchar(60);default:not null;uniqueIndex:idx_rule_name;comment:rule name" json:"ruleName"` RuleInit string `gorm:"type:varchar(10);comment:rule init status" json:"ruleInit"` *common.Entity }
type IBuildInCompatibleRule ¶
type IBuildInCompatibleRule interface { CreateBuildInCompatibleRule(ctx context.Context, rec []*BuildinCompatibleRule) ([]*BuildinCompatibleRule, error) QueryBuildInCompatibleRule(ctx context.Context, dbTypeS, dbTypeT string) ([]*BuildinCompatibleRule, error) }
type IBuildInDatatypeRule ¶
type IBuildInDatatypeRule interface { CreateBuildInDatatypeRule(ctx context.Context, rec []*BuildinDatatypeRule) ([]*BuildinDatatypeRule, error) QueryBuildInDatatypeRule(ctx context.Context, dbTypeS, dbTypeT string) ([]*BuildinDatatypeRule, error) }
type IBuildInDefaultValueRule ¶
type IBuildInDefaultValueRule interface { CreateBuildInDefaultValueRule(ctx context.Context, rec []*BuildinDefaultvalRule) ([]*BuildinDefaultvalRule, error) QueryBuildInDefaultValueRule(ctx context.Context, dbTypeS, dbTypeT string) ([]*BuildinDefaultvalRule, error) }
type IBuildInRuleRecord ¶
type IBuildInRuleRecord interface { CreateBuildInRuleRecord(ctx context.Context, rec *BuildinRuleRecord) (*BuildinRuleRecord, error) GetBuildInRuleRecord(ctx context.Context, ruleName string) (*BuildinRuleRecord, error) }
type RWBuildinCompatibleRule ¶
func NewBuildinCompatibleRuleRW ¶
func NewBuildinCompatibleRuleRW(db *gorm.DB) *RWBuildinCompatibleRule
func (*RWBuildinCompatibleRule) CreateBuildInCompatibleRule ¶
func (rw *RWBuildinCompatibleRule) CreateBuildInCompatibleRule(ctx context.Context, rec []*BuildinCompatibleRule) ([]*BuildinCompatibleRule, error)
func (*RWBuildinCompatibleRule) QueryBuildInCompatibleRule ¶
func (rw *RWBuildinCompatibleRule) QueryBuildInCompatibleRule(ctx context.Context, dbTypeS, dbTypeT string) ([]*BuildinCompatibleRule, error)
type RWBuildinDatatypeRule ¶
func NewBuildinDatatypeRuleRW ¶
func NewBuildinDatatypeRuleRW(db *gorm.DB) *RWBuildinDatatypeRule
func (*RWBuildinDatatypeRule) CreateBuildInDatatypeRule ¶
func (rw *RWBuildinDatatypeRule) CreateBuildInDatatypeRule(ctx context.Context, rec []*BuildinDatatypeRule) ([]*BuildinDatatypeRule, error)
func (*RWBuildinDatatypeRule) QueryBuildInDatatypeRule ¶
func (rw *RWBuildinDatatypeRule) QueryBuildInDatatypeRule(ctx context.Context, dbTypeS, dbTypeT string) ([]*BuildinDatatypeRule, error)
type RWBuildinDefaultValueRule ¶
func NewBuildinDefaultValueRuleRW ¶
func NewBuildinDefaultValueRuleRW(db *gorm.DB) *RWBuildinDefaultValueRule
func (*RWBuildinDefaultValueRule) CreateBuildInDefaultValueRule ¶
func (rw *RWBuildinDefaultValueRule) CreateBuildInDefaultValueRule(ctx context.Context, rec []*BuildinDefaultvalRule) ([]*BuildinDefaultvalRule, error)
func (*RWBuildinDefaultValueRule) QueryBuildInDefaultValueRule ¶
func (rw *RWBuildinDefaultValueRule) QueryBuildInDefaultValueRule(ctx context.Context, dbTypeS, dbTypeT string) ([]*BuildinDefaultvalRule, error)
type RWBuildinRuleRecord ¶
func NewBuildinRuleRecordRW ¶
func NewBuildinRuleRecordRW(db *gorm.DB) *RWBuildinRuleRecord
func (*RWBuildinRuleRecord) CreateBuildInRuleRecord ¶
func (rw *RWBuildinRuleRecord) CreateBuildInRuleRecord(ctx context.Context, rec *BuildinRuleRecord) (*BuildinRuleRecord, error)
func (*RWBuildinRuleRecord) GetBuildInRuleRecord ¶
func (rw *RWBuildinRuleRecord) GetBuildInRuleRecord(ctx context.Context, ruleName string) (*BuildinRuleRecord, error)