Versions in this module Expand all Collapse all v0 v0.1.0 Mar 30, 2026 Changes in this version + func HasAnyFeature(features, feature Feature) bool + func HasFeature(features, feature Feature) bool + type BaseDialect struct + func (d *BaseDialect) DataType(columnType schema.ColumnType) string + func (d *BaseDialect) DefaultValue(value interface{}) string + func (d *BaseDialect) Features() Feature + func (d *BaseDialect) UpsertClause(table string, conflictCols []string, updateCols []string) string + type Dialect interface + AutoIncrementKeyword func() string + BooleanLiteral func(v bool) string + CurrentTimestamp func() string + DataType func(columnType schema.ColumnType) string + DefaultValue func(value interface{}) string + Features func() Feature + LimitOffset func(limit, offset int) string + Name func() string + Placeholder func(n int) string + QuoteIdentifier func(name string) string + UpsertClause func(table string, conflictCols []string, updateCols []string) string + func GetDialect(name string) (Dialect, error) + type Feature uint64 + const FeatureCTE + const FeatureDefaultPlaceholder + const FeatureDeleteReturning + const FeatureInsertReturning + const FeatureOffset + const FeatureSavepoint + const FeatureUpdateReturning + const FeatureUpsert + type MySQLDialect struct + func (d *MySQLDialect) AutoIncrementKeyword() string + func (d *MySQLDialect) BooleanLiteral(v bool) string + func (d *MySQLDialect) CurrentTimestamp() string + func (d *MySQLDialect) DataType(columnType schema.ColumnType) string + func (d *MySQLDialect) DefaultValue(value interface{}) string + func (d *MySQLDialect) Features() Feature + func (d *MySQLDialect) LimitOffset(limit, offset int) string + func (d *MySQLDialect) Name() string + func (d *MySQLDialect) Placeholder(n int) string + func (d *MySQLDialect) QuoteIdentifier(name string) string + func (d *MySQLDialect) UpsertClause(table string, conflictCols []string, updateCols []string) string + type PostgresDialect struct + func (d *PostgresDialect) AutoIncrementKeyword() string + func (d *PostgresDialect) BooleanLiteral(v bool) string + func (d *PostgresDialect) CurrentTimestamp() string + func (d *PostgresDialect) DataType(columnType schema.ColumnType) string + func (d *PostgresDialect) DefaultValue(value interface{}) string + func (d *PostgresDialect) Features() Feature + func (d *PostgresDialect) LimitOffset(limit, offset int) string + func (d *PostgresDialect) Name() string + func (d *PostgresDialect) Placeholder(n int) string + func (d *PostgresDialect) QuoteIdentifier(name string) string + func (d *PostgresDialect) UpsertClause(table string, conflictCols []string, updateCols []string) string + type SQLiteDialect struct + func (d *SQLiteDialect) AutoIncrementKeyword() string + func (d *SQLiteDialect) BooleanLiteral(v bool) string + func (d *SQLiteDialect) CurrentTimestamp() string + func (d *SQLiteDialect) DataType(columnType schema.ColumnType) string + func (d *SQLiteDialect) DefaultValue(value interface{}) string + func (d *SQLiteDialect) Features() Feature + func (d *SQLiteDialect) LimitOffset(limit, offset int) string + func (d *SQLiteDialect) Name() string + func (d *SQLiteDialect) Placeholder(n int) string + func (d *SQLiteDialect) QuoteIdentifier(name string) string + func (d *SQLiteDialect) UpsertClause(table string, conflictCols []string, updateCols []string) string