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,16 @@
package sqltemplate
// SQLite is an implementation of Dialect for the SQLite DMBS.
var SQLite sqlite
var _ Dialect = SQLite
type sqlite struct {
// See:
// https://www.sqlite.org/lang_keywords.html
standardIdent
}
func (sqlite) SelectFor(s ...string) (string, error) {
return rowLockingClauseAll(false).SelectFor(s...)
}