轻量级数据库结构爬虫 dbcrawler

码农软件 · 软件分类 · 其他开发相关 · 2019-10-28 10:28:18

软件介绍

dbcrawler是一个轻量级数据库结构爬虫。它能够取得数据库的底层结构并返回POJO对象。可以利用其提供的统一API来取得各种不同的数据库系统 的结构,而不用关心这些dbms之间的差异,当底层dbms变化时还是会返回相同的POJO对象。dbcrawler当前只支持MySQL、 PostgreSQL、Apache Derby三种数据库。

示例代码:

DataBase dataBase = DBcrawlerUtility.getDataBase(connection, ConfigEnum.MAXIMUM);
//fetch the DBMS information
RDBMSInfo rdbmsInfo = dataBase.getRDBMSInfo();
System.out.println("rdbmsInfo:" + rdbmsInfo);
//Return Schemas
Set<Schema> schemas = dataBase.getSchemas();
//Iterate to Fetch the schema information and Tables
for(Schema schema : schemas)
{
   
System.out.println("SchemaName :" + schema.getSchamaName());
   
Set<Table> tables = schema.getTables();
   
//Iterate to fetch the tables
   
for(Table table : tables)
   
{
     
System.out.println("tableName :" + table.getTableName());
     
PrimaryKey primaryKey = table.getPrimaryKey();
     
Set<Column> columns = table.getColumns();
   
}
}

本文地址:https://codercto.com/soft/d/17734.html

More Effective C++(中文版)

More Effective C++(中文版)

梅耶(Scott Meyers) / 侯捷 / 电子工业出版社 / 2011-1-1 / 59.00元

《More Effective C++:35个改善编程与设计的有效方法(中文版)》是梅耶尔大师Effective三部曲之一。继Effective C++之后,Scott Meyers于1996推出这本《More Effective C++(35个改善编程与设计的有效方法)》“续集”。条款变得比较少,页数倒是多了一些,原因是这次选材比“一集”更高阶,尤其是第5章。Meyers将此章命名为技术(tec......一起来看看 《More Effective C++(中文版)》 这本书的介绍吧!

SHA 加密
SHA 加密

SHA 加密工具

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

html转js在线工具
html转js在线工具

html转js在线工具