Documentation ¶
Index ¶
Constants ¶
View Source
const ( MSQLDMP_CONNECT_CMD string = "%s -u %s -h %s --password=%s" MSQLDMP_CREATE_CMD = "%s < %s" MSQLDMP_FLUSH_CMD = "%s > flush privileges" MSQLDMP_DUMP_CMD = "%s --all-databases" )
View Source
const ( PGDMP_DROP_CMD string = "drop schema public cascade;" PGDMP_CREATE_CMD = "create schema public;" )
Variables ¶
View Source
var ( MSQLDMP_DUMP_BIN string = "/var/vcap/packages/mariadb/bin/mysqldump" MSQLDMP_SQL_BIN = "/var/vcap/packages/mariadb/bin/mysql" )
View Source
var ( PGDMP_DUMP_BIN string = "/var/vcap/packages/postgres/bin/pg_dump" PGDMP_SQL_BIN = "/var/vcap/packages/postgres/bin/psql" )
Functions ¶
This section is empty.
Types ¶
type MysqlDump ¶
type MysqlDump struct { Ip string Username string Password string DbFile string ConfigFile string Caller command.Executer RemoteOps remoteOperationsInterface }
func NewMysqlDump ¶
func NewRemoteMysqlDump ¶
Click to show internal directories.
Click to hide internal directories.