-
Notifications
You must be signed in to change notification settings - Fork 64
Expand file tree
/
Copy pathbeetlsql-api.java
More file actions
25 lines (20 loc) · 677 Bytes
/
beetlsql-api.java
File metadata and controls
25 lines (20 loc) · 677 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
ConnectionSource
# 数据源
# 直接创建
ConnectionSource source = ConnectionSourceHelper.getSimple(String driverClass, String url, String userName, String passWord);
# 通过已有的数据源创建
ConnectionSource source = ConnectionSourceHelper.single(DataSource dataSource);
# 如果是主从数据源
ConnectionSource source = ConnectionSourceHelper.getMasterSlave(DataSource master,DataSource[] slaves)
DBStyle
#
SQLLoader
#
UnderlinedNameConversion
#
SQLManager
# 方法
genPojoCodeToConsole(String tableName);
* 根据数据表名称,创建POJO,并且把代码输出到控制台
genSQLTemplateToConsole(String tableName);
* 根据数据表名称创建template模版,并且把SQL输出到控制台