Replies: 1 comment
-
@Superbody Thanks for your proposal. It makes sense, would you like to submit a PR? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The parser is great to use, but for different Exprs, more funcs are needed to get some basic info. like for SelectQuery, maybe I want GetDatabase or GetTableName funcs to ez use.
exmple:
func (s *SelectQuery) GetDatabaseString() string {
if s.From == nil {
return ""
}
x := s.From.Expr.(*TableExpr)
y := x.Expr.(*TableIdentifier)
return y.Database.String(0)
}
Beta Was this translation helpful? Give feedback.
All reactions