Skip to content

Transaction support #248

Description

@Whhoesj

Hi,

Would it be possible to add support for transactions to the code generator? From the looks of it, it seems we can only provide a connection string to the generated classes to execute the query. This prevents us for starting a transaction on our end.

When looking at the Go implementation, it looks like you can supply a database connection to the generated code. This is also described in the documentation of sqlc on how to use transactions (https://docs.sqlc.dev/en/latest/howto/transactions.html). Would it be possible to add this as an option to the C# code generator as well?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions