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.
Index ¶
- func ConvertOracleCreateTableSQL(convertCfg ConvertTomlCfg)
- func GetTomlString(key string) string
- func MustGetTomlBool(key string) bool
- func MustGetTomlInt(key string) int
- func MustGetTomlString(key string) string
- func MustGetTomlStringSlice(key string) []string
- type ConvertTomlCfg
- type Global
- type Source
- type Target
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertOracleCreateTableSQL ¶
func ConvertOracleCreateTableSQL(convertCfg ConvertTomlCfg)
func GetTomlString ¶
func MustGetTomlBool ¶
func MustGetTomlInt ¶
func MustGetTomlString ¶
func MustGetTomlStringSlice ¶
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 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"` }