mapping

package
v0.0.9 Latest Latest
Warning

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

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

func MYSQLDatabaseTableColumnMapORACLECompatibleDatatypeRule

func MYSQLDatabaseTableColumnMapORACLECompatibleDatatypeRule(c *Column, buildinDatatypes []*buildin.BuildinDatatypeRule) (string, string, error)

func MYSQLHandleColumnRuleWithPriority

func MYSQLHandleColumnRuleWithPriority(originSourceTable, originColumnName, originDatatype string, buildInDatatype, originDefaultValue, sourceCharset, targetCharset string, buildinDefaultValueRules []*buildin.BuildinDefaultvalRule, taskRules []*migrate.TaskStructRule, schemaRules []*migrate.SchemaStructRule, tableRules []*migrate.TableStructRule, columnRules []*migrate.ColumnStructRule) (string, string, error)

MYSQLHandleColumnRuleWithPriority priority, return column datatype and default value column > table > schema > task

func MYSQLHandleColumnRuleWitheDefaultValuePriority

func MYSQLHandleColumnRuleWitheDefaultValuePriority(columnName, datatype, originDefaultValue, sourceCharset, targetCharset string, columnCustomDefaultValue map[string]map[string]string, columnGlobalDefaultValue map[string]string) (string, error)

func OracleDatabaseTableColumnMapMYSQLCompatibleDatatypeRule

func OracleDatabaseTableColumnMapMYSQLCompatibleDatatypeRule(taskFlow string, c *Column, buildinDatatypes []*buildin.BuildinDatatypeRule) (string, string, error)

func OracleHandleColumnRuleWithPriority

func OracleHandleColumnRuleWithPriority(originSourceTable, originColumnName string, originDatatype, buildInDatatype, originDefaultValue, sourceCharset, targetCharset string, buildinDefaultValueRules []*buildin.BuildinDefaultvalRule, taskRules []*migrate.TaskStructRule, schemaRules []*migrate.SchemaStructRule, tableRules []*migrate.TableStructRule, columnRules []*migrate.ColumnStructRule) (string, string, error)

OracleHandleColumnRuleWithPriority priority, return column datatype and default value column > table > schema > task

func OracleHandleColumnRuleWitheDefaultValuePriority

func OracleHandleColumnRuleWitheDefaultValuePriority(columnName, originDefaultValue, sourceCharset, targetCharset string, columnCustomDefaultValue map[string]map[string]string, columnGlobalDefaultValue map[string]string) (string, error)

Types

type Column

type Column struct {
	ColumnName        string
	Datatype          string
	CharUsed          string
	CharLength        string
	DatetimePrecision string // only mysql compatible database
	DataPrecision     string
	DataLength        string
	DataScale         string
	DataDefault       string
	Nullable          string
	Comment           string
}

Jump to

Keyboard shortcuts

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