Skip to content

Commit

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

0 comments on commit 1e8e73f

Please sign in to comment.