gopli: github.com/timakin/gopli/constants Index | Files

package constants

import "github.com/timakin/gopli/constants"

Index

Package Files

db.go log.go session.go structs.go

Constants

const (
    SELECT_TABLES_CMD_FORMAT = "mysql -u%s -p%s -B -N -e 'SELECT * FROM %s.%s'"
    SHOW_TABLES_CMD_FORMAT   = "mysql %s -u%s -p%s -B -N -e 'show tables'"

    CLEAN_TABLES_CMD_FORMAT                    = "mysql -u%s -p%s -B -N -e 'DELETE FROM %s.%s'"
    CLEAN_TABLES_CMD_FORMAT_WITHOUT_PASSPHRASE = "mysql -u%s -B -N -e 'DELETE FROM %s.%s'"

    DELETE_TABLE_QUERY_FORMAT = "DELETE FROM %s.%s"
    LOAD_INFILE_QUERY_FORMAT  = "LOAD DATA LOCAL INFILE '%s' INTO TABLE %s.%s"

    TMP_DIR_PATH = "/tmp/db_sync"
)
const (
    MaxFetchSession      = 3
    MaxDeleteSession     = 3
    MaxLoadInfileSession = 3
)

type Database Uses

type Database struct {
    Host             string
    ManagementSystem string `toml:"management_system"`
    Name             string
    User             string
    Password         string
    Offset           int
    IsContainer      bool `toml:"is_container"`
}

Database settings

type SSH Uses

type SSH struct {
    Host string
    Port string
    User string
    Key  string
}

SSH settings

Package constants is imported by 6 packages. Updated 2017-02-02. Refresh now. Tools for package owners.