acf17c7fb1
* added sqltemplate package * addded example * fix linting issues * improve code readability * fix documentation
19 lines
460 B
Go
19 lines
460 B
Go
package sqltemplate
|
|
|
|
// MySQL is an implementation of Dialect for the MySQL DMBS. It relies on having
|
|
// ANSI_QUOTES SQL Mode enabled. For more information about ANSI_QUOTES and SQL
|
|
// Modes see:
|
|
//
|
|
// https://dev.mysql.com/doc/refman/8.4/en/sql-mode.html#sqlmode_ansi_quotes
|
|
var MySQL mysql
|
|
|
|
var _ Dialect = MySQL
|
|
|
|
type mysql struct {
|
|
standardIdent
|
|
}
|
|
|
|
func (mysql) SelectFor(s ...string) (string, error) {
|
|
return rowLockingClauseAll(true).SelectFor(s...)
|
|
}
|