Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrDBIsRequired は sqlx.DBを期待するのに、nilが渡された ErrDBIsRequired = errors.New("sqlx.DB is required") // ErrTenantIsRequired is a error type, that raise when expect tenant name as parameter but recieved empty string. ErrTenantIsRequired = errors.New("Tenant is required") )
Functions ¶
This section is empty.
Types ¶
type Apartment ¶
Apartment structure have a implemented of AparmentDB interface
func ProvideApartment ¶
ProvideApartment initialize a Apartment struct and return it
func (*Apartment) TenantExecConn ¶ added in v1.0.2
TenantExecConn open an connection on tenant DB and return a instance of *sqlx.Conn when error is raised, an error must be returned
Click to show internal directories.
Click to hide internal directories.