tools

package
v0.0.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultGaussDBDatabase = "postgres"

DefaultGaussDBDatabase is the default database used to connect to GaussDB (openGauss) before creating the target database. The openGauss default installation usually has a "postgres" database, and props.gaussdb uses it as the default connection database.

View Source
var DefaultPGDatabase = "postgres"

Functions

func NewElasticsearchCmd

func NewElasticsearchCmd() *cobra.Command

func NewGaussdbCmd

func NewGaussdbCmd() *cobra.Command

func NewMongoDBCmd

func NewMongoDBCmd() *cobra.Command

func NewMySQLCmd

func NewMySQLCmd() *cobra.Command

func NewPostgreSQLCmd

func NewPostgreSQLCmd() *cobra.Command

func NewRedisCmd

func NewRedisCmd() *cobra.Command

Types

type ElasticsearchClient

type ElasticsearchClient struct {
	Host               string
	Port               int
	Username           string
	Password           string
	Scheme             string
	Path               string
	InsecureSkipVerify bool
	// contains filtered or unexported fields
}

func (*ElasticsearchClient) CheckConnection

func (c *ElasticsearchClient) CheckConnection() error

func (*ElasticsearchClient) InitClient

func (c *ElasticsearchClient) InitClient() error

type GaussDBClient

type GaussDBClient struct {
	Host     string
	Port     int
	Username string
	Password string
	// contains filtered or unexported fields
}

func (*GaussDBClient) CheckConnection

func (c *GaussDBClient) CheckConnection() error

func (*GaussDBClient) Close

func (c *GaussDBClient) Close() error

func (*GaussDBClient) CreateDatabase

func (c *GaussDBClient) CreateDatabase(name string) error

func (*GaussDBClient) DropDatabase

func (c *GaussDBClient) DropDatabase(name string) error

func (*GaussDBClient) Exec

func (c *GaussDBClient) Exec(query string) error

func (*GaussDBClient) InitClient

func (c *GaussDBClient) InitClient() error

type MongoDBClient

type MongoDBClient struct {
	Host     string
	Port     int
	Username string
	Password string
	// contains filtered or unexported fields
}

func (*MongoDBClient) CheckConnection

func (c *MongoDBClient) CheckConnection() error

func (*MongoDBClient) Close

func (c *MongoDBClient) Close() error

func (*MongoDBClient) CreateDatabase

func (c *MongoDBClient) CreateDatabase(name string) error

func (*MongoDBClient) DropDatabase

func (c *MongoDBClient) DropDatabase(name string) error

func (*MongoDBClient) InitClient

func (c *MongoDBClient) InitClient() error

type MySQLClient

type MySQLClient struct {
	Host     string
	Port     int
	Username string
	Password string
	// contains filtered or unexported fields
}

func (*MySQLClient) CheckConnection

func (c *MySQLClient) CheckConnection() error

func (*MySQLClient) Close

func (c *MySQLClient) Close() error

func (*MySQLClient) CreateDatabase

func (c *MySQLClient) CreateDatabase(name string) error

func (*MySQLClient) DropDatabase

func (c *MySQLClient) DropDatabase(name string) error

func (*MySQLClient) Exec

func (c *MySQLClient) Exec(query string) error

func (*MySQLClient) InitClient

func (c *MySQLClient) InitClient() error

type PostgreSQLClient

type PostgreSQLClient struct {
	Host     string
	Port     int
	Username string
	Password string
	// contains filtered or unexported fields
}

func (*PostgreSQLClient) CheckConnection

func (c *PostgreSQLClient) CheckConnection() error

func (*PostgreSQLClient) Close

func (c *PostgreSQLClient) Close() error

func (*PostgreSQLClient) CreateDatabase

func (c *PostgreSQLClient) CreateDatabase(name string) error

func (*PostgreSQLClient) DropDatabase

func (c *PostgreSQLClient) DropDatabase(name string) error

func (*PostgreSQLClient) Exec

func (c *PostgreSQLClient) Exec(query string) error

func (*PostgreSQLClient) InitClient

func (c *PostgreSQLClient) InitClient() error

type RedisClient

type RedisClient struct {
	Host     string
	Port     int
	Username string
	Password string
	// contains filtered or unexported fields
}

func (*RedisClient) CheckConnection

func (c *RedisClient) CheckConnection() error

func (*RedisClient) Close

func (c *RedisClient) Close() error

func (*RedisClient) InitClient

func (c *RedisClient) InitClient() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL