-
Notifications
You must be signed in to change notification settings - Fork 56
/
constants.go
82 lines (66 loc) · 2.74 KB
/
constants.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// Copyright 2020 Google LLC
//
// 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.
// Package constants contains constants used across multiple other packages.
// All string constants have a lower_case value and thus string matching is
// performend against other lower_case strings.
package constants
const (
// PGDUMP is the driver name for pg_dump.
PGDUMP string = "pg_dump"
// POSTGRES is the driver name for PostgreSQL.
POSTGRES string = "postgres"
// MYSQLDUMP is the driver name for mysqldump.
MYSQLDUMP string = "mysqldump"
// MYSQL is the driver name for MySQL.
MYSQL string = "mysql"
// SQLSERVER is the driver name for sqlserver.
SQLSERVER string = "sqlserver"
// DYNAMODB is the driver name for AWS DynamoDB.
// This is an experimental driver; implementation in progress.
DYNAMODB string = "dynamodb"
// CSV is the driver name when loading data using csv.
CSV string = "csv"
// ORACLE is the driver name for Oracle.
// This is an experimental driver; implementation in progress.
ORACLE string = "oracle"
// Target db for which schema is being generated.
// This can be removed once the support for global flags is removed.
TargetSpanner string = "spanner"
TargetExperimentalPostgres string = "experimental_postgres"
// Supported dialects for Cloud Spanner database.
DIALECT_POSTGRESQL string = "postgresql"
DIALECT_GOOGLESQL string = "google_standard_sql"
// Temp directory name to write data which we cleanup at the end.
HB_TMP_DIR string = "harbourbridge_tmp_data"
// Information on what conversion is happening (schema conv or data conv)
SchemaConv string = "schema_conv"
DataConv string = "data_conv"
// Information passed in metadata while using Cloud Spanner client.
MigrationMetadataKey string = "cloud-spanner-migration-metadata"
// Scheme used for GCS paths
GCS_SCHEME string = "gs"
// File upload prefix for dump and session load.
UPLOAD_FILE_DIR string = "upload-file"
// Rule types
GlobalDataTypeChange = "global_datatype_change"
AddIndex = "add_index"
//bulk migration type
BULK_MIGRATION = "bulk"
//dataflow migration type
DATAFLOW_MIGRATION = "dataflow"
//DMS migration type
DMS_MIGRATION = "dms"
EditColumnMaxLength = "edit_column_max_length"
SESSION_FILE = "sessionFile"
)