Documentation
¶
Index ¶
- func MysqlCmd(cmd string) (string, error)
- func PostgresqlCmd(cmd string, dbName *valueObject.DatabaseName) (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 ¶
func PostgresqlCmd ¶
func PostgresqlCmd(cmd string, dbName *valueObject.DatabaseName) (string, error)
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) Read ¶
func (repo DatabaseQueryRepo) Read( requestDto dto.ReadDatabasesRequest, ) (responseDto dto.ReadDatabasesResponse, err error)
func (DatabaseQueryRepo) ReadFirst ¶ added in v0.2.4
func (repo DatabaseQueryRepo) ReadFirst( requestDto dto.ReadDatabasesRequest, ) (database entity.Database, err 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) ReadDatabaseNamesByUser ¶
func (repo PostgresDatabaseQueryRepo) ReadDatabaseNamesByUser( dbUsername valueObject.DatabaseUsername, ) ([]valueObject.DatabaseName, error)
func (PostgresDatabaseQueryRepo) UserExists ¶
func (repo PostgresDatabaseQueryRepo) UserExists(dbUsername valueObject.DatabaseUsername) bool
Click to show internal directories.
Click to hide internal directories.