Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
Driver wraps sql.DB with a dialect.
func (*Driver) Transaction ¶
Transaction executes fn within a transaction.
type MySQLDialect ¶
type MySQLDialect struct{}
MySQLDialect implements Dialect for MySQL.
func (MySQLDialect) Placeholder ¶
func (d MySQLDialect) Placeholder(_ int) string
func (MySQLDialect) QuoteIdent ¶
func (d MySQLDialect) QuoteIdent(ident string) string
type PostgresDialect ¶ added in v0.1.0
type PostgresDialect struct{}
PostgresDialect implements Dialect for PostgreSQL.
func (PostgresDialect) Placeholder ¶ added in v0.1.0
func (d PostgresDialect) Placeholder(n int) string
func (PostgresDialect) QuoteIdent ¶ added in v0.1.0
func (d PostgresDialect) QuoteIdent(ident string) string
Click to show internal directories.
Click to hide internal directories.