dbcrawler轻量级数据库结构爬虫
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();
}
}
评论
LqJdbc轻量级数据库
LqJdbc可以很轻松地操作数据库,使用了C3P0链接池,实现了hibernate的一些简单功能如save,update,delete,find,createentity,也实现了springjdbc
LqJdbc轻量级数据库
0
SSTD轻量级网络数据库
项目已终止!【 为什么使用SSTD 】使用了多线程技术数据存储使用的是数组采用Python编写,体积不到10KB使用TCP协议【 SSTD是否收费?是否开源? 】SSTD将免费、开源,欢迎大家使用SS
SSTD轻量级网络数据库
0