Documentation ¶
Overview ¶
Copyright (c) YugaByte, Inc.
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 (c) YugaByte, Inc.
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 (c) YugaByte, Inc.
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
- Variables
- func AskPrompt(args ...string) bool
- func CleanDir(dir string)
- func ClearMatchingFiles(filePattern string)
- func CsvStringToSlice(str string) []string
- func ErrExit(formatString string, args ...interface{})
- func FileOrFolderExists(path string) bool
- func GetObjectDirPath(schemaDirPath string, objType string) string
- func GetObjectFileName(schemaDirPath string, objType string) string
- func GetObjectFilePath(schemaDirPath string, objType string) string
- func GetObjectNameListFromReport(report Report, objType string) []string
- func GetSchemaObjectList(sourceDBType string) []string
- func GetSortedKeys(tablesProgressMetadata map[string]*TableProgressMetadata) []string
- func IsDirectoryEmpty(pathPattern string) bool
- func IsQuotedString(str string) bool
- func PrettifyHtmlString(htmlStr string) string
- func PrettifyJsonString(jsonStr string) string
- func PrintAndLog(formatString string, args ...interface{})
- func PrintIfTrue(message string, args ...bool)
- func Readline(r *bufio.Reader) (string, error)
- func Wait(args ...string)
- type DBObject
- type ExportMetaInfo
- type Issue
- type Report
- type Summary
- type TableProgressMetadata
Constants ¶
const ( TABLE_MIGRATION_NOT_STARTED = iota TABLE_MIGRATION_IN_PROGRESS TABLE_MIGRATION_DONE TABLE_MIGRATION_COMPLETED )
Variables ¶
var DoNotPrompt bool
var WaitChannel = make(chan int)
var WaitGroup sync.WaitGroup
Functions ¶
func ClearMatchingFiles ¶
func ClearMatchingFiles(filePattern string)
func CsvStringToSlice ¶
func FileOrFolderExists ¶
func GetObjectDirPath ¶
func GetObjectFileName ¶
func GetObjectFilePath ¶
func GetSchemaObjectList ¶
func GetSortedKeys ¶
func GetSortedKeys(tablesProgressMetadata map[string]*TableProgressMetadata) []string
func IsDirectoryEmpty ¶
func IsQuotedString ¶
func PrettifyHtmlString ¶
func PrettifyJsonString ¶
func PrintAndLog ¶
func PrintAndLog(formatString string, args ...interface{})
func PrintIfTrue ¶
Types ¶
type ExportMetaInfo ¶
type TableProgressMetadata ¶
type TableProgressMetadata struct { TableSchema string TableName string FullTableName string InProgressFilePath string FinalFilePath string Status int //(0: NOT-STARTED, 1: IN-PROGRESS, 2: DONE, 3: COMPLETED) CountLiveRows int64 CountTotalRows int64 FileOffsetToContinue int64 // This might be removed later IsPartition bool ParentTable string }