Documentation
¶
Index ¶
- type ColumnInfo
- type Proxy
- func (p *Proxy) EnableTransparentMode(duration time.Duration)
- func (p *Proxy) GetDatabaseName() string
- func (p *Proxy) LoadSchema(schemaFile string) error
- func (p *Proxy) LoadSchemaFromBytes(data []byte) error
- func (p *Proxy) SetDatabaseName(name string)
- func (p *Proxy) Start(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColumnInfo ¶
type ColumnInfo struct {
Field string `json:"Field"`
Type string `json:"Type"`
Collation sql.NullString `json:"Collation"`
Null string `json:"Null"`
Key string `json:"Key"`
Default sql.NullString `json:"Default"`
Extra string `json:"Extra"`
Privileges string `json:"Privileges"`
Comment string `json:"Comment"`
}
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
func (*Proxy) EnableTransparentMode ¶
EnableTransparentMode enables transparent passthrough mode for a specified duration
func (*Proxy) GetDatabaseName ¶ added in v1.4.0
GetDatabaseName returns the current database name
func (*Proxy) LoadSchema ¶
func (*Proxy) LoadSchemaFromBytes ¶ added in v1.4.1
LoadSchemaFromBytes unmarshals schema directly from bytes without file I/O.
func (*Proxy) SetDatabaseName ¶ added in v1.4.0
SetDatabaseName sets the database name for schema responses
Click to show internal directories.
Click to hide internal directories.