Unified Storage: in SQL template, also handle output data, improve API, examples and docs (#87560)
* preview of work so far * stylistic improvements * fix linters * remove golden tests, they may cause the system to be too rigid to changes * remove unnecessary code for golden tests * remove white space mangling in Execute * also handle output data, improve API, examples and docs * add helper methods * fix interface
This commit is contained in:
@@ -6,7 +6,9 @@ import (
|
||||
)
|
||||
|
||||
// PostgreSQL is an implementation of Dialect for the PostgreSQL DMBS.
|
||||
var PostgreSQL postgresql
|
||||
var PostgreSQL = postgresql{
|
||||
rowLockingClauseAll: true,
|
||||
}
|
||||
|
||||
var _ Dialect = PostgreSQL
|
||||
|
||||
@@ -17,6 +19,7 @@ var (
|
||||
|
||||
type postgresql struct {
|
||||
standardIdent
|
||||
rowLockingClauseAll
|
||||
}
|
||||
|
||||
func (p postgresql) Ident(s string) (string, error) {
|
||||
@@ -28,7 +31,3 @@ func (p postgresql) Ident(s string) (string, error) {
|
||||
|
||||
return p.standardIdent.Ident(s)
|
||||
}
|
||||
|
||||
func (postgresql) SelectFor(s ...string) (string, error) {
|
||||
return rowLockingClauseAll(true).SelectFor(s...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user