Cleanup parser statements, add delete and insert statement, add TASKS.md for tracking tasks
This commit is contained in:
15
sql/parseDeleteStatement.go
Normal file
15
sql/parseDeleteStatement.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package sql
|
||||
|
||||
func (p *Parser) parseDelete() (*DeleteStatement, error) {
|
||||
if !p.expectSequence(FROM, IDENT) {
|
||||
return nil, p.unexpectedToken(INTO)
|
||||
}
|
||||
|
||||
res := DeleteStatement{}
|
||||
|
||||
_, _, res.Table = p.rescan()
|
||||
|
||||
p.consumeUntilOne(50, EOF, SEMI)
|
||||
|
||||
return &res, nil
|
||||
}
|
||||
Reference in New Issue
Block a user