chore: add comments (#1345)

This commit is contained in:
Kevin Wan
2021-12-18 22:39:14 +08:00
committed by GitHub
parent 8fd16c17dc
commit b299f350be

View File

@@ -25,6 +25,7 @@ type (
SqlConn interface {
Session
// RawDB is for other ORM to operate with, use it with caution.
// Notice: don't close it.
RawDB() (*sql.DB, error)
Transact(func(session Session) error) error
}