Unified Storage: Add SQL template package (#87524)
* added sqltemplate package * addded example * fix linting issues * improve code readability * fix documentation
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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...)
|
||||
}
|
||||
Reference in New Issue
Block a user