Add LOCK table support.
This commit is contained in:
parent
dd9b815dbb
commit
c9561ecc37
8 changed files with 142 additions and 116 deletions
|
|
@ -44,6 +44,8 @@ type WritableTable interface {
|
|||
INSERT(columns ...Column) InsertStatement
|
||||
UPDATE(columns ...Column) UpdateStatement
|
||||
DELETE() DeleteStatement
|
||||
|
||||
LOCK() lockStatement
|
||||
}
|
||||
|
||||
// Defines a physical tableName in the database that is both readable and writable.
|
||||
|
|
@ -172,6 +174,10 @@ func (t *Table) DELETE() DeleteStatement {
|
|||
return newDeleteStatement(t)
|
||||
}
|
||||
|
||||
func (t *Table) LOCK() lockStatement {
|
||||
return LOCK(t)
|
||||
}
|
||||
|
||||
type joinType int
|
||||
|
||||
const (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue