Add LOCK table support.

This commit is contained in:
zer0sub 2019-05-07 13:44:30 +02:00
parent dd9b815dbb
commit c9561ecc37
8 changed files with 142 additions and 116 deletions

View file

@ -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 (