Documentation ¶
Index ¶
- type DbAccount
- type DbSync
- func (a *DbSync) Add() (interface{}, error)
- func (a *DbSync) Edit(mw func(db.Result) db.Result, args ...interface{}) error
- func (a *DbSync) HidePassword(dsn string) string
- func (a *DbSync) ParseDSN(dsn string) (user string, pwd string, host string, dbName string)
- func (a *DbSync) ToDSN(user, pwd, host, db string) string
- func (a *DbSync) ToDSNFromAccount(acc *dbschema.NgingDbAccount) string
- type DbSyncLog
- type DbSyncWithAccount
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DbAccount ¶
type DbAccount struct {
*dbschema.NgingDbAccount
}
func NewDbAccount ¶
func (*DbAccount) SetOptions ¶
type DbSync ¶
type DbSync struct {
*dbschema.NgingDbSync
}
func (*DbSync) HidePassword ¶
func (*DbSync) ToDSNFromAccount ¶
func (a *DbSync) ToDSNFromAccount(acc *dbschema.NgingDbAccount) string
type DbSyncWithAccount ¶
type DbSyncWithAccount struct { *dbschema.NgingDbSync SrcAccount *dbschema.NgingDbAccount `db:"-,relation=id:source_account_id"` DstAccount *dbschema.NgingDbAccount `db:"-,relation=id:destination_account_id"` }
Click to show internal directories.
Click to hide internal directories.