Documentation
¶
Index ¶
- type BaseFormatter
- type MySQLFormatter
- func (f *MySQLFormatter) MaxLength() int
- func (f *MySQLFormatter) PrefixName(prefix string, name string) string
- func (f *MySQLFormatter) QuoteEntity(name string) string
- func (f *MySQLFormatter) QuoteValue(value any) string
- func (f *MySQLFormatter) ScopeEntity(scope string, name string) string
- func (f *MySQLFormatter) TrimSpaces(query string) string
- type PostgreSQLFormatter
- func (f *PostgreSQLFormatter) MaxLength() int
- func (f *PostgreSQLFormatter) PrefixName(prefix string, name string) string
- func (f *PostgreSQLFormatter) QuoteEntity(name string) string
- func (f *PostgreSQLFormatter) QuoteValue(value any) string
- func (f *PostgreSQLFormatter) ScopeEntity(scope string, name string) string
- func (f *PostgreSQLFormatter) TrimSpaces(query string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseFormatter ¶
type MySQLFormatter ¶
type MySQLFormatter struct{}
func (*MySQLFormatter) MaxLength ¶
func (f *MySQLFormatter) MaxLength() int
func (*MySQLFormatter) PrefixName ¶
func (f *MySQLFormatter) PrefixName(prefix string, name string) string
func (*MySQLFormatter) QuoteEntity ¶
func (f *MySQLFormatter) QuoteEntity(name string) string
func (*MySQLFormatter) QuoteValue ¶
func (f *MySQLFormatter) QuoteValue(value any) string
func (*MySQLFormatter) ScopeEntity ¶
func (f *MySQLFormatter) ScopeEntity(scope string, name string) string
func (*MySQLFormatter) TrimSpaces ¶
func (f *MySQLFormatter) TrimSpaces(query string) string
type PostgreSQLFormatter ¶
type PostgreSQLFormatter struct{}
func (*PostgreSQLFormatter) MaxLength ¶
func (f *PostgreSQLFormatter) MaxLength() int
func (*PostgreSQLFormatter) PrefixName ¶
func (f *PostgreSQLFormatter) PrefixName(prefix string, name string) string
func (*PostgreSQLFormatter) QuoteEntity ¶
func (f *PostgreSQLFormatter) QuoteEntity(name string) string
func (*PostgreSQLFormatter) QuoteValue ¶
func (f *PostgreSQLFormatter) QuoteValue(value any) string
func (*PostgreSQLFormatter) ScopeEntity ¶
func (f *PostgreSQLFormatter) ScopeEntity(scope string, name string) string
func (*PostgreSQLFormatter) TrimSpaces ¶
func (f *PostgreSQLFormatter) TrimSpaces(query string) string
Click to show internal directories.
Click to hide internal directories.