Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | /**
* @file 表脚本
* @Author wangjie19
* @Date 2020-07-23 15:21:19
* @Last Modified by: wangjie19
* @Last Modified time: 2020-07-23 18:11:11
*/
class Table {
protected name: string;
constructor() {
this.name = '';
}
/**
* 创建表
* @param table 表名
* @param columns 字段集合
* @return 表对象
*/
create(table: string = '', columns: [] = []): object {
return this;
}
/**
* 删除表
* @param table 表名
* @return 删除的表结果
*/
drop(table: string = '') {
return this;
}
/**
* 条件查询
* @param field 查询字段
* @return 查询结果对象
*/
where(field: object = {key: '', value: ''}): object {
return {aa: 11};
}
/**
* 插入数据
* @param row 行数据
* @return 表对象
*/
insert(row: object = {}): object {
return this;
}
/**
* 删除数据
* @return 删除后的表对象
*/
deleterow(): object {
return this;
}
/**
* 更新表数据
* @param row 行数据
*/
update(row: object = {}): object {
return this;
}
}
export default Table;
|