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:
Diego Augusto Molina
2024-05-08 17:58:18 -03:00
committed by GitHub
parent 4b38253b20
commit acf17c7fb1
11 changed files with 535 additions and 0 deletions
@@ -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...)
}