@ticatec/flex-query-library
v0.1.3
Published
build flex query
Downloads
4
Readme
Flex Query Library
FQL是用于读取动态SQL的连接库,简化和FlexQueryService的连接,获取指定的动态SQL。
FlexQueryManager
用于管理FlexQuery的类,该类为一个单例类。使用前首先需要初始化。
FlexQueryManager.initialize('http://127.0.0.1/service/query/script');
获取Query构造函数
let queryMgr = FlexQueryManager.getInstance();
let queryBuilder = queryMgr.getQueryBuilder('aoss', 'tenant-search');
执行分页查询
let query = new FlexSearhCriteria(criteria, queryBuilder);
return query.paginationQuery(conn, page, rows); //查询第page页,每页返回rows条记录