Repository navigation
feat: use sql params #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -13,7 +13,7 @@ export interface RDSClientOptions extends PoolOptions { | |||||
| } | ||||||
|
|
||||||
| export interface PoolConnectionPromisify extends Omit<PoolConnection, 'query'> { | ||||||
| query(sql: string): Promise<any>; | ||||||
| query(sql: string, values: any | any[] | { [param: string]: any }): Promise<any>; | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix type inconsistency: values should be optional. The Apply this diff to make the parameter optional: - query(sql: string, values: any | any[] | { [param: string]: any }): Promise<any>;
+ query(sql: string, values?: any | any[] | { [param: string]: any }): Promise<any>;Also consider simplifying the type to 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| beginTransaction(): Promise<void>; | ||||||
| commit(): Promise<void>; | ||||||
| rollback(): Promise<void>; | ||||||
|
|
||||||
Uh oh!
There was an error while loading. Please reload this page.