You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add support for optional CancellationToken in generated code
- implement CancellationGen to handle CancellationToken injection into generated method signatures and DB calls
- update DbDriver and CommonGen to support cancellation arguments in async methods
- thread CancellationToken into OpenConnectionAsync, ExecuteAsync, QueryAsync, and other database operations across MySqlConnector, Npgsql, and Sqlite drivers
- add WithCancellationToken option to PluginOptions and RawOptions
- update README.md with documentation and examples for cancellation
- add comprehensive unit tests for CancellationGen and end-to-end codegen validation
- update example request files to include the new plugin option
public async Task {{query.Name.ToMethodName(dbDriver.Options.WithAsyncSuffix)}}(List<{{argInterface}}> args)
12
+
public async Task {{query.Name.ToMethodName(dbDriver.Options.WithAsyncSuffix)}}(List<{{argInterface}}> args{{dbDriver.Cancellation.TrailingMethodParameter()}})
0 commit comments