类 TableNameParser
java.lang.Object
com.baomidou.mybatisplus.core.toolkit.TableNameParser
SQL 表名解析
Ultra light, Ultra fast parser to extract table name out SQLs, supports oracle dialect SQLs as well. USE: new TableNameParser(sql).tables()
- 从以下版本开始:
- 2019-04-22
- 作者:
- Nadeem Mohammad, hcl
-
嵌套类概要
嵌套类修饰符和类型类说明static classSQL 词static interface表名访问器 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidaccept(TableNameParser.TableNameVisitor visitor) 接受一个新的访问者,并访问当前 SQL 的表名称tables()parser tables
-
构造器详细资料
-
TableNameParser
从 SQL 中提取表名称- 参数:
sql- 需要解析的 SQL 语句
-
-
方法详细资料
-
accept
接受一个新的访问者,并访问当前 SQL 的表名称现在我们改成了访问者模式,不在对以前的 SQL 做改动 同时,你可以方便的获得表名位置的索引
- 参数:
visitor- 访问者
-
tables
parser tables- 返回:
- table names extracted out of sql
- 另请参阅:
-