| 2089 | } |
| 2090 | |
| 2091 | func (m *Sqlbridge) parseShowFromDatabase(req *SqlShow) error { |
| 2092 | |
| 2093 | switch m.Cur().T { |
| 2094 | case lex.TokenFrom, lex.TokenIN: |
| 2095 | m.Next() // Consume {FROM | IN} |
| 2096 | default: |
| 2097 | // this is optional |
| 2098 | return nil |
| 2099 | } |
| 2100 | |
| 2101 | if m.Cur().T != lex.TokenIdentity { |
| 2102 | return fmt.Errorf("Expected { FROM | IN } IDENTITY for SHOW") |
| 2103 | } |
| 2104 | req.Db = m.Next().V |
| 2105 | return nil |
| 2106 | } |
| 2107 | |
| 2108 | func ParseJsonObject(pg expr.TokenPager, jh u.JsonHelper) error { |
| 2109 | if pg.Cur().T != lex.TokenLeftBrace { |