Skip to content

Commit

Permalink
API文档更新
Browse files Browse the repository at this point in the history
  • Loading branch information
XFSeven7 committed Jun 8, 2018
1 parent ca659e8 commit 4412349
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,40 @@ EasySQL.with(context).listName();

```
EasySQL.with(context).use(dbName).tableList()
```

- **更新数据库**(给数据库中的表增加字段)

使用步骤如下,

假设原来的表为:

```
public class NormalTable1 extends EasyTable {
private String name;
private int age;
}
```
若要新增字段,直接在原来的表中新增字段:

```
public class NormalTable1 extends EasyTable {
private String name;
private int age;
private int newField;
}
```
之后只需调用

```
// 更新所有数据库中的所有表
EasySQL.with(this).updateAllTable();
```
或者

```
// 只更新某个数据库中的所有表:
EasySQL.with(this).updateAllTable(dbName);
```

表操作
Expand Down

0 comments on commit 4412349

Please sign in to comment.