Is there any way to get the number of tables in a h2 database when using OrmLite?
I'm looking for something like:
mysql> show tables;
for OrmLite.
Is there any way to get the number of tables in a h2 database when using OrmLite?
ORMLite has a pretty good online manual. If you have looked in the index under "raw queries" you would have found the following:
There is a lot of detail there but you can do something like the following using the Dao.queryRaw(...)
method .
GenericRawResults<String[]> results = dao.queryRaw("show tables;");
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.