Commit 45cfa23e authored by Jason Moiron's avatar Jason Moiron

upstream e0b03331d92a34e72c52b446b5108c57fbf53eec compile-time check that...

upstream e0b03331d92a34e72c52b446b5108c57fbf53eec compile-time check that DbMap & Transaction implement SqlExecutor
parent 7688cb6d
......@@ -468,6 +468,10 @@ type SqlExecutor interface {
queryRowx(query string, args ...interface{}) *sqlx.Row
}
// Compile-time check that DbMap and Transaction implement the SqlExecutor
// interface.
var _, _ SqlExecutor = &DbMap{}, &Transaction{}
///////////////
// Transaction represents a database transaction.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment