migrate

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2020 License: Apache-2.0 Imports: 13 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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertOracleCreateTableSQL

func ConvertOracleCreateTableSQL(convertCfg ConvertTomlCfg)

func GetTomlString

func GetTomlString(key string) string

func MustGetTomlBool

func MustGetTomlBool(key string) bool

func MustGetTomlInt

func MustGetTomlInt(key string) int

func MustGetTomlString

func MustGetTomlString(key string) string

func MustGetTomlStringSlice

func MustGetTomlStringSlice(key string) []string

Types

type ConvertTomlCfg

type ConvertTomlCfg struct {
	Source Source `toml:"source"`
	Target Target `toml:"target"`
	Global Global `toml:"global"`
}

func NewConvertCmdCfg

func NewConvertCmdCfg(fileName string) (ConvertTomlCfg, error)

type Global

type Global struct {
	MaxProcs int `toml:"MaxProcs"`
}

type Source

type Source struct {
	Datasource   string   `toml:"datasource"`
	Host         string   `toml:"host"`
	Username     string   `toml:"username"`
	Password     string   `toml:"password"`
	Port         string   `toml:"port"`
	DBName       string   `toml:"dbName"`
	Schema       string   `toml:"schema"`
	IncludeTable []string `toml:"includeTable"`
	ExcludeTable []string `toml:"excludeTable"`
	ViewCreate   bool     `toml:"viewCreate"`
}

type Target

type Target struct {
	Datasource string `toml:"datasource"`
	Host       string `toml:"host"`
	Username   string `toml:"username"`
	Password   string `toml:"password"`
	Port       string `toml:"port"`
	DBName     string `toml:"dbName"`
	Schema     string `toml:"schema"`
	Behavior   bool   `toml:"behavior"`
}

Jump to

Keyboard shortcuts

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