Documentation
¶
Index ¶
- type Xun
- func (x *Xun) Close() error
- func (x *Xun) GetMetaInfo() types.MetaInfo
- func (x *Xun) ID() string
- func (x *Xun) Is(typ int) bool
- func (x *Xun) Query() (query.Query, error)
- func (x *Xun) Register(file string, id string, dsl []byte) error
- func (x *Xun) Schema() (schema.Schema, error)
- func (x *Xun) Setting() map[string]interface{}
- type XunHost
- type XunOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Xun ¶
type Xun struct {
Manager *capsule.Manager `json:"-"`
Name string `json:"name,omitempty"`
Driver string `json:"type"`
Version string `json:"version,omitempty"`
Options XunOptions `json:"options"`
types.MetaInfo
types.ConnectorMetadata
// contains filtered or unexported fields
}
Xun the xun database ORM
func (*Xun) GetMetaInfo ¶ added in v1.0.0
GetMetaInfo returns the meta information
type XunHost ¶
type XunHost struct {
File string `json:"file,omitempty"`
Host string `json:"host,omitempty"`
Port string `json:"port,omitempty"`
User string `json:"user,omitempty"`
Pass string `json:"pass,omitempty"`
Primary bool `json:"primary,omitempty"`
// contains filtered or unexported fields
}
XunHost the connection host
type XunOptions ¶
type XunOptions struct {
DB string `json:"db"`
TablePrefix string `json:"prefix"`
Collation string `json:"collation,omitempty"`
Charset string `json:"charset,omitempty"`
ParseTime bool `json:"parseTime,omitempty"`
Timeout int `json:"timeout,omitempty"`
File string `json:"file,omitempty"`
Hosts []XunHost `json:"hosts"`
}
XunOptions the connetion options
Click to show internal directories.
Click to hide internal directories.