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 CancellationToken in generated methods
- implement CancellationGen to handle optional CancellationToken threading
- update DbDriver to expose Cancellation property
- modify CommonGen to support cancellation arguments in method parameters and reader calls
- update multiple generator types (One, Many, Exec, ExecRows, ExecLastId, CopyFrom) to include CancellationToken in signatures and DB calls
- update MySqlConnector, Npgsql, and Sqlite drivers to pass CancellationToken to connection and command execution
- add withCancellationToken option to PluginOptions and RawOptions
- update README.md with documentation and usage examples for cancellation
- add unit tests for CancellationGen and integration tests for generated code across all engines
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