Documentation
¶
Index ¶
- Constants
- type MySQL
- func (m *MySQL) Capabilities() []database.Capabilities
- func (m *MySQL) ConnectionStringTemplate() *template.Template
- func (m *MySQL) GetPrefab(r database.Request) (string, []any, error)
- func (m *MySQL) GetTemplate(queryType database.RequestType) string
- func (m *MySQL) IncreamentPlaceholder() string
- func (m *MySQL) Name() string
- func (m *MySQL) Quote(value string) string
- func (m *MySQL) QuoteRune() rune
- func (m *MySQL) RenderCurrentTimestamp() string
- func (m *MySQL) RenderPlaceholder(index int) string
- func (m *MySQL) RenderTypeCast() string
- func (m *MySQL) RenderValue(value any) string
- func (m *MySQL) ResolveType(dbType string, value []byte) (any, error)
Constants ¶
View Source
const ( PrefabDatabases = "SHOW DATABASES" PrefabTables = "SHOW TABLES FROM ?" PrefabColumns = "SHOW COLUMNS FROM ?" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MySQL ¶
type MySQL struct{}
func NewMySQLDriver ¶
func (*MySQL) Capabilities ¶
func (m *MySQL) Capabilities() []database.Capabilities
// Capabilities implements database.Dialect.
func (*MySQL) ConnectionStringTemplate ¶
ConnectionStringTemplate implements database.SQLDialect. user:password@tcp(host:port)/dbname
func (*MySQL) GetTemplate ¶
func (m *MySQL) GetTemplate(queryType database.RequestType) string
GetTemplate implements database.Dialect.
func (*MySQL) IncreamentPlaceholder ¶
IncreamentPlaceholder implements database.Dialect.
func (*MySQL) RenderCurrentTimestamp ¶
RenderCurrentTimestamp implements database.Dialect.
func (*MySQL) RenderPlaceholder ¶
RenderPlaceholder implements database.Dialect.
func (*MySQL) RenderTypeCast ¶
RenderTypeCast implements database.Dialect.
func (*MySQL) RenderValue ¶
RenderValue implements database.Dialect.
Click to show internal directories.
Click to hide internal directories.