轻量级数据库结构爬虫 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

数据结构与算法分析

数据结构与算法分析

张琨、张宏、朱保平 / 人民邮电出版社 / 2016-2-1 / 45

本书共分10章,主要包括第1章绪论,第2章线性表,第3章栈和队列,第4章串,第5章数组和广义表,第6章 树和二叉树,第7章图,第8章查找,第9章内部排序,第10章算法分析。其内容模块涵盖了课堂教学、习题课教学、实验教学、自学辅导、综合训练等。立体化教材的使用在提高教学效率、增强教学效果、加大教学信息量、培养学生的应用与实践能力。 作者简介一起来看看 《数据结构与算法分析》 这本书的介绍吧!

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具