Skip to content

Commit be54b48

Browse files
committed
删除注释
1 parent 4020990 commit be54b48

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

src/test/demoSafeTransaction.ts

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,6 @@ const userScheme = {
4545
updated: 0 as number,
4646
}
4747

48-
// const userScheme1 = {
49-
// userId: '' as string,
50-
// name: '' as string,
51-
// mobile: '' as string,
52-
// avatar: '' as string,
53-
// gender: 1 as number,
54-
// language: '' as string,
55-
// status: 1 as number,
56-
// created: 0 as number,
57-
// updated: 0 as number,
58-
// }
5948

6049
// 定义User类型(通过默认结构自动生成)
6150
type UserScheme = typeof userScheme
@@ -79,28 +68,6 @@ const User = new (class extends MysqlCache<UserScheme> {
7968
}
8069
})()
8170

82-
// const User1 = new (class extends MysqlCache<UserScheme> {
83-
// constructor() {
84-
// super(
85-
// {
86-
// name: 'User1', // 表名,默认会转化为下划线(snackCase)形式,如 User->user UserPhoto->user_photo
87-
// title: '用户表', // 表的备注名称
88-
// scheme: userScheme1, // 表的默认结构
89-
// pick: ['userId', 'name'], // 查询列表时显示的字段信息
90-
// },
91-
// mysqlBin,
92-
// redisCache,
93-
// )
94-
// }
95-
// })()
96-
97-
// 批量插入
98-
// await User.mInsert([
99-
// { name: '王小明', gender: 1 },
100-
// { name: '宋小华', gender: 1 },
101-
// ])
102-
103-
// await User.updateById('id002', { name: '李四' }) // 返回 1
10471
const a = async () => {
10572
await User.checkById('41102319990728253X')
10673
await $.timeout(3000)

0 commit comments

Comments
 (0)