Your Question

What is the proper way to run BEGIN EXCLUSIVE TRANSACTION when using sqlite?

The database/sql package doesn't expose a way to configure how a transaction is started on sqlite. There are workarounds to manually start the transaction with BEGIN EXCLUSIVE through *sqld.DB.

But when beginning a transaction gorm does not simply call *sqld.DB it does a bunch of work internally. What would be the proper way to start a transaction BEGIN EXCLUSIVE TRANSACTION through *gorm.DB?

The document you expected this should be explained

https://gorm.io/docs/transactions.html

Expected answer

I would expect a code snippet, or a reply saying it is not feasible.

Comment From: github-actions[bot]

This issue has been automatically marked as stale because it has been open 360 days with no activity. Remove stale label or comment or this will be closed in 180 days