MySQL cast expressions.

This commit is contained in:
go-jet 2019-07-31 18:43:54 +02:00
parent fcce8d4262
commit 53dbcd9bfc
41 changed files with 1136 additions and 684 deletions

View file

@ -7,14 +7,6 @@ import (
"github.com/go-jet/jet/execution"
)
// Select statements lock types
var (
UPDATE = newLock("UPDATE")
NO_KEY_UPDATE = newLock("NO KEY UPDATE")
SHARE = newLock("SHARE")
KEY_SHARE = newLock("KEY SHARE")
)
// SelectStatement is interface for SQL SELECT statements
type SelectStatement interface {
Statement
@ -327,7 +319,7 @@ type selectLockImpl struct {
noWait, skipLocked bool
}
func newLock(name string) func() SelectLock {
func NewSelectLock(name string) func() SelectLock {
return func() SelectLock {
return newSelectLock(name)
}