Documentation ¶
Index ¶
- type GoSqlProvisioner
- func (e *GoSqlProvisioner) CreateDatabase(databaseName string) error
- func (e *GoSqlProvisioner) CreateUser(databaseName string, username string, password string) error
- func (e *GoSqlProvisioner) DeleteDatabase(databaseName string) error
- func (e *GoSqlProvisioner) DeleteUser(username string) error
- func (e *GoSqlProvisioner) IsDatabaseCreated(databaseName string) (bool, error)
- func (e *GoSqlProvisioner) IsUserCreated(userName string) (bool, error)
- func (e *GoSqlProvisioner) Query(query string, args ...interface{}) (*sql.Rows, error)
- type MySQLProvisioner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoSqlProvisioner ¶
type GoSqlProvisioner struct { Conf config.MySQLConfig Connection *sql.DB // contains filtered or unexported fields }
func (*GoSqlProvisioner) CreateDatabase ¶
func (e *GoSqlProvisioner) CreateDatabase(databaseName string) error
func (*GoSqlProvisioner) CreateUser ¶
func (e *GoSqlProvisioner) CreateUser(databaseName string, username string, password string) error
func (*GoSqlProvisioner) DeleteDatabase ¶
func (e *GoSqlProvisioner) DeleteDatabase(databaseName string) error
func (*GoSqlProvisioner) DeleteUser ¶
func (e *GoSqlProvisioner) DeleteUser(username string) error
func (*GoSqlProvisioner) IsDatabaseCreated ¶
func (e *GoSqlProvisioner) IsDatabaseCreated(databaseName string) (bool, error)
func (*GoSqlProvisioner) IsUserCreated ¶
func (e *GoSqlProvisioner) IsUserCreated(userName string) (bool, error)
type MySQLProvisioner ¶
type MySQLProvisioner interface { IsDatabaseCreated(string) (bool, error) IsUserCreated(string) (bool, error) CreateDatabase(string) error DeleteDatabase(string) error Query(string, ...interface{}) (*sql.Rows, error) CreateUser(string, string, string) error DeleteUser(string) error }
func NewGoSQL ¶
func NewGoSQL(logger lager.Logger, config config.MySQLConfig) MySQLProvisioner
Directories ¶
Path | Synopsis |
---|---|
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
Click to show internal directories.
Click to hide internal directories.