Documentation ¶
Index ¶
- Variables
- func GenKey(driver string, username string, host string, database string, accountID uint) string
- func GetAll() map[string]*DriverInfo
- func Has(key string) bool
- func Register(key string, name string, constructor func() Driver)
- func Unregister(key string)
- type AuthAccounts
- type BaseDriver
- func (m *BaseDriver) AddResults(rs ...result.Resulter) Driver
- func (m *BaseDriver) Analysis() error
- func (m *BaseDriver) CheckErr(err error) interface{}
- func (m *BaseDriver) CreateData() error
- func (m *BaseDriver) CreateDb() error
- func (m *BaseDriver) CreateTable() error
- func (m *BaseDriver) EnableFlashSession(on ...bool) Driver
- func (m *BaseDriver) Export() error
- func (m *BaseDriver) FlashSession() bool
- func (m *BaseDriver) Foreign() error
- func (m *BaseDriver) GenURL(op string, args ...string) string
- func (m *BaseDriver) Goto(rets ...string) error
- func (m *BaseDriver) Import() error
- func (m *BaseDriver) Indexes() error
- func (m *BaseDriver) Info() error
- func (m *BaseDriver) Init(ctx echo.Context, auth *DbAuth)
- func (m *BaseDriver) IsSupported(operation string) bool
- func (m *BaseDriver) ListData() error
- func (m *BaseDriver) ListDb() error
- func (m *BaseDriver) ListTable() error
- func (m *BaseDriver) Login() error
- func (m *BaseDriver) Logined() bool
- func (m *BaseDriver) Logout() error
- func (m *BaseDriver) ModifyDb() error
- func (m *BaseDriver) ModifyTable() error
- func (m *BaseDriver) Name() string
- func (m *BaseDriver) Privileges() error
- func (m *BaseDriver) ProcessList() error
- func (m *BaseDriver) Results() []result.Resulter
- func (m *BaseDriver) RunCommand() error
- func (m *BaseDriver) SaveResults() Driver
- func (m *BaseDriver) SavedResults() interface{}
- func (m *BaseDriver) SetFail(msg string)
- func (m *BaseDriver) SetOk(msg string)
- func (m *BaseDriver) SetResults(rs ...result.Resulter) Driver
- func (m *BaseDriver) SetURLGenerator(fn func(string, ...string) string) Driver
- func (m *BaseDriver) Trigger() error
- func (m *BaseDriver) ViewTable() error
- type DbAuth
- type Driver
- type DriverInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultDriver = &BaseDriver{}
)
Functions ¶
func GetAll ¶
func GetAll() map[string]*DriverInfo
func Unregister ¶
func Unregister(key string)
Types ¶
type AuthAccounts ¶
func (*AuthAccounts) Add ¶
func (a *AuthAccounts) Add(account *DbAuth) *AuthAccounts
func (*AuthAccounts) Delete ¶
func (a *AuthAccounts) Delete(account *DbAuth)
func (*AuthAccounts) DeleteByKey ¶
func (a *AuthAccounts) DeleteByKey(key string)
func (AuthAccounts) Get ¶
func (a AuthAccounts) Get(key string) *DbAuth
type BaseDriver ¶
func NewBaseDriver ¶
func NewBaseDriver() *BaseDriver
func (*BaseDriver) AddResults ¶
func (m *BaseDriver) AddResults(rs ...result.Resulter) Driver
func (*BaseDriver) Analysis ¶
func (m *BaseDriver) Analysis() error
func (*BaseDriver) CheckErr ¶
func (m *BaseDriver) CheckErr(err error) interface{}
func (*BaseDriver) CreateData ¶
func (m *BaseDriver) CreateData() error
func (*BaseDriver) CreateDb ¶
func (m *BaseDriver) CreateDb() error
func (*BaseDriver) CreateTable ¶
func (m *BaseDriver) CreateTable() error
func (*BaseDriver) EnableFlashSession ¶
func (m *BaseDriver) EnableFlashSession(on ...bool) Driver
func (*BaseDriver) Export ¶
func (m *BaseDriver) Export() error
func (*BaseDriver) FlashSession ¶
func (m *BaseDriver) FlashSession() bool
func (*BaseDriver) Foreign ¶
func (m *BaseDriver) Foreign() error
func (*BaseDriver) Goto ¶
func (m *BaseDriver) Goto(rets ...string) error
func (*BaseDriver) Import ¶
func (m *BaseDriver) Import() error
func (*BaseDriver) Indexes ¶
func (m *BaseDriver) Indexes() error
func (*BaseDriver) Info ¶
func (m *BaseDriver) Info() error
func (*BaseDriver) IsSupported ¶
func (m *BaseDriver) IsSupported(operation string) bool
func (*BaseDriver) ListData ¶
func (m *BaseDriver) ListData() error
func (*BaseDriver) ListDb ¶
func (m *BaseDriver) ListDb() error
func (*BaseDriver) ListTable ¶
func (m *BaseDriver) ListTable() error
func (*BaseDriver) Login ¶
func (m *BaseDriver) Login() error
func (*BaseDriver) Logined ¶ added in v1.4.7
func (m *BaseDriver) Logined() bool
func (*BaseDriver) Logout ¶
func (m *BaseDriver) Logout() error
func (*BaseDriver) ModifyDb ¶
func (m *BaseDriver) ModifyDb() error
func (*BaseDriver) ModifyTable ¶
func (m *BaseDriver) ModifyTable() error
func (*BaseDriver) Name ¶
func (m *BaseDriver) Name() string
func (*BaseDriver) Privileges ¶
func (m *BaseDriver) Privileges() error
func (*BaseDriver) ProcessList ¶
func (m *BaseDriver) ProcessList() error
func (*BaseDriver) Results ¶
func (m *BaseDriver) Results() []result.Resulter
func (*BaseDriver) RunCommand ¶
func (m *BaseDriver) RunCommand() error
func (*BaseDriver) SaveResults ¶
func (m *BaseDriver) SaveResults() Driver
func (*BaseDriver) SavedResults ¶
func (m *BaseDriver) SavedResults() interface{}
func (*BaseDriver) SetFail ¶
func (m *BaseDriver) SetFail(msg string)
func (*BaseDriver) SetOk ¶
func (m *BaseDriver) SetOk(msg string)
func (*BaseDriver) SetResults ¶
func (m *BaseDriver) SetResults(rs ...result.Resulter) Driver
func (*BaseDriver) SetURLGenerator ¶
func (m *BaseDriver) SetURLGenerator(fn func(string, ...string) string) Driver
func (*BaseDriver) Trigger ¶
func (m *BaseDriver) Trigger() error
func (*BaseDriver) ViewTable ¶
func (m *BaseDriver) ViewTable() error
type DbAuth ¶
type Driver ¶
type Driver interface { Init(echo.Context, *DbAuth) SetURLGenerator(func(string, ...string) string) Driver GenURL(string, ...string) string Results() []result.Resulter AddResults(...result.Resulter) Driver SetResults(...result.Resulter) Driver EnableFlashSession(on ...bool) Driver FlashSession() bool SaveResults() Driver SavedResults() interface{} IsSupported(string) bool Login() error Logout() error ProcessList() error Privileges() error Info() error CreateDb() error ModifyDb() error ListDb() error CreateTable() error ModifyTable() error ListTable() error ViewTable() error ListData() error CreateData() error Indexes() error Foreign() error Trigger() error RunCommand() error Import() error Export() error Analysis() error Name() string Logined() bool }
type DriverInfo ¶ added in v1.4.3
type DriverInfo struct {
// contains filtered or unexported fields
}
func Get ¶
func Get(key string) (*DriverInfo, bool)
func GetForce ¶
func GetForce(key string) *DriverInfo
func (DriverInfo) Name ¶ added in v1.4.3
func (d DriverInfo) Name() string
func (DriverInfo) New ¶ added in v1.4.3
func (d DriverInfo) New() Driver
Click to show internal directories.
Click to hide internal directories.