buildin

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 7 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.

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

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

type RWBuildinCompatibleRule struct {
	common.GormDB
}

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)

func (*RWBuildinCompatibleRule) TableName

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

type RWBuildinDatatypeRule

type RWBuildinDatatypeRule struct {
	common.GormDB
}

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)

func (*RWBuildinDatatypeRule) TableName

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

type RWBuildinDefaultValueRule

type RWBuildinDefaultValueRule struct {
	common.GormDB
}

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)

func (*RWBuildinDefaultValueRule) TableName

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

type RWBuildinRuleRecord

type RWBuildinRuleRecord struct {
	common.GormDB
}

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)

func (*RWBuildinRuleRecord) TableName

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

Jump to

Keyboard shortcuts

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