Documentation ¶
Index ¶
- Variables
- func NewMongoDBCmd() *cobra.Command
- func NewMySQLCmd() *cobra.Command
- func NewPostgreSQLCmd() *cobra.Command
- func NewRedisCmd() *cobra.Command
- type MongoDBClient
- type MySQLClient
- type PostgreSQLClient
- func (c *PostgreSQLClient) CheckConnection() error
- func (c *PostgreSQLClient) Close() error
- func (c *PostgreSQLClient) CreateDatabase(name string) error
- func (c *PostgreSQLClient) DropDatabase(name string) error
- func (c *PostgreSQLClient) Exec(query string) error
- func (c *PostgreSQLClient) InitClient() error
- type RedisClient
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultPGDatabase = "postgres"
Functions ¶
func NewMongoDBCmd ¶
func NewMySQLCmd ¶
func NewPostgreSQLCmd ¶
func NewRedisCmd ¶
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
Click to show internal directories.
Click to hide internal directories.