devops tenant api

Signed-off-by: runzexia <runzexia@yunify.com>
This commit is contained in:
runzexia
2019-04-23 20:47:47 +08:00
committed by zryfish
parent 78f2dab18c
commit 5a6f51d775
143 changed files with 19533 additions and 341 deletions

24
vendor/github.com/gocraft/dbr/order.go generated vendored Normal file
View File

@@ -0,0 +1,24 @@
package dbr
type direction bool
// orderby directions
// most databases by default use asc
const (
asc direction = false
desc = true
)
func order(column string, dir direction) Builder {
return BuildFunc(func(d Dialect, buf Buffer) error {
// FIXME: no quote ident
buf.WriteString(column)
switch dir {
case asc:
buf.WriteString(" ASC")
case desc:
buf.WriteString(" DESC")
}
return nil
})
}