Skip to content

Commit

Permalink
feat(type): add type definition for mysql.count method
Browse files Browse the repository at this point in the history
  • Loading branch information
krryguo committed Feb 14, 2023
1 parent 53d995b commit eee3ae1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ interface EggMySQL {
where?: object,
condition?: EggMySQLCondition
): Promise<EggMySQLGetResult>;
/// get counts from table
count: (table: string, values: object) => Promise<number>;
/// execute sql e.g.
/// query('update posts set hits = (hits + ?) where id = ?', [1, postId])
query: (
Expand Down

0 comments on commit eee3ae1

Please sign in to comment.