MCPcopy Create free account
hub / github.com/araddon/qlbridge / parseInto

Method parseInto

rel/parse_sql.go:1302–1317  ·  view source on GitHub ↗
(req *SqlSelect)

Source from the content-addressed store, hash-verified

1300}
1301
1302func (m *Sqlbridge) parseInto(req *SqlSelect) error {
1303
1304 if m.Cur().T != lex.TokenInto {
1305 return nil
1306 }
1307 m.Next() // Consume Into token
1308 if m.Cur().T != lex.TokenTable {
1309 return m.ErrMsg("expected table")
1310 }
1311 if strings.ToLower(m.Cur().V) == "FROM" {
1312 return m.ErrMsg("expected table")
1313 }
1314 req.Into = &SqlInto{Table: m.Cur().V}
1315 m.Next()
1316 return nil
1317}
1318
1319func (m *Sqlbridge) parseWhereSubSelect(req *SqlSelect) error {
1320

Callers 1

parseSqlSelectMethod · 0.95

Calls 3

CurMethod · 0.65
NextMethod · 0.65
ErrMsgMethod · 0.65

Tested by

no test coverage detected