Documentation
¶
Overview ¶
Package dm implements the storage of Dameng database
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
URL string `json:"url"` // Database URL, including the database address and other database parameters
Username string `json:"username"` // Username
Password string `json:"password"` // Password
}
Config is the DM database configuration
type Dialect ¶
type Dialect struct{}
Dialect represents the database dialect for DM
type Field ¶
type Field struct {
*database.BaseField
database.BaseConfigSetter
}
Field represents a field in a DM database table.
type FieldType ¶
type FieldType struct {
*database.BaseFieldType
// contains filtered or unexported fields
}
FieldType represents the type of a field.
func NewFieldType ¶
func NewFieldType(typ database.ColumnType) *FieldType
NewFieldType creates a new field type.
func (*FieldType) IsSupported ¶
IsSupported Whether it supports parsing
type Scanner ¶
type Scanner struct {
database.BaseScanner
// contains filtered or unexported fields
}
Scanner represents a scanner for reading data from a DM database.
type Source ¶
type Source struct {
*database.BaseSource // Basic data source
// contains filtered or unexported fields
}
Source DM refers to the DM data source
func (*Source) ConnectName ¶
ConnectName is the connection information for the DM data source
func (*Source) DriverName ¶
DriverName is the driver name for gitee.com/chunanyong/dm
type Table ¶
type Table struct {
*database.BaseTable
database.BaseConfigSetter
}
Table represents a DM table.
func NewTable ¶
NewTable creates a new DM table. Note that at this point, the schema parameter in BaseTable refers to the schema name, instance is the database name, and name is the table name.
func (*Table) ShouldOneByOne ¶
ShouldOneByOne specifies whether to retry one operation at a time.
func (*Table) ShouldRetry ¶
ShouldRetry determines whether a retry is necessary.