Documentation
¶
Index ¶
- func MysqlCmd(cmd string) (string, error)
- func PostgresqlCmd(cmd string, dbName *string) (string, error)
- type DatabaseCmdRepo
- func (repo DatabaseCmdRepo) Create(dbName valueObject.DatabaseName) error
- func (repo DatabaseCmdRepo) CreateUser(createDatabaseUser dto.CreateDatabaseUser) error
- func (repo DatabaseCmdRepo) Delete(dbName valueObject.DatabaseName) error
- func (repo DatabaseCmdRepo) DeleteUser(dbName valueObject.DatabaseName, dbUser valueObject.DatabaseUsername) error
- type DatabaseQueryRepo
- type MysqlDatabaseCmdRepo
- func (repo MysqlDatabaseCmdRepo) Create(dbName valueObject.DatabaseName) error
- func (repo MysqlDatabaseCmdRepo) CreateUser(createDatabaseUser dto.CreateDatabaseUser) error
- func (repo MysqlDatabaseCmdRepo) Delete(dbName valueObject.DatabaseName) error
- func (repo MysqlDatabaseCmdRepo) DeleteUser(dbName valueObject.DatabaseName, dbUser valueObject.DatabaseUsername) error
- type MysqlDatabaseQueryRepo
- type PostgresDatabaseCmdRepo
- func (repo PostgresDatabaseCmdRepo) Create(dbName valueObject.DatabaseName) error
- func (repo PostgresDatabaseCmdRepo) CreateUser(createDatabaseUser dto.CreateDatabaseUser) error
- func (repo PostgresDatabaseCmdRepo) Delete(dbName valueObject.DatabaseName) error
- func (repo PostgresDatabaseCmdRepo) DeleteUser(dbName valueObject.DatabaseName, dbUser valueObject.DatabaseUsername) error
- type PostgresDatabaseQueryRepo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DatabaseCmdRepo ¶
type DatabaseCmdRepo struct {
// contains filtered or unexported fields
}
func NewDatabaseCmdRepo ¶
func NewDatabaseCmdRepo( dbType valueObject.DatabaseType, ) *DatabaseCmdRepo
func (DatabaseCmdRepo) Create ¶
func (repo DatabaseCmdRepo) Create(dbName valueObject.DatabaseName) error
func (DatabaseCmdRepo) CreateUser ¶
func (repo DatabaseCmdRepo) CreateUser(createDatabaseUser dto.CreateDatabaseUser) error
func (DatabaseCmdRepo) Delete ¶
func (repo DatabaseCmdRepo) Delete(dbName valueObject.DatabaseName) error
func (DatabaseCmdRepo) DeleteUser ¶
func (repo DatabaseCmdRepo) DeleteUser( dbName valueObject.DatabaseName, dbUser valueObject.DatabaseUsername, ) error
type DatabaseQueryRepo ¶
type DatabaseQueryRepo struct {
// contains filtered or unexported fields
}
func NewDatabaseQueryRepo ¶
func NewDatabaseQueryRepo( dbType valueObject.DatabaseType, ) *DatabaseQueryRepo
func (DatabaseQueryRepo) ReadByName ¶
func (repo DatabaseQueryRepo) ReadByName( name valueObject.DatabaseName, ) (entity.Database, error)
type MysqlDatabaseCmdRepo ¶
type MysqlDatabaseCmdRepo struct {
}
func (MysqlDatabaseCmdRepo) Create ¶
func (repo MysqlDatabaseCmdRepo) Create(dbName valueObject.DatabaseName) error
func (MysqlDatabaseCmdRepo) CreateUser ¶
func (repo MysqlDatabaseCmdRepo) CreateUser(createDatabaseUser dto.CreateDatabaseUser) error
func (MysqlDatabaseCmdRepo) Delete ¶
func (repo MysqlDatabaseCmdRepo) Delete(dbName valueObject.DatabaseName) error
func (MysqlDatabaseCmdRepo) DeleteUser ¶
func (repo MysqlDatabaseCmdRepo) DeleteUser( dbName valueObject.DatabaseName, dbUser valueObject.DatabaseUsername, ) error
type MysqlDatabaseQueryRepo ¶
type MysqlDatabaseQueryRepo struct {
}
type PostgresDatabaseCmdRepo ¶
type PostgresDatabaseCmdRepo struct {
}
func (PostgresDatabaseCmdRepo) Create ¶
func (repo PostgresDatabaseCmdRepo) Create(dbName valueObject.DatabaseName) error
func (PostgresDatabaseCmdRepo) CreateUser ¶
func (repo PostgresDatabaseCmdRepo) CreateUser(createDatabaseUser dto.CreateDatabaseUser) error
func (PostgresDatabaseCmdRepo) Delete ¶
func (repo PostgresDatabaseCmdRepo) Delete(dbName valueObject.DatabaseName) error
func (PostgresDatabaseCmdRepo) DeleteUser ¶
func (repo PostgresDatabaseCmdRepo) DeleteUser( dbName valueObject.DatabaseName, dbUser valueObject.DatabaseUsername, ) error
type PostgresDatabaseQueryRepo ¶
type PostgresDatabaseQueryRepo struct {
}
func (PostgresDatabaseQueryRepo) Read ¶
func (repo PostgresDatabaseQueryRepo) Read() ([]entity.Database, error)
func (PostgresDatabaseQueryRepo) ReadDatabaseNamesByUser ¶
func (repo PostgresDatabaseQueryRepo) ReadDatabaseNamesByUser( dbUser valueObject.DatabaseUsername, ) ([]valueObject.DatabaseName, error)
func (PostgresDatabaseQueryRepo) UserExists ¶
func (repo PostgresDatabaseQueryRepo) UserExists( dbUser valueObject.DatabaseUsername, ) bool
Click to show internal directories.
Click to hide internal directories.