The Tx type has a method StmtContext to return a transaction-specific prepared statement from an existing statement. But the Conn type does not have such a method; what is the reason?
The Conn.PrepareContext returns a prepared statement that is executed on the same driver.Conn (see #20647). However I think one usually prepares statements at the start of the program and then executes them inside or outside a transaction, so I can not see an use case of a program calling Conn.PrepareContext, but I can see an use case of using the missing Conn.StmtContext. Thanks Manlio Perillo -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.