mysql语句自动生成器_AutoMySQL

AutoMySQL

MySql增删改查语句自动生成器 v1.0(MySQL code automatical generator v1.0)

下面演示了结合 EasyMySQL 小框架的查询操作:

if you use EasyMySQL and this jar:

EasyMySQL 请点击:EasyMySQL

// get information from file

DBManager.update(new File("testFile/config/DB.properties"));

// connect to database

DBWorker.wakeUp();

// query data

List books = DBWorker.queryMaps("book");

for (Map map : books)

{

// read data from map and box it an object

Book book = MySQL.getBeanByMap(map, Book.class);

System.out.println(book);

}

// release resources

DBWorker.sleep();

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! update !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2018-5-22:

新增了一个 String insertSQLs(Object[] objects) 方法,现在可以生成批量插入的语句了

(add a new method: S

你可能感兴趣的:(mysql语句自动生成器)