source

package
v0.0.0-...-3f86ab2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KindMysql = "mysql"

	DefaultHost = "localhost"
	DefaultPort = 3306
	DefaultUser = "root"
	// 3 minutes
	DefaultConnMaxLifetime = 60 * 3
	DefaultMaxOpenConns    = 3
	DefaultMaxIdleConns    = 3

	DefaultCharset   = "utf8mb4"
	DefaultParseTime = "True"
	DefaultLoc       = "Local"

	KeywordLimit  = "LIMIT"
	KeywordOffset = "Offset"
)

Variables

This section is empty.

Functions

func NewMysqlSource

func NewMysqlSource(desc desc.Source) (source.Source, error)

Types

type MysqlSourceExtraDescription

type MysqlSourceExtraDescription struct {

	// basic connection information
	Database string
	Host     string
	Port     int
	User     string
	Passwd   string

	// table information
	Charset   string
	ParseTime string
	Loc       string

	// connections setting
	ConnMaxLifetime int
	MaxOpenConns    int
	MaxIdleConns    int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL