tools

package
v0.0.0-...-2ff42f3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPGDatabase = "postgres"

Functions

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 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